I'm getting this error following the Routes' integrator page:
Python 2.5.1 (r251:54863, Oct 30 2007, 13:54:11)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from routes import *
>>> m = Mapper()
>>> m.connect(':controller/:action/:id')
>>>
>>> m.create_regs(['content','admin/comments','blog'])
>>> m.connect('articles/:year/:month', controller='blog', action='view',
>>> year=None)
>>> m.match('/articles/2003/10')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/Routes-1.7.1-py2.5.egg/routes/
base.py", line 807, in match
result = self._match(url)
File "/usr/lib/python2.5/site-packages/Routes-1.7.1-py2.5.egg/routes/
base.py", line 786, in _match
self.sub_domains_ignore, self.domain_match)
File "/usr/lib/python2.5/site-packages/Routes-1.7.1-py2.5.egg/routes/
base.py", line 389, in match
match = self.regmatch.match(url)
AttributeError: 'Route' object has no attribute 'regmatch'
I had a problem to install Routes:
# easy_install Routes
Searching for Routes
Reading http://pypi.python.org/simple/Routes/
Reading http://routes.groovie.org/
Best match: Routes 1.7.1
Downloading
http://pypi.python.org/packages/source/R/Routes/Routes-1.7.1.tar.gz#md5=89cdc61ae803dc151c338ddd85551478
Processing Routes-1.7.1.tar.gz
Running Routes-1.7.1/setup.py -q bdist_egg --dist-dir /tmp/
easy_install-6WfDwS/Routes-1.7.1/egg-dist-tmp-neZjdu
Traceback (most recent call last):
File "/usr/bin/easy_install", line 8, in <module>
load_entry_point('setuptools==0.6c8', 'console_scripts',
'easy_install')()
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
setuptools/command/easy_install.py", line 1671, in main
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
setuptools/command/easy_install.py", line 1659, in with_ei_usage
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
setuptools/command/easy_install.py", line 1675, in <lambda>
File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.5/distutils/dist.py", line 974, in
run_commands
self.run_command(cmd)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in
run_command
cmd_obj.run()
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
setuptools/command/easy_install.py", line 211, in run
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
setuptools/command/easy_install.py", line 446, in easy_install
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
setuptools/command/easy_install.py", line 476, in install_item
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
setuptools/command/easy_install.py", line 655, in install_eggs
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
setuptools/command/easy_install.py", line 930, in build_and_install
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
setuptools/command/easy_install.py", line 919, in run_setup
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
setuptools/sandbox.py", line 27, in run_setup
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
setuptools/sandbox.py", line 63, in run
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
setuptools/sandbox.py", line 29, in <lambda>
File "setup.py", line 1, in <module>
ImportError: No module named ez_setup
So I downloaded the gziped file and followed this advice:
http://groups.google.com/group/pylons-discuss/browse_thread/thread/1ccf9366004c8e11
and the install went OK. The distribution is Fedora 8.
Regards, Clodoaldo Pinto Neto
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---