pypi and easy_install

G

Giampaolo Rodola'

Hi,
I noticed tonight that I can't download/install a package of mine
hosted on pypi by using easy_install.
By running "ez_setup.py pyftpdlib" I get:

--- snippet --
options (after parsing config files):
no commands known yet
options (after parsing command line):
option dict for 'aliases' command:
{}
option dict for 'easy_install' command:
{'args': ('command line', ['pyftpdlib']), 'verbose': ('command
line', 1)}
Searching for pyftpdlib
Reading http://pypi.python.org/simple/pyftpdlib/
Reading http://code.google.com/p/pyftpdlib/
No local packages or download links found for pyftpdlib
Traceback (most recent call last):
File "C:\Documents and Settings\billiejoex\Desktop\ez_setup.py",
line 229, in
<module>
main(sys.argv[1:])
File "C:\Documents and Settings\billiejoex\Desktop\ez_setup.py",
line 187, in
main
main(argv)
File "C:\Python25\lib\site-packages\setuptools-0.6c7-py2.5.egg
\setuptools\comm
and\easy_install.py", line 1670, in main
File "C:\Python25\lib\site-packages\setuptools-0.6c7-py2.5.egg
\setuptools\comm
and\easy_install.py", line 1659, in with_ei_usage
File "C:\Python25\lib\site-packages\setuptools-0.6c7-py2.5.egg
\setuptools\comm
and\easy_install.py", line 1674, in <lambda>
File "C:\Python25\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands
self.run_command(cmd)
File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File "C:\Python25\lib\site-packages\setuptools-0.6c7-py2.5.egg
\setuptools\comm
and\easy_install.py", line 211, in run
File "C:\Python25\lib\site-packages\setuptools-0.6c7-py2.5.egg
\setuptools\comm
and\easy_install.py", line 440, in easy_install
distutils.errors.DistutilsError: Could not find suitable distribution
for Requir
ement.parse('pyftpdlib')
--- /snippet --

I noticed the following lines:
Searching for pyftpdlib
Reading http://pypi.python.org/simple/pyftpdlib/
Reading http://code.google.com/p/pyftpdlib/
No local packages or download links found for pyftpdlib

....which are very weird since, as you can see by looking here:
http://pypi.python.org/pypi/pyftpdlib/0.2.0
....I provided a download url and easy_install SHOULD know where to get
the package.
Could someone point me in the right direction?
 
G

Giampaolo Rodola'

G

Giampaolo Rodola'

You're right, the setup.py included in the tarball reports an invalid
download url.
I fixed the issue in setup.py and used "setup.py register" for
uploading the new package on pypi again.
As you can see from here:http://pypi.python.org/pypi?name=pyftpdlib&version=0.2.0&:action=disp...
...now the download url is correct, but the problem still remains. :-\

Found the culprit.
That's because my download URL points to
http://pyftpdlib.googlecode.com/files/pyftpdlib_0.2.0.tar.gz, which
is not a valid distutils-generated filename.
A valid filename for pytftpdblib would be pyftpdlib-0.2.0.tar.gz.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top