Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version file not found #240

Closed
flatsiedatsie opened this issue Mar 21, 2020 · 2 comments · Fixed by #241
Closed

Version file not found #240

flatsiedatsie opened this issue Mar 21, 2020 · 2 comments · Fixed by #241

Comments

@flatsiedatsie
Copy link
Contributor

flatsiedatsie commented Mar 21, 2020

I've been getting an error very recently:

Traceback (most recent call last):
  File "bootstrap.py", line 45, in <module>
    import mysensors  # noqa: F401
  File "/home/pi/.mozilla-iot/addons/mysensors-adapter/lib/mysensors/__init__.py", line 19, in <module>
    __version__ = (Path(__file__).parent / "VERSION").read_text().strip()
  File "/usr/lib/python3.7/pathlib.py", line 1199, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
  File "/usr/lib/python3.7/pathlib.py", line 1186, in open
    opener=self._opener)
  File "/usr/lib/python3.7/pathlib.py", line 1039, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.mozilla-iot/addons/mysensors-adapter/lib/mysensors/VERSION'

I checked, and the VERSION file isn't in the folder. If I add it manually, the script continues normally.

Here's the source:
https://github.com/createcandle/Webthings-mysensors-adapter/blob/master/bootstrap.py

I'm trying to figure out what it could be. Some PIP3 caching issue? Perhaps the existing files may be updated, but a rights issue is preventing VERSION from being created?

@MartinHjelmare
Copy link
Collaborator

This is a problem for the wheels release but not for the source release. Fix is in #241.

@MartinHjelmare
Copy link
Collaborator

0.20.1 released with fix:
https://pypi.org/project/pymysensors/0.20.1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants