Installing when > 1 version of Python ?
- From:
- Richard Shea
- Date:
- 2009-07-28 @ 10:51
Hi - I want to install Lamson on a machine which has both Python 2.4 and
2.5. I want to install it under 2.5.
When I try this to use easy_install with lamson it appears that it's
wanting to install into the 2.4 version even though I'm in the 2.5
version directory. The output is shown below. Is there any work around
for this ?
I'd be just as happy with instructions on how best to install it
manually - thanks. The machine is running W2003.
E:\bin\installed\Python2.5>easy_install -n lamson
Searching for lamson
Best match: lamson 1.0pre1
Processing lamson-1.0pre1-py2.4.egg
lamson 1.0pre1 is already the active version in easy-install.pth
Installing lamson script to E:\bin\installed\Python2.4.1\Scripts
Using
e:\bin\installed\python2.4.1\lib\site-packages\lamson-1.0pre1-py2.4.egg
Processing dependencies for lamson
Searching for python-daemon
Reading http://cheeseshop.python.org/pypi/python-daemon/
Reading http://cheeseshop.python.org/pypi/python-daemon/1.4.6
Best match: python-daemon 1.4.6
Downloading
http://pypi.python.org/packages/source/p/python-daemon/python-daemon-1.4.6.tar.gz#md5=f3a81fd573d3770f616515f39058e31f
Processing python-daemon-1.4.6.tar.gz
Running python-daemon-1.4.6\setup.py -n -q bdist_egg --dist-dir
c:\docume~1\remote~1\locals~1\temp\1\easy_install-vpn4ua\python-daemon-1.4.6\egg-dist-tmp-q9c3p9
Traceback (most recent call last):
File "E:\bin\installed\Python2.4.1\Scripts\easy_install-script.py",
line 7, in ?
sys.exit(
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\command\easy_install.py",
line 1670, in main
with_ei_usage(lambda:
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\command\easy_install.py",
line 1659, in with_ei_usage
return f()
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\command\easy_install.py",
line 1674, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "E:\bin\installed\Python2.4.1\lib\distutils\core.py", line 149,
in setup
dist.run_commands()
File "E:\bin\installed\Python2.4.1\lib\distutils\dist.py", line 946,
in run_commands
self.run_command(cmd)
File "E:\bin\installed\Python2.4.1\lib\distutils\dist.py", line 966,
in run_command
cmd_obj.run()
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\command\easy_install.py",
line 211, in run
self.easy_install(spec, not self.no_deps)
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\command\easy_install.py",
line 446, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\command\easy_install.py",
line 476, in install_item
self.process_distribution(spec, dists[0], deps, "Using")
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\command\easy_install.py",
line 518, in process_distribution
distros = WorkingSet([]).resolve(
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\pkg_resources.py",
line 481, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\pkg_resources.py",
line 717, in best_match
return self.obtain(req, installer) # try and download/install
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\pkg_resources.py",
line 729, in obtain
return installer(requirement)
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\command\easy_install.py",
line 446, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\command\easy_install.py",
line 471, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\command\easy_install.py",
line 655, in install_eggs
return self.build_and_install(setup_script, setup_base)
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\command\easy_install.py",
line 930, in build_and_install
self.run_setup(setup_script, setup_base, args)
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\command\easy_install.py",
line 919, in run_setup
run_setup(setup_script, args)
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\sandbox.py",
line 26, in run_setup
DirectorySandbox(setup_dir).run(
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\sandbox.py",
line 63, in run
return func()
File
"E:\bin\installed\Python2.4.1\lib\site-packages\setuptools-0.6c5-py2.4.egg\setuptools\sandbox.py",
line 29, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 18, in ?
TypeError: __import__() takes no keyword arguments
E:\bin\installed\Python2.5>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The Cuba Group
PO Box 15041
Wellington
New Zealand
PH +64 4 496 5205
MO +64 21 976 683
FX +64 4 496 5209
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Re: Installing when > 1 version of Python ?
- From:
- Zed A. Shaw
- Date:
- 2009-07-28 @ 18:26
On Tue, Jul 28, 2009 at 10:51:18PM +1200, Richard Shea wrote:
> I'd be just as happy with instructions on how best to install it
> manually - thanks. The machine is running W2003.
>....
> E:\bin\installed\Python2.5>easy_install -n lamson
Oh wait, I spoke too soon. You're on windows. Lamson doesn't support
windows, and it may never because windows doesn't have things like fork.
You're free to try to get it to work, but I wouldn't hold my breath if I
were you.
--
Zed A. Shaw
http://zedshaw.com/
Re: Installing when > 1 version of Python ?
- From:
- Zed A. Shaw
- Date:
- 2009-07-28 @ 18:24
On Tue, Jul 28, 2009 at 10:51:18PM +1200, Richard Shea wrote:
> Hi - I want to install Lamson on a machine which has both Python 2.4 and
> 2.5. I want to install it under 2.5.
>
> When I try this to use easy_install with lamson it appears that it's
> wanting to install into the 2.4 version even though I'm in the 2.5
> version directory. The output is shown below. Is there any work around
> for this ?
>
> I'd be just as happy with instructions on how best to install it
> manually - thanks. The machine is running W2003.
Yeah, easy_install is pretty horrible with multipler versions of python.
If you don't want to build an entirely separate Python as I do in these
instructions:
http://lamsonproject.org/docs/deploying_lamson.html
Then your next best chance is to use a virtualenv. Go ahead and try the
above instructions up to step 5. They pretty much guarantee that you'll
get a working Python and all the needed stuff no matter how screwed up
your system is.
--
Zed A. Shaw
http://zedshaw.com/