-
Notifications
You must be signed in to change notification settings - Fork 45
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
Can't install: AttributeError: 'NoneType' object has no attribute 'rfind' #49
Comments
I have the same problem on OSX 10.11.1 |
I was able to get it to install by replacing d with '/usr' on line 46 of setup.py, like this: lib_sub_dirs = [os.path.join('/usr', sub_dir) \ I can't guarantee it will work on all systems as it is a quick and dirty hack, but there you go |
same problem on Ubuntu 15.04
|
same problem in ubuntu 16.04: pip install pypcap
Collecting pypcap
Using cached pypcap-1.1.5.tar.gz
Complete output from command python setup.py egg_info:
Found pcap headers in /usr/src/linux-headers-4.4.0-28-generic/include/config/touchscreen/pcap.h
Found libraries in None
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-YMm_2h/pypcap/setup.py", line 59, in <module>
lib_file = os.path.basename(lib_file_path)
File "/home/lconceicao/envs/pypcap-test/lib/python2.7/posixpath.py", line 114, in basename
i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-YMm_2h/pypcap/ |
Pip is using the wrong pcap header. Install libpcap-dev will fix this issue in ubuntu. |
Note the current development of pypcap is now on: https://github.com/pynetwork/pypcap. Please file issues there. |
/home//.pip/pip.log
The text was updated successfully, but these errors were encountered: