Joe Public
Joe Public

Reputation: 67

Python 2.7.5 on Cygwin64: requests installation fails

Our project is a mostly J2EE based development with the automatic functional and integration tests written in Python. The test environment is Linux nonetheless developers use Windows 7 (64-bit). We would like to be able to execute the functional tests on the developer machines as well (before comitting). Unfortunately the pexpect-windows-portability issue would leave us no choice but:

  1. To do some serious refactoring on our test libraries to be able to use both winpexpect (or wexpect) and pexpect depending on the os settings.
  2. Or to use cygwin. Guess what, with this second option we seem to have an issue :-) Using Python 2.7.5 on Cygwin64 installing the requests package results in error:
    • pip says it can not find a file after downloading and extracting the library
    • easy install doesn't throw an explicit error, but leaves everything in the temporary dir
    • after copying the files under the site-packages directory a simple import requests in python causes the interpreter to exit

Has anybody encountered this problem? With Cygwin-32 requests install smoothly. (however we have some other issues - see my next post ;-))

Thank you in advance: Joe, the public

Upvotes: 2

Views: 2720

Answers (3)

Pompina Singh
Pompina Singh

Reputation: 11

I downloaded from "https://github.com/requests/requests" and then i just ran the setup.py from the requests-master folder ( this was placed in cygwin folder). After that I went to cygwin terminal and then I ran python --> import requests. Voila it worked.

Upvotes: 0

Aron Ahmadia
Aron Ahmadia

Reputation: 2405

Update: This should be fixed in Cygwin.

This was a bug in CPython that has been fixed in their master branch. I've pushed a candidate package to the Python maintainer for Cygwin, but you might try this hotfix.

Upvotes: 1

Reshad user2701173
Reshad user2701173

Reputation: 477

Also ran into the same issues when trying to install requests, all the options on http://docs.python-requests.org/en/latest/user/install/#install did not work. I went to https://github.com/kennethreitz/requests and then clicked on "Download Zip" and I got requests-master.zip.

Upvotes: 1

Related Questions