Skip to content

requirements.txt File not found #496

Description

@Gorschel

Running python 3.11.4, pipreqs 0.5.0

Some censored Output:

PS .\someproj\> pipreqs \src
INFO: Not scanning for jupyter notebooks.
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "python\Scripts\pipreqs.exe\__main__.py", line 7, in <module>
  File "python\Lib\site-packages\pipreqs\pipreqs.py", line 609, in main
    init(args)
  File "python\Lib\site-packages\pipreqs\pipreqs.py", line 599, in init
    generate_requirements_file(path, imports, symbol)
  File "python\Lib\site-packages\pipreqs\pipreqs.py", line 209, in generate_requirements_file
    with _open(path, "w") as out_file:
  File "python\Lib\contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "python\Lib\site-packages\pipreqs\pipreqs.py", line 91, in _open
    file = open(filename, mode)
           ^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/src/requirements.txt'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions