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

openwrt: new dependency issue #6

Open
wfleurant opened this issue Jun 20, 2020 · 1 comment
Open

openwrt: new dependency issue #6

wfleurant opened this issue Jun 20, 2020 · 1 comment
Assignees

Comments

@wfleurant
Copy link
Member

re: 799e7ea

when running python3 -m mm_cli
we do not include pkg_resources in OpenWrt (setuptools ?)

  File "/usr/lib/python3.8/site-packages/mm_cli/__init__.py", line 1, in <module>
    from pkg_resources import get_distribution

where __init__.py is

from pkg_resources import get_distribution
__version__ = get_distribution('mm-cli').version
@wfleurant
Copy link
Member Author

when i add python3-setuptools MassMesh/meta-imagebuilder@6a5b653

this error is on rpi3

root@OpenWrt:/tmp# opkg list | grep mm-cl
python3-mm-cli-src - 0.0.5-5
root@OpenWrt:/tmp# mm
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main
  File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details
  File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details
  File "/usr/lib/python3.8/site-packages/mm_cli/__init__.py", line 3, in <module>
    __version__ = get_distribution('mm-cli').version
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 481, in get_distribution
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 357, in get_provider
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 786, in resolve
pkg_resources.DistributionNotFound: The 'mm-cli' distribution was not found and is required by the application

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

No branches or pull requests

2 participants