Having trouble inst...
 
Notifications
Clear all

[Solved] Having trouble installing CircuitPython dependencies  


dookaloosy
(@dookaloosy)
New Member
Joined: 1 month ago
Posts: 4
Topic starter  

Am I doing something wrong? Other dependencies install just fine.

 

Mycodo version: 8.8.8

Attempted with the stock pip 20.3.1, then repeated after upgrading to pip 20.3.3 --> installation of dependencies failed.

Also attempted again after removing ~/Mycodo/.dependency --> failed.

Whilst trying to set up inputs with CircuitPython dependencies (e.g. ADS1115), I got the following error logs:

[2020-12-22 18:40:59]     for r in self._p.get_dependencies(candidate):
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 172, in get_dependencies
[2020-12-22 18:40:59]     for r in candidate.iter_dependencies(with_requires)
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 171, in 
[2020-12-22 18:40:59]     r
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 257, in iter_dependencies
[2020-12-22 18:40:59]     requires = self.dist.requires() if with_requires else ()
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 239, in dist
[2020-12-22 18:40:59]     self._prepare()
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 226, in _prepare
[2020-12-22 18:40:59]     dist = self._prepare_distribution()
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 319, in _prepare_distribution
[2020-12-22 18:40:59]     self._ireq, parallel_builds=True,
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement
[2020-12-22 18:40:59]     return self._prepare_linked_requirement(req, parallel_builds)
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 524, in _prepare_linked_requirement
[2020-12-22 18:40:59]     req, self.req_tracker, self.finder, self.build_isolation,
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 88, in _get_prepared_distribution
[2020-12-22 18:40:59]     abstract_dist.prepare_distribution_metadata(finder, build_isolation)
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 39, in prepare_distribution_metadata
[2020-12-22 18:40:59]     self._setup_isolation(finder)
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 99, in _setup_isolation
[2020-12-22 18:40:59]     conflicting, missing = self.req.build_env.check_requirements(reqs)
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_internal/build_env.py", line 155, in check_requirements
[2020-12-22 18:40:59]     if ws.find(Requirement.parse(req)) is None:
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3148, in parse
[2020-12-22 18:40:59]     req, = parse_requirements(s)
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3094, in parse_requirements
[2020-12-22 18:40:59]     yield Requirement(line)
[2020-12-22 18:40:59]   File "/home/pi/Mycodo/env/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3103, in __init__
[2020-12-22 18:40:59]     raise RequirementParseError(str(e))
[2020-12-22 18:40:59] pip._vendor.pkg_resources.RequirementParseError: Parse error at "'_'": Expected W:(abcd...)

Quote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 6 years ago
Posts: 429
 

This was fixed in https://github.com/kizniche/Mycodo/commit/c64a21c47ba1197bf3740a2df5f7a270541e7e20 and will be available in the next release. You can run "sudo /home/pi/Mycodo/env/bin/pip install pyusb==1.0.2" in a terminal, then reattempt the dependency install to complete the installation.

Mycodo Developer


ReplyQuote