ubuntu 18.04 LTS - installation not healthy
Voronenko opened this issue · comments
Vyacheslav commented
Clean 18.04 LTS image, for example digital ocean
python3 --version
Python 3.6.7
pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
pip3 install togglCli==2.0.2
...
root@ubuntu-s-1vcpu-1gb-ams3-01:~# toggl
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pbr/version.py", line 442, in _get_version_from_pkg_resources
provider = pkg_resources.get_provider(requirement)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 344, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 892, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'toggl' distribution was not found and is required by the application
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/toggl", line 7, in <module>
from toggl.toggl import main
File "/usr/local/lib/python3.6/dist-packages/toggl/__init__.py", line 3, in <module>
VERSION = VersionInfo('toggl').semantic_version()
File "/usr/local/lib/python3.6/dist-packages/pbr/version.py", line 462, in semantic_version
self._semantic = self._get_version_from_pkg_resources()
File "/usr/local/lib/python3.6/dist-packages/pbr/version.py", line 449, in _get_version_from_pkg_resources
result_string = packaging.get_version(self.package)
File "/usr/local/lib/python3.6/dist-packages/pbr/packaging.py", line 848, in get_version
name=package_name))
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name toggl was given, but was not able to be found.
Adam Uhlíř commented
Hmmm! Very interesting! I will try to reproduce it and will come back to you.
Thanks for the report.
Adam Uhlíř commented
Hmm sorry that it took me so long, but I have finally discovered the problem. I will release fix today.
Vyacheslav commented
sounds sweet, thanks!
Adam Uhlíř commented
Should be fixed with 2.1.0
version, so I am closing this, but if the problem will still persist definitely let me know!