On 4 April 2011 22:53, Sean <[email protected]> wrote:
> I think the first error is actually a permission problem with pip trying
> to write to its log file (which indicates a second error).
> I bet the first time you ran pip and it created a log you where using
> sudo, check the permissions of your .pip directory and the files inside,
> they are probably owned by root, change em back to your normal user
> account, and the pip error will go away.
>
> The actual problem, as you said is that the setup.py for the package is
> a little dodgy, and always trys to copy some test files under /usr.
>
> You pretty much have to fix that by hand,
>
> download the source for the ssl module from
>
> http://pypi.python.org/pypi/ssl/1.15#downloads
>
> edit the setup.py and comment out these lines (its just stuff for
> running test on the package, so you dont really need it)
>
>
>      #data_files=[(testdir, ['test/test_ssl.py',
>      #                       'test/keycert.pem',
>      #                       'test/badcert.pem',
>      #                       'test/badkey.pem',
>      #                       'test/nullcert.pem'])],
>
> Then run python setup.py install (after source bin/activate of course)
> and you should be ok.

Could also try changing this line  in setup.py for ssl.

from
get_python_lib(False, True)
to
get_python_lib()

Michael

-- 
You received this message because you are subscribed to the Google Groups 
"Python Ireland" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pythonireland?hl=en.

Reply via email to