Copy and paste says more than I can explain:
$ paster help
Traceback (most recent call last):
File "/usr/local/bin/paster", line 4, in ?
import pkg_resources
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py", line 2482, in ?
for dist in working_set.resolve(
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py", line 483, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: PasteScript==0.9.7
$ sudo easy_install -m PasteScript==0.9.7
Searching for PasteScript==0.9.7
Reading http://www.python.org/pypi/PasteScript/
Reading http://pythonpaste.org/script/
Reading http://www.python.org/pypi/PasteScript/0.9.8
No local packages or download links found for PasteScript==0.9.7
error: Could not find suitable distribution for
Requirement.parse('PasteScript==0.9.7')
Ok, pylons wants PasteScript 0.9.7, but I have only 0.9.8 there.
Any suggestions what I can do?
Thanks,
Martin
***
The link comes from:
http://www.python.org/pypi/PasteScript/0.9.7
--
Rick
$ paster create --template=pylons helloworld
Traceback (most recent call last):
File "/usr/local/bin/paster", line 5, in ?
pkg_resources.run_script('PasteScript==0.9.7', 'paster')
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py", line 407, in run_script self.require(requires)[0].run_script(script_name, ns)
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py", line 1084, in run_script
execfile(script_filename, namespace, namespace)
File
"/usr/lib/python2.4/site-packages/PasteScript-0.9.7-py2.4.egg/EGG-INFO/scripts/paster", line 18, in ?
command.run()
File
"/usr/lib/python2.4/site-packages/PasteScript-0.9.7-py2.4.egg/paste/script/command.py", line 76, in run invoke(command, command_name, options, args[1:])
File
"/usr/lib/python2.4/site-packages/PasteScript-0.9.7-py2.4.egg/paste/script/command.py", line 115, in invoke
exit_code = runner.run(args)
File
"/usr/lib/python2.4/site-packages/PasteScript-0.9.7-py2.4.egg/paste/script/command.py", line 210, in run
result = self.command()
File
"/usr/lib/python2.4/site-packages/PasteScript-0.9.7-py2.4.egg/paste/script/create_distro.py", line 69, in command
self.extend_templates(templates, tmpl_name)
File
"/usr/lib/python2.4/site-packages/PasteScript-0.9.7-py2.4.egg/paste/script/create_distro.py", line 222, in extend_templates
tmpl = entry.load()(entry.name)
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py", line 1829, in load
if require: self.require(env, installer)
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py", line 1842, in require
working_set.resolve(self.dist.requires(self.extras),env,installer))
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py", line 487, in resolve
raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (PasteScript 0.9.7
(/usr/lib/python2.4/site-packages/PasteScript-0.9.7-py2.4.egg),
Requirement.parse('PasteScript>=0.9.8'))
This seems to be somehow mixed with the versions.
Tell me what could I try next?
A simple 'paster create helloworld' works finde, but its to hard for me
to start there lerning pylons.
Thanks,
Martin
Am Donnerstag, den 19.10.2006, 10:37 -0500 schrieb Rick Flosi:
>
Ben or others: do you know if there's actually a PasteScript==0.9.7
requirement in Pylons (or ==0.9.8, or anything so specific)? I'm
guessing not.
In this case /usr/local/bin/paster had been created using PasteScript
0.9.7. Then you installed a different version of PasteScript, but maybe
the paster script from that installation was put elsewhere, or maybe
there was a permission denied for writing that script. So the script
was bound to 0.9.7, and it wasn't around.
You might try: easy_install -U PasteScript
And make sure that /usr/local/bin/paster is overwritten as part of that;
if it's not something went wrong, or some installation configuration has
changed.
--
Ian Bicking | ia...@colorstudy.com | http://blog.ianbicking.org
> In this case /usr/local/bin/paster had been created using PasteScript
> 0.9.7. Then you installed a different version of PasteScript, but maybe
> the paster script from that installation was put elsewhere, or maybe
> there was a permission denied for writing that script. So the script
> was bound to 0.9.7, and it wasn't around.
>
> You might try: easy_install -U PasteScript
>
> And make sure that /usr/local/bin/paster is overwritten as part of that;
> if it's not something went wrong, or some installation configuration has
> changed.
Thats wired... but I got it working. the paster script is in /usr/bin
here, but a /usr/local/bin/ paster script existed too. so now I removed
that and I'm using the /usr/bin one, and it works.
Thanks,
Martin