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

ImportError: No module named 'hidparser.UsagePages' after running example/mouse.py #11

Open
float-tw opened this issue Feb 21, 2017 · 0 comments

Comments

@float-tw
Copy link

First I install hidparser with following command
$ python3 setup.py install
then trying to run example/mouse.py get following error
Traceback (most recent call last): File "mouse.py", line 1, in <module> import hidparser File "/usr/local/lib/python3.5/dist-packages/hidparser-0.0.7-py3.5.egg/hidparser/__init__.py", line 10, in <module> ImportError: No module named 'hidparser.UsagePages'
But I can import hidparser and hidparser.UsagePages before run example.
When I unzip the egg file 'hidparser-0.0.7-py3.5.egg', there are no hidparser/UsagePages folder.

I try to add "hidparser/UsagePages" into packages in setup.py and it can fix this problem; however, I'm not familiar with setuptools. Is this correct way to fix it?

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

1 participant