NZSmartie / PyHIDParser

A HID descriptor parser written in Python 3
MIT License
23 stars 5 forks source link

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

Open float-tw opened 7 years ago

float-tw commented 7 years ago

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?