Skip to content
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

pip install errors on Linux #6

Closed
jamescooke opened this issue Jul 14, 2013 · 13 comments
Closed

pip install errors on Linux #6

jamescooke opened this issue Jul 14, 2013 · 13 comments

Comments

@jamescooke
Copy link

Just opening this as a clean issue thread. Problem is that PyImgur package can not be installed on Linux through PyPI.

Full debug is as follows.

(env)james@blackbox:/tmp/test$ pip install pyimgur-0.3.2.tar.gz --verbose
Unpacking ./pyimgur-0.3.2.tar.gz
  Running setup.py egg_info for package from file:///tmp/test/pyimgur-0.3.2.tar.gz
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/tmp/pip-t98d8G-build/setup.py", line 10, in <module>
        INIT = open(os.path.join(HERE, PACKAGE_NAME, '__init__.py')).read()
    IOError: [Errno 2] No such file or directory: '/tmp/pip-t98d8G-build/pyimgur/__init__.py'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/tmp/pip-t98d8G-build/setup.py", line 10, in <module>

    INIT = open(os.path.join(HERE, PACKAGE_NAME, '__init__.py')).read()

IOError: [Errno 2] No such file or directory: '/tmp/pip-t98d8G-build/pyimgur/__init__.py'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-t98d8G-build
Exception information:
Traceback (most recent call last):
  File "/tmp/test/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
    status = self.run(options, args)
  File "/tmp/test/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 245, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/tmp/test/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 1009, in prepare_files
    req_to_install.run_egg_info()
  File "/tmp/test/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 225, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/tmp/test/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py", line 256, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip-t98d8G-build

pip.log contains the same info. Some previous discussion is here #5

@Damgaard
Copy link
Owner

I've looked but been unable to find any difference in the installation related code in PyImgur and PRAW. I didn't make the installation code for PRAW nor am I responsible for packaging. But I am a prolific contributor and help semi-maintain it, so I have a good idea of what issues people have with PRAW. I've never seen anyone have problems like yours. I've tried searching on SO and google and also been unable to dig up similar issues.

So the way I see it either I've made a mistake in the packaging or relase of the project. I'm not very experienced with packaging so this is a real posibility or it's something with your system and/or setup

Maybe you could create a question on StackOverflow and let the smart guyes there help us? I'll be glad to make changes to ensure that PyImgur can be installed problemfree on as many systems as possible.

@jamescooke
Copy link
Author

hi @Damgaard - that sounds like a good idea. I'm also not experienced with packaging and would like to be able to help you get it working. Plus I would like to find out if it's just a problem with my 64 bit boxes. I will investigate more.

You can assign this ticket to me if you want and I'll check it out.

@ToJa92
Copy link

ToJa92 commented Jul 21, 2013

I also have a similar issue. Seems like pip downloaded the Windows version instead of the .tar.gz. I then downloaded the .tar.gz from PyPi and I was able to install that version successfully. Full log available here (couldn't get the code block thingy to work): http://pastebin.com/Z7RaAyF1

@Damgaard
Copy link
Owner

Damgaard commented Aug 4, 2013

@jamescooke It doesn't appear that I can assign tickets to anyone but myself. Have you made a SO post?

@nik
Copy link

nik commented Aug 5, 2013

I have also received a somewhat similar error. Not sure what the problem may be.
Here's the log:

  Downloading from URL https://pypi.python.org/packages/any/p/pyimgur/pyimgur-0.4.2.win32.zip#md5=2766b10705a65df2db1599a2315b0ec4 (from https://pypi.python.o
rg/simple/pyimgur/)
  Running setup.py egg_info for package pyimgur

    Traceback (most recent call last):

      File "<string>", line 16, in <module>

    IOError: [Errno 2] No such file or directory: '/Users/nik/dev/testproject/build/pyimgur/setup.py'

    Complete output from command python setup.py egg_info:

    Traceback (most recent call last):

  File "<string>", line 16, in <module>

IOError: [Errno 2] No such file or directory: '/Users/nik/dev/testproject/build/pyimgur/setup.py'

----------------------------------------

I'm running this on OSX, however.

@Damgaard
Copy link
Owner

Damgaard commented Aug 7, 2013

I reproduced this error on a Linux machine and it appears that @ToJa92 was correct and that pip tried installing via the windows version. I've tested only deploying gztar verson and that appears to solve the problem. So please try installing the latest version (0.5) from PyPi and see if that solves your problem.

@ToJa92
Copy link

ToJa92 commented Aug 8, 2013

Fixed for me when installing 0.5 using pip on the same machine that previously gave me errors.

@Damgaard
Copy link
Owner

Damgaard commented Aug 8, 2013

Excellent! I'm going to close the issue, but you can reopen if you still have an issue installing on linux.

@Damgaard Damgaard closed this as completed Aug 8, 2013
@nik
Copy link

nik commented Aug 8, 2013

@Damgaard isn't that not really a fix, though? I had to install it manually from PyPi but a default pip install doesn't properly work since it tries to install the windows version

@Damgaard
Copy link
Owner

Damgaard commented Aug 8, 2013

There is no windows version for PyImgur 0.5. Are you having problems installing this version?

@nik
Copy link

nik commented Aug 8, 2013

There isn't? Then why does it try to install some win32 version, which doesn't work on macosx, I had to get the tar.gz and install it manually

@Damgaard
Copy link
Owner

Damgaard commented Aug 8, 2013

There is only a gztar version, you can check by going to the cheeseshop yourself. There was a problem installing 0.4.2 due to the existince of a win32 binary distribution. It seems likely that your system is trying to install this version rather than the latest. You can see what version is being installed by using the verbose commandline argument i.e pip install pyimgur -v Chances are you have a stale build directory laying around. See this SO Question

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

No branches or pull requests

5 participants
@jamescooke @ToJa92 @nik @Damgaard and others