GithubHelp home page GithubHelp logo

pip not installing about wifi HOT 6 CLOSED

rockymeza avatar rockymeza commented on September 3, 2024
pip not installing

from wifi.

Comments (6)

rockymeza avatar rockymeza commented on September 3, 2024

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 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'


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:

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'


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.

rockymeza avatar rockymeza commented on September 3, 2024

@luckydonald,

I have released a new version of wifi. Please let me know if that has fixed the installation problems.

Thanks again!

from wifi.

luckydonald avatar luckydonald commented on September 3, 2024

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.

luckydonald avatar luckydonald commented on September 3, 2024

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.

rockymeza avatar rockymeza commented on September 3, 2024

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.

rockymeza avatar rockymeza commented on September 3, 2024

I think this has been resolved. Thanks for reporting @luckydonald

from wifi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.