ionelmc / python-hunter

Hunter is a flexible code tracing toolkit.
https://python-hunter.readthedocs.io/
BSD 2-Clause "Simplified" License
796 stars 46 forks source link

ImportError: No module named manhole #47

Closed guettli closed 5 years ago

guettli commented 5 years ago

I installed hunter via pip.

Now I get this:

Traceback (most recent call last):
  File "/home/myvenv/bin/hunter-trace", line 7, in <module>
    from hunter.remote import main
  File "/home/myvenv/lib/python2.7/site-packages/hunter/remote.py", line 15, in <module>
    import manhole
ImportError: No module named manhole

After installing manhole it works.

Maybe add it to install_requires of setup.py?

ionelmc commented 5 years ago

It's in the extras, is pip install hunter[remote] not mentioned anywhere? Hmmm.

guettli commented 5 years ago

Yes, there is a notice about this somewhere. But I am not doing anything with a remote host:

hunter-trace -h

I am just calling the command line tool.

Why not install manhole always (unconditionally)?

guettli commented 5 years ago

one question remains:

Why not install manhole always (unconditionally)?

ionelmc commented 5 years ago

Manhole doesn't work on Windows (uses unix domain sockets).