Skip to content

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

Description

@float-tw

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions