pyramidtut

47 views
Skip to first unread message

czam

unread,
Nov 16, 2011, 8:39:07 AM11/16/11
to pylons-devel
Hi list, I got a strange error starting with the wiki tutorial at
http://docs.pylonsproject.org/projects/pyramid/dev/tutorials/wiki2/installation.html
Seems to be a problem in the webob egg...
Just 2 days before I got the tutorial working on another Win7-64bit, I
am using Python 2.5.4 and everything is setup exactly as stated in the
tutorial.

d:\pyramid\pyramidtut>Scripts\paster.exe create -t
pyramid_routesalchemy tutoria
l
Traceback (most recent call last):
File "d:\pyramid\pyramidtut\Scripts\paster-script.py", line 8, in
<module>
load_entry_point('pastescript==1.7.5', 'console_scripts', 'paster')
()
File "d:\pyramid\pyramidtut\lib\site-packages\pastescript-1.7.5-
py2.5.egg\past
e\script\command.py", line 104, in run
invoke(command, command_name, options, args[1:])
File "d:\pyramid\pyramidtut\lib\site-packages\pastescript-1.7.5-
py2.5.egg\past
e\script\command.py", line 143, in invoke
exit_code = runner.run(args)
File "d:\pyramid\pyramidtut\lib\site-packages\pastescript-1.7.5-
py2.5.egg\past
e\script\command.py", line 238, in run
result = self.command()
File "d:\pyramid\pyramidtut\lib\site-packages\pastescript-1.7.5-
py2.5.egg\past
e\script\create_distro.py", line 73, in command
self.extend_templates(templates, tmpl_name)
File "d:\pyramid\pyramidtut\lib\site-packages\pastescript-1.7.5-
py2.5.egg\past
e\script\create_distro.py", line 262, in extend_templates
tmpl = entry.load()(entry.name)
File "d:\pyramid\pyramidtut\lib\site-packages\setuptools-0.6c11-
py2.5.egg\pkg_
resources.py", line 1954, in load
File "d:\pyramid\pyramidtut\lib\site-packages\pyramid-1.2.1-py2.5.egg
\pyramid\
__init__.py", line 1, in <module>
from pyramid.request import Request
File "d:\pyramid\pyramidtut\lib\site-packages\pyramid-1.2.1-py2.5.egg
\pyramid\
request.py", line 6, in <module>
from webob import BaseRequest
File "build\bdist.win32\egg\webob\__init__.py", line 1, in <module>
File "build\bdist.win32\egg\webob\datetime_utils.py", line 18, in
<module>
File "d:\pyramid\pyramidtut\lib\site-packages\webob-1.2b2-py2.5.egg
\webob\comp
at.py", line 89
return b''
^
SyntaxError: invalid syntax

d:\pyramid\pyramidtut>

Any ideas?

Chris McDonough

unread,
Nov 16, 2011, 8:53:32 AM11/16/11
to pylons...@googlegroups.com


WebOb 1.2 doesn't work under Python 2.5. I'd try to use Python 2.6 or
better for the tutorial.

- C


czam

unread,
Nov 16, 2011, 10:00:56 AM11/16/11
to pylons-devel
On 16 Nov., 14:53, Chris McDonough <chr...@plope.com> wrote:
> On Wed, 2011-11-16 at 05:39 -0800, czam wrote:
> > Hi list, I got a strange error starting with the wiki tutorial at
> >http://docs.pylonsproject.org/projects/pyramid/dev/tutorials/wiki2/in...
Chris, thanks for the quick reply! I installed python 2.7.2 and put it
on my path (even rebooted) but unfortunately I get the same message
again... easy_install seems to still fetch the 2.5egg of webob,
anything else I'm missing?

Michael Merickel

unread,
Nov 16, 2011, 11:11:07 AM11/16/11
to pylons...@googlegroups.com
I'm unaware of another situation where this error shows up other than using Python 2.5. I'd ensure that you are in fact on 2.7 before chasing other solutions. If easy_install is pulling down the 2.5 egg then it means you're on 2.5.


--
You received this message because you are subscribed to the Google Groups "pylons-devel" group.
To post to this group, send email to pylons...@googlegroups.com.
To unsubscribe from this group, send email to pylons-devel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.




--

Michael

Tres Seaver

unread,
Nov 16, 2011, 11:34:49 AM11/16/11
to pylons...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/16/2011 11:11 AM, Michael Merickel wrote:
> I'm unaware of another situation where this error shows up other than
> using Python 2.5. I'd ensure that you are in fact on 2.7 before
> chasing other solutions. If easy_install is pulling down the 2.5 egg
> then it means you're on 2.5.

OP should try generating a new virtualenv using Python 2.7: the existing
virtualenv is hard-wired to use the Python it was built from.


Tres,
- --
===================================================================
Tres Seaver +1 540-429-0999 tse...@palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7D5ikACgkQ+gerLs4ltQ4AIwCgrPqbqohhPWWmsZNHBzE4/lpu
V0IAn2vFFIRMjOnc4LmxIJBBPiTNRWZQ
=51ey
-----END PGP SIGNATURE-----

czam

unread,
Nov 17, 2011, 1:33:47 PM11/17/11
to pylons-devel
Many thanks - that helped
>C:\Python27\python.exe ..\path\to\ez_setup.py
D:\pyramid>easy_install virtualenv
...





On 16 Nov., 17:34, Tres Seaver <tsea...@palladion.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 11/16/2011 11:11 AM, Michael Merickel wrote:
>
> > I'm unaware of another situation where this error shows up other than
> > using Python 2.5. I'd ensure that you are in fact on 2.7 before
> > chasing other solutions. If easy_install is pulling down the 2.5 egg
> > then it means you're on 2.5.
>
> OP should try generating a new virtualenv using Python 2.7:  the existing
> virtualenv is hard-wired to use the Python it was built from.
>
> Tres,
> - --
> ===================================================================
> Tres Seaver          +1 540-429-0999          tsea...@palladion.com
> Palladion Software   "Excellence by Design"    http://palladion.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/
Reply all
Reply to author
Forward
0 new messages