Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

pip not installing #48

Closed
luckydonald opened this issue Sep 2, 2014 · 6 comments
Closed

pip not installing #48

luckydonald opened this issue Sep 2, 2014 · 6 comments

Comments

@luckydonald
Copy link

I have problems installing wifi 1.0.0 (?) 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 "<string>", line 17, in <module>
      File "/tmp/pip_build_pi/wifi/setup.py", line 42, in <module>
        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 "<string>", line 17, in <module>

  File "/tmp/pip_build_pi/wifi/setup.py", line 42, in <module>

    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 "<string>", line 17, in <module>
      File "/tmp/pip_build_pi/wifi/setup.py", line 42, in <module>
        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 "<string>", line 17, in <module>

  File "/tmp/pip_build_pi/wifi/setup.py", line 42, in <module>

    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
@rockymeza
Copy link
Owner

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" notifications@github.com写道:

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.

@rockymeza
Copy link
Owner

@luckydonald,

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

Thanks again!

@luckydonald
Copy link
Author

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

@luckydonald
Copy link
Author

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

@rockymeza
Copy link
Owner

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.

@rockymeza
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants