I just ran into this issue while trying to create a new Pylons project
to work through the SimpleSite tutorial from the Pylons book.  The
traceback showed that the error was coming from a version of paste in /
usr/local/lib/python2.5/site-packages/paste/script/templates.py event
though I had just done a fresh install of Pylons in a virtualenv.

Starting over again with a virtualenv --no-site-packages solved the
problem for me.  Obviously I was picking up an older version of paste
that is installed in the system-wide site packages.

This was on OpenBSD 4.4 with Python 2.5.2.

On Oct 13, 1:18 am, Sreejith K <[email protected]> wrote:
> Is there any solution for this issue ?
>
> On Oct 12, 3:27 pm, Sreejith K <[email protected]> wrote:
>
> > I also got the same error. The output of Pdb is
>
> > ...........
> > ............
> >   File "/usr/lib64/python2.5/posixpath.py", line 60, in join
> >     if b.startswith('/'):
> > AttributeError: 'tuple' object has no attribute 'startswith'
> > Uncaught exception. Entering post mortem debugging
> > Running 'cont' or 'step' will restart the program> 
> > /usr/lib64/python2.5/posixpath.py(60)join()
>
> > -> if b.startswith('/'):
> > (Pdb) print b
> > ('pylons', 'templates/default_project')
>
> > b is a tuple ('pylons', 'templates/default_project')
> > Any idea ??
>
> > On Oct 5, 9:04 am, Sudhir Bala <[email protected]> wrote:
>
> > > -bash-3.2$ /usr/bin/paster --version
> > > PasteScript 1.7.3 from
> > > /usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg (python 2.5.1
> > > (r251:54863, Jun 15 2008, 18:24:51))
> > > -bash-3.2$
>
> > > On Sun, Oct 4, 2009 at 8:41 PM, Mike Orr <[email protected]> wrote:
>
> > > > On Sun, Oct 4, 2009 at 8:30 PM, kumar <[email protected]> 
> > > > wrote:
>
> > > > > Thank you very much for your response we tried with some other name
> > > > > but still we are getting this issue please help.
>
> > > > Oh, it's asking the App Engine question.  This is another indication
> > > > that your Pylons is slightly old.
>
> > > > I have no idea how a tuple got substituted for a path string, but it
> > > > suggests your copy of Pylons or Paste might be corrupted.  If you're
> > > > comfortable with the Python debugger you can run "python -m pdb `which
> > > > paster` create --template=pylons nav" and see what the value of 'b'
> > > > is.  That might give us a clue what's wrong.
>
> > > > But it's probably easier to install a fresh copy of Pylons 0.9.7 in
> > > > another virtualenv and see if the problem goes away.
>
> > > > --
> > > > Mike Orr <[email protected]>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to