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

Installing from PyPI with pip still broken #100

Closed
calpaterson opened this issue Dec 12, 2014 · 13 comments
Closed

Installing from PyPI with pip still broken #100

calpaterson opened this issue Dec 12, 2014 · 13 comments

Comments

@calpaterson
Copy link

Hey,

I can see that you merged PR #97 recently to fix this issue, but it's still not possible to install via pip for me. Here's a transcript:

(tempenv-5f92108943223) cal@hp-elitedesk ~/s/b/i/ops> pip install apns
Downloading/unpacking apns
  Downloading apns-2.0.tar.gz
  Running setup.py (path:/home/cal/.virtualenvs/tempenv-5f92108943223/build/apns/setup.py) egg_info for package apns

Installing collected packages: apns
  Running setup.py install for apns
    error: file '/home/cal/.virtualenvs/tempenv-5f92108943223/build/apns/apns-send' does not exist
    Complete output from command /home/cal/.virtualenvs/tempenv-5f92108943223/bin/python -c "import setuptools, tokenize;__file__='/home/cal/.virtualenvs/tempenv-5f92108943223/build/apns/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-gleqyn-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/cal/.virtualenvs/tempenv-5f92108943223/include/site/python2.7:
    running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

copying apns.py -> build/lib.linux-x86_64-2.7

running build_scripts

creating build/scripts-2.7

error: file '/home/cal/.virtualenvs/tempenv-5f92108943223/build/apns/apns-send' does not exist

----------------------------------------
Cleaning up...
Command /home/cal/.virtualenvs/tempenv-5f92108943223/bin/python -c "import setuptools, tokenize;__file__='/home/cal/.virtualenvs/tempenv-5f92108943223/build/apns/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-gleqyn-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/cal/.virtualenvs/tempenv-5f92108943223/include/site/python2.7 failed with error code 1 in /home/cal/.virtualenvs/tempenv-5f92108943223/build/apns
Storing debug log for failure in /home/cal/.pip/pip.log
@luccascorrea
Copy link

+1

3 similar comments
@xissburg
Copy link

+1

@denisov
Copy link

denisov commented Dec 15, 2014

+1

@jonhairston
Copy link

+1

@Zearin
Copy link

Zearin commented Jan 2, 2015

+1 !!!

OH MY GOD. I thought I was crazy regarding this issue. Nice to know I’m not alone.

If it helps, here was my output:

$ pip2 install apns
Collecting apns
  Downloading apns-2.0.tar.gz
Installing collected packages: apns
  Running setup.py install for apns
    error: file '/private/var/folders/5r/xq6y7k_95h568t_0qwmycdb40000gp/T/pip-build-SOCaMq/apns/apns-send' does not exist
    Complete output from command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/var/folders/5r/xq6y7k_95h568t_0qwmycdb40000gp/T/pip-build-SOCaMq/apns/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/5r/xq6y7k_95h568t_0qwmycdb40000gp/T/pip-m77g2I-record/install-record.txt --single-version-externally-managed --compile:
    running install

    running build

    running build_py

    creating build

    creating build/lib

    copying apns.py -> build/lib

    running build_scripts

    creating build/scripts-2.7

    error: file '/private/var/folders/5r/xq6y7k_95h568t_0qwmycdb40000gp/T/pip-build-SOCaMq/apns/apns-send' does not exist

    ----------------------------------------
    Command "/usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/var/folders/5r/xq6y7k_95h568t_0qwmycdb40000gp/T/pip-build-SOCaMq/apns/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/5r/xq6y7k_95h568t_0qwmycdb40000gp/T/pip-m77g2I-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /var/folders/5r/xq6y7k_95h568t_0qwmycdb40000gp/T/pip-build-SOCaMq/apns

This has been happening for months. During all that time, I’ve been trying everything I can think of to fix it. Please help!

@blixt
Copy link
Contributor

blixt commented Jan 3, 2015

Same here…

@blixt
Copy link
Contributor

blixt commented Jan 3, 2015

I looked into it and it seems that the latest version in this repo hasn't been uploaded to the Python Package Index. Version 2.0 on there was updated November 3: https://pypi.python.org/pypi/apns/2.0

The fix would be to update version in this repo to 2.0.1 and upload it.

@blixt
Copy link
Contributor

blixt commented Jan 3, 2015

Here's the required change: #104

Only @djacobs and @simonwhitaker are able to push it to the Python Package Index, though.

@djacobs
Copy link
Owner

djacobs commented Jan 3, 2015

@blixt I'll look into this.

@blixt
Copy link
Contributor

blixt commented Jan 3, 2015

@djacobs Cool, thank you! :)

@FloresRobles
Copy link

+1

@blixt
Copy link
Contributor

blixt commented Jan 8, 2015

People who are still having this issue can use this temporary solution until it's fixed in this repo. Putting this line in requirements.txt instead of the normal line that includes PyAPNs will work:

git+git://github.com/blixt/PyAPNs.git@88767427f4f3215f2aafe579c84c55457706e011#egg=apns

It points to the specific commit that is contained in my pull request above.

@djacobs
Copy link
Owner

djacobs commented Jan 12, 2015

We're up. https://pypi.python.org/pypi/apns/2.0.1

@djacobs djacobs closed this as completed Jan 12, 2015
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

9 participants