wraith-wireless / PyRIC

Python wireless library for Linux
http://wraith-wireless.github.io/PyRIC
Other
95 stars 50 forks source link

RuntimeWarning #6

Closed ghost closed 8 years ago

ghost commented 8 years ago

I seem to get this warning every time I'm importing PyRIC.

/home/blackhatmonkey/workspace/wifiphisher/PyRIC/pyric/__init__.py:116: RuntimeWarning: Parent module 'pyric' not found while handling absolute import
  from os import strerror
wraith-wireless commented 8 years ago

I was getting this same error with netlink_h, it has something to do with the module structure but I cannot figure it out as it all appears correct. Two options listed below, 1.b is the best course of action during testing and should work even through new revisions. However, if that fails, try option 2 and tell me if that worked

1) Depending on install location of PyRIC there will be issues with imports due to PyRIC being a directory added solely for PyPI/Pip. a) Once your testing (and my bug fixing) is complete the easiest way to fix this would be with a complete install i.e. sudo pip install PyRIC b) until then try creating a file pyric.pth saved to /usr/lib/python2.7/dist-packages or (/usr/lib/python3/dist-packages if using Python 3) and write one line containing the complete path to the PyRIC directory i.e. /home/username/downloads/PyRIC. You should then be able to import everything without using PyRIC.pyric, that is:

from pyric import pyw

2) Try commenting out line 107 name = 'pyric' and tell me if that worked - this should only be considered a temporary fix if it works

I've downloaded a copy of Kali and some other distros and will begin testing install/download on them to work out issues like this