Discussion:
[Erp5-dev] Install ERP5 on Mandriva 2010 using buildout
Abou Mariam
2009-12-22 15:35:30 UTC
Permalink
Hello,

As mentionned on the page http://www.erp5.org/DownloadBuildout, I tryed to
install ERP5 using buildout but I have the following error : IOError: [Errno
ftp error] (110, 'Connection timed out')

However, I print the url of the file (
ftp://ftp.tummy.com/pub/python-memcached/ ) by unzipping the
setuptools-0.6c11-py2.4.egg and adding print in the package_index.py script.
( Is there a simple way to have the url even in the error message?)
I have download the file with Konqueror but impossible with firefox!

How can I use the downloaded file ( python-memcached-1.45.tar.gz ) with
buildout? Or where are listed the urls in order to replace the ftp url by
another one ?

Mato

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20091222/cbaa1f79/attachment.htm>
Kazuhiko Shiozaki
2009-12-22 16:01:24 UTC
Permalink
Hello,
Post by Abou Mariam
As mentionned on the page http://www.erp5.org/DownloadBuildout, I tryed
[Errno ftp error] (110, 'Connection timed out')
However, I print the url of the file (
ftp://ftp.tummy.com/pub/python-memcached/ ) by unzipping the
setuptools-0.6c11-py2.4.egg and adding print in the package_index.py
script. ( Is there a simple way to have the url even in the error message?)
add '-v' argument when you invoke buildout command.
Post by Abou Mariam
I have download the file with Konqueror but impossible with firefox!
How can I use the downloaded file ( python-memcached-1.45.tar.gz ) with
buildout? Or where are listed the urls in order to replace the ftp url
by another one ?
Temporarily, I copyied the same file to :
http://www.nexedi.org/static/packages/source/python-memcached-1.45.tar.gz

And when I tried buildout with '-v', the log says:

We have no distributions for python-memcached that satisfies
'python-memcached==1.45'.
open_url('http://download.zope.org/distribution/')
open_url('http://download.hforge.org/itools/0.20/')
open_url('http://download.hforge.org/itools/')
open_url('http://dist.repoze.org')
open_url('http://www.nexedi.org/static/packages/source/')
open_url('http://pypi.python.org/simple/python-memcached/')
open_url('http://www.tummy.com/Community/software/python-memcached/')
open_url('ftp://ftp.tummy.com/pub/python-memcached/')
Getting distribution for 'python-memcached==1.45'.
open_url('http://www.nexedi.org/static/packages/source/python-memcached-1.45.tar.gz')
...

So it may work even when ftp does not work in your environment.
(But I'm not sure if it works when you cannot connect ftp.tummy.com)

And back to your question, you can create a directory to put downloaded
files (eg. /tmp/source), and add the path in find-links parameter of
[buildout] (see profiles/base.cfg for example). eg.

find-links +=
file:///tmp/source/
--
Kazuhiko Shiozaki, Nexedi SA Senior Consultant
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Full Featured High End Open Source ERP
http://www.erp5.com
ERP5 Wiki: Developer Zone for ERP5 Community
http://www.erp5.org
Abou Mariam
2009-12-22 22:18:13 UTC
Permalink
Hello,

I answer directely because I subscribe in the mailing list today and I
didn't receive the message yet.

Thank you for the answer.

I have add the link file:///tmp/source in the profiles/base.cfg files.
Also I have tried to buildout at home by supposing that the ftp is
blocked at work but I have another erreur "Error : Couldn't install :
python-memcached 1.45
The complete traceback is attached in this message.

Mato
Regards
-------------- next part --------------
[root at localhost mato]# python2.4 -S bin/buildout
Develop: '/home/mato/recipes'
Updating zope2.
Updating fake eggs
Updating cmf15.
Updating products-deps.
Updating products-other.
Updating products-erp5.
Updating itools.
Installing erp5_instance.
Getting distribution for 'python-memcached==1.45'.
Traceback (most recent call last):
File "<string>", line 1, in ?
File "setuptools/command/easy_install.py", line 1712, in main
with_ei_usage(lambda:
File "setuptools/command/easy_install.py", line 1700, in with_ei_usage
return f()
File "setuptools/command/easy_install.py", line 1716, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
cmd_obj.run()
File "setuptools/command/easy_install.py", line 211, in run
self.easy_install(spec, not self.no_deps)
File "setuptools/command/easy_install.py", line 427, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "setuptools/command/easy_install.py", line 476, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "setuptools/command/easy_install.py", line 655, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "setuptools/command/easy_install.py", line 930, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "setuptools/command/easy_install.py", line 919, in run_setup
run_setup(setup_script, args)
File "setuptools/sandbox.py", line 61, in run_setup
DirectorySandbox(setup_dir).run(
File "setuptools/sandbox.py", line 105, in run
return func()
File "setuptools/sandbox.py", line 64, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 17, in ?
File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
cmd_obj.run()
File "setuptools/command/bdist_egg.py", line 167, in run
self.run_command("egg_info")
File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
cmd_obj.run()
File "setuptools/command/egg_info.py", line 177, in run
self.find_sources()
File "setuptools/command/egg_info.py", line 252, in find_sources
mm.run()
File "setuptools/command/egg_info.py", line 306, in run
self.add_defaults()
File "setuptools/command/egg_info.py", line 330, in add_defaults
sdist.add_defaults(self)
File "setuptools/command/sdist.py", line 199, in add_defaults
build_py = self.get_finalized_command('build_py')
File "/usr/lib/python2.4/distutils/cmd.py", line 318, in get_finalized_command
cmd_obj = self.distribution.get_command_obj(command, create)
File "/usr/lib/python2.4/distutils/dist.py", line 840, in get_command_obj
klass = self.get_command_class(command)
File "setuptools/dist.py", line 395, in get_command_class
self.cmdclass[command] = cmdclass = ep.load()
File "pkg_resources.py", line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named build_py
An error occured when trying to install python-memcached 1.45. Look above this message for any errors that were output by easy_install.
While:
Installing erp5_instance.
Getting distribution for 'python-memcached==1.45'.
Error: Couldn't install: python-memcached 1.45

Loading...