Comments (6)
Hi,
Thanks for reporting this!
I must have forgotten to include it in the Manifest.in. As soon as I get I
chance I'll release a fix for it.
-rocky
2014年9月1日 下午9:32于 "luckydonald" [email protected]写道:
I have problems installing 0.3.3 with pip on a raspberry pi,
getting the error No such file or directory:
'/tmp/pip_build_pi/wifi/CHANGES.rst'Help would be appreciated.
Tried with and without sudo.
The full log:
pi@raspberry ~/Phythm $ pip install wifi
Downloading/unpacking wifi
Downloading wifi-1.0.0.tar.gz
Running setup.py (path:/tmp/pip_build_pi/wifi/setup.py) egg_info for package wifi
Skipping copying files to /etc/bash_completion.d/, no write access
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_pi/wifi/setup.py", line 42, in
long_description='\n\n'.join([read('README.rst'), read('CHANGES.rst')]),
File "/tmp/pip_build_pi/wifi/setup.py", line 12, in read return open(os.path.join(os.path.dirname(file), fname)).read()
IOError: [Errno 2] No such file or directory: '/tmp/pip_build_pi/wifi/CHANGES.rst'
Complete output from command python setup.py egg_info:
Skipping copying files to /etc/bash_completion.d/, no write accessTraceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_pi/wifi/setup.py", line 42, in
long_description='\n\n'.join([read('README.rst'), read('CHANGES.rst')]),
File "/tmp/pip_build_pi/wifi/setup.py", line 12, in read
return open(os.path.join(os.path.dirname(file), fname)).read()IOError: [Errno 2] No such file or directory: '/tmp/pip_build_pi/wifi/CHANGES.rst'
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_pi/wifi
Storing debug log for failure in /home/pi/.pip/pip.log
pi@raspberry ~/Phythm $Logfile:
$ cat /home/pi/.pip/pip.log
/usr/local/bin/pip run on Tue Sep 2 04:19:18 2014
Downloading/unpacking wifi
Getting page https://pypi.python.org/simple/wifi/
URLs to search for versions for wifi:
- https://pypi.python.org/simple/wifi/
Analyzing links from page https://pypi.python.org/simple/wifi/
Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.0.1.tar.gz#md5=268c545deddf6aaa4a57b6b6126a7a32 (from https://pypi.python.org/simple/wifi/), version: 0.0.1
Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.1.0.tar.gz#md5=0b30d002a97ed6de1ba3eed294582b55 (from https://pypi.python.org/simple/wifi/), version: 0.1.0
Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.1.1.tar.gz#md5=6e02cdc66153514017c8196ce86e80fb (from https://pypi.python.org/simple/wifi/), version: 0.1.1
Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.2.0.tar.gz#md5=7df58691eb39be009e78e0c96b2c5598 (from https://pypi.python.org/simple/wifi/), version: 0.2.0
Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.2.1.tar.gz#md5=c5c63a40e58c3955c27e8122490c428b (from https://pypi.python.org/simple/wifi/), version: 0.2.1
Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.2.2.tar.gz#md5=57ae7542c3ba16241839efd7ee84c17b (from https://pypi.python.org/simple/wifi/), version: 0.2.2
Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.3.0.tar.gz#md5=659c733b8f73cc85fb5e7496b5f2e0fc (from https://pypi.python.org/simple/wifi/), version: 0.3.0
Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.3.1.tar.gz#md5=19c94c4318e7002a9fc83cff22bb92af (from https://pypi.python.org/simple/wifi/), version: 0.3.1
Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.3.2.tar.gz#md5=cf2838f703d054b8c146ae1db4c0eeac (from https://pypi.python.org/simple/wifi/), version: 0.3.2
Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.3.3.tar.gz#md5=38fb87d5e0d269706c24d2c9b31850ff (from https://pypi.python.org/simple/wifi/), version: 0.3.3
Found link https://pypi.python.org/packages/source/w/wifi/wifi-1.0.0.tar.gz#md5=aeeafe962bc01cf9a55a146d0f301dfc (from https://pypi.python.org/simple/wifi/), version: 1.0.0
Skipping link https://travis-ci.org/rockymeza/wifi (from https://pypi.python.org/simple/wifi/); not a file
Skipping link https://wifi.readthedocs.org/en/latest/ (from https://pypi.python.org/simple/wifi/); not a file
Using version 1.0.0 (newest of versions: 1.0.0, 0.3.3, 0.3.2, 0.3.1, 0.3.0, 0.2.2, 0.2.1, 0.2.0, 0.1.1, 0.1.0, 0.0.1)
Downloading wifi-1.0.0.tar.gz
Downloading from URL https://pypi.python.org/packages/source/w/wifi/wifi-1.0.0.tar.gz#md5=aeeafe962bc01cf9a55a146d0f301dfc (from https://pypi.python.org/simple/wifi/)
Running setup.py (path:/tmp/pip_build_pi/wifi/setup.py) egg_info for package wifi
Skipping copying files to /etc/bash_completion.d/, no write access
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_pi/wifi/setup.py", line 42, in
long_description='\n\n'.join([read('README.rst'), read('CHANGES.rst')]),
File "/tmp/pip_build_pi/wifi/setup.py", line 12, in read return open(os.path.join(os.path.dirname(file), fname)).read()
IOError: [Errno 2] No such file or directory: '/tmp/pip_build_pi/wifi/CHANGES.rst'
Complete output from command python setup.py egg_info:
Skipping copying files to /etc/bash_completion.d/, no write accessTraceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_pi/wifi/setup.py", line 42, in
long_description='\n\n'.join([read('README.rst'), read('CHANGES.rst')]),
File "/tmp/pip_build_pi/wifi/setup.py", line 12, in read
return open(os.path.join(os.path.dirname(file), fname)).read()IOError: [Errno 2] No such file or directory: '/tmp/pip_build_pi/wifi/CHANGES.rst'
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_pi/wifi
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1229, in prepare_files
req_to_install.run_egg_info()
File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 325, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/local/lib/python2.7/dist-packages/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_pi/wifi—
Reply to this email directly or view it on GitHub
#48.
from wifi.
I have released a new version of wifi. Please let me know if that has fixed the installation problems.
Thanks again!
from wifi.
Thank you good Sir!
Thus today still the same Error, maybe it is not updated yet.
When pasting the CHANGES.rst in the pip's temp install dir, then I can build it manually with "sudo python setup.py install"
Is the manual approach the reason why 'wifi' cant find the module pbkdf2
?
$ sudo python
Python 2.7.3 (default, Mar 18 2014, 05:13:23)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wifi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "wifi/__init__.py", line 2, in <module>
from wifi.scheme import Scheme
File "wifi/scheme.py", line 5, in <module>
from pbkdf2 import PBKDF2
ImportError: No module named pbkdf2
from wifi.
As side node:
I find the setup at readthedocs not very helpful for my purposes,
because it leaves most situations uncovered.
From the documentation I can see you can get the networks by using $ sudo wifi scan
but how can I do that with python?
How can I connect to a specific network, e.g.
- the first network with name 'foo' and password 'bar'
- any unprotected network
- A network named
pw:<foobar>
with password<foobar>
$ sudo wifi connect --ad-hoc foo
Your stackoverflow answer here has helped a lot, because it shows how to list the networks.
Maybe something you could paste in the docs too?
What I am trying to say is, maybe you can share more code examples in how too use this great library.
Cheers
from wifi.
Hey @luckydonald,
Can you try installing again? I accidentally released a 1.0.0 version of widgy when I meant to released 0.3.4. I have gone ahead and deleted that 1.0.0 version from widgy.
In regards to your comments about the quality of the documentation. I think you are very right. I'm going to open a new issue about that.
from wifi.
I think this has been resolved. Thanks for reporting @luckydonald
from wifi.
Related Issues (20)
- Request: Join open network HOT 1
- interfaces file keeps growing HOT 1
- Can't connect on Raspberry Pi (Jessie) HOT 15
- Scheme always uses dhcp HOT 3
- Networking breaks after attempting to connect to an AP with spaces in its name HOT 1
- schema with colons brakes the library
- iwlist need root privilege HOT 11
- Failed to read scan data : Argument list too long
- Scheme.Save() Fails HOT 2
- Not installing bash completion because of lack of permission
- Saving Schemes with the same ESSID
- Error with ifdown while activating the scheme. No such interface as 'wlan1' HOT 4
- scheme.activate() returns non zero exit status 1 HOT 2
- Breaks Nework Connections on Raspberry Pi (Raspbian stretch)
- /sbins/ifdown
- Minor detail but Cell.all returns map, not a list. Modify the docs
- scan command error HOT 11
- the problem for :q
- the problem for ver 0.3.8 HOT 7
- Retrieving protocol from scan HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wifi.