Note that there are some explanatory texts on larger screens.

plurals
  1. POeasy_install as a non-root user, received Download error: [Errno -2], but cpan download works
    primarykey
    data
    text
    <p>Here is my setup:</p> <p>Red Hat Enterprise Linux Server release 6.2 Non-root user</p> <pre><code>$easy_install –version Distribute 0.6.10 Perl 5.10.1 Python 2.6.6 </code></pre> <p>When I run the following, easy_install command as a non-root user it fails. I do not have root access:</p> <pre><code>[frank@simunec1 perl]$ easy_install --prefix /nas1_home4/frank/local docutils Searching for docutils Reading http://pypi.python.org/simple/docutils/ Download error: [Errno -2] Name or service not known -- Some packages may not be found! </code></pre> <p>Here are some of the things I have tried, and what does work (see 3):</p> <p>1) If I manually download the package to my Windows machine and upload to the Linux server and navigate to the directory containing the source, then the easy_install command above succeeds. But I am looking to have this command initiate the download successfully.</p> <p>2) I would get back a access denied HTML output file if I use curl, ie. </p> <pre><code>Curl –O http://python-distribute.org/distribute_setup.py. </code></pre> <p>3) The Linux server is behind a proxy server. I have set the http_proxy variable. More importantly, after setting that variable along with FTP_PASSIVE, I am able to download Perl modules through the cpan installer when I wasn't able to do so before. I have read that Python uses the same http_proxy environment variable, so why is the easy_install download still failing?</p> <p>4) What do I need to ask for from the network administrator to make this work?</p> <p>Thanks.</p> <h2>UPDATE 1:</h2> <p>I have set my http_proxy variables as follows:</p> <p>In my .cshrc file, setenv HTTP_PROXY '<a href="http://username:password@proxy.company.co.jp:10080" rel="nofollow">http://username:password@proxy.company.co.jp:10080</a>' setenv http_proxy '<a href="http://username:password@proxy.company.co.jp:10080" rel="nofollow">http://username:password@proxy.company.co.jp:10080</a>'</p> <p>When I run the CPAN installer, I would still get proxy authentication needed message whether I specify the username/password in my http_proxy string or not. And if I enter the same username and password, then the install will succeed:</p> <pre><code>$perl –MCPAN –e shell cpan[1]&gt;force install Time::Clock Proxy authentication needed! (Note: to permanently configure username and password run o conf proxy_user your_username o conf proxy_pass your_password ) Username: </code></pre> <p>In the Python easy_install case, I don’t get prompted the proxy username/password. It fails simply with</p> <pre><code>$easy_install --prefix /nas1_home4/frank/local docutils </code></pre> <p>Reading <a href="http://pypi.python.org/simple/docutils/" rel="nofollow">http://pypi.python.org/simple/docutils/</a></p> <p>No local packages or download links found for docutils</p> <p>error: Could not find suitable distribution for Requirement.parse('docutils'):</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload