question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting FileNotFoundError: [Errno 2] No such file or directory: '<my-path>/site-packages/pinject/../VERSION'

See original GitHub issue

I am getting this error when installing the latest version (0.12.2) with pip install pinject:

File “/home/ronen/reach/reach_venv3.6/lib/python3.6/site-packages/pinject/version.py”, line 10, in <module> VERSION = open(VERSION_FILE).read().strip() FileNotFoundError: [Errno 2] No such file or directory: ‘/home/ronen/reach/reach_venv3.6/lib/python3.6/site-packages/pinject/…/VERSION’

So I have looked and there isn’t really any VERSION file in my site-packages folder (should there be?). I am running python3.6.7 on Ubuntu 18.04. We have been running with django and pinject for a long time now and everything was great.

Please help, thanks in advance!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
huancommented, Nov 29, 2018

Thank you @rmiller-sgntr for reporting this issue, and thank you @logavanc for the Pull Request to fix this!

It’s my fault that I should not read a non-exist file outside the module directory.

1reaction
huancommented, Nov 29, 2018

pinject@0.12.6has just published on pypi.org, please test and let me know if it works, thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

FileNotFoundError: [Errno 2] No such file or directory [duplicate]
I am trying to open a CSV file but for some reason python cannot locate it. Here is my code (it's just a...
Read more >
Python FileNotFoundError: [Errno 2] No such file or directory ...
This error tells you that you are trying to access a file or folder that does not exist. To fix this error, check...
Read more >
How to fix FileNotFoundError Errno 2 no such file or directory
There are several reasons why the FileNotFoundError Errno 2 No such file or directory error can occur: 1. Misspelled filename.
Read more >
Filenotfounderror errno 2 no such file or directory python error ...
How to solve filenotfounderror errno 2 no such file or directory in python is shown.
Read more >
[Errno 2] No such file or directory · Issue #67 - GitHub
I'm using Windows 10 and Python 3.7 the version of Julia is 1.6.2. The error ... FileNotFoundError: [Errno 2] No such file or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found