Dear Turbogears community,

installing turbogears (1.5b2) on a Vista box (shame on me) with a
"fresh and empty" Python2.6.6 with plain easy_install turbogears seems
to install CherryPy3.2.0 for Python3:

Reading http://download.cherrypy.org/cherrypy/3.0.4/
Reading http://download.cherrypy.org/cherrypy/3.2.0/
Best match: CherryPy 3.2.0-py3
Downloading 
http://download.cherrypy.org/cherrypy/3.2.0/CherryPy-3.2.0-py3.win32.exe
Processing CherryPy-3.2.0-py3.win32.exe
SyntaxError: ('invalid syntax', ('c:\\....\\appdata\\local\\temp\
\easy_install-jidp_7\\CherryPy-3.2.0-py2.6-win32.egg.tmp\\cherrypy\
\test\\logtest.py',
53, 21, "        print(p, end=' ')\n"))

... and some more errors of the same kind (without interrupting the
process, and a repeated easy_install turbogears just says: everything
is installed)

Which, of course, produces some errors:

>c:\Python26\Scripts\tg-admin
Traceback (most recent call last):
  File "c:\Python26\Scripts\tg-admin-script.py", line 8, in <module>
    load_entry_point('turbogears==1.5b2', 'console_scripts', 'tg-
admin')()
  File "c:\Python26\lib\site-packages\pkg_resources.py", line 318, in
load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "c:\Python26\lib\site-packages\pkg_resources.py", line 2221, in
load_entry_point
    return ep.load()
  File "c:\Python26\lib\site-packages\pkg_resources.py", line 1954, in
load
 entry = __import__(self.module_name, globals(),globals(),
['__name__'])
  File "c:\Python26\lib\site-packages\turbogears-1.5b2-py2.6.egg
\turbogears\__init__.py", line 15, in <module>
    from turbogears.config import update_config
  File "c:\Python26\lib\site-packages\turbogears-1.5b2-py2.6.egg
\turbogears\config.py", line 7, in <module>
    import cherrypy
  File "c:\Python26\lib\site-packages\cherrypy-3.2.0-py2.6-win32.egg
\cherrypy\__init__.py", line 68, in <module>
    from cherrypy import _cpdispatch as dispatch
  File "c:\Python26\lib\site-packages\cherrypy-3.2.0-py2.6-win32.egg
\cherrypy\_cpdispatch.py", line 200, in <module>
    punctuation_to_underscores = str.maketrans(AttributeError: type
object 'str' has no attribute 'maketrans'

(which is true for 2.6, cause it would have to be string instead of
str)

Somewhat interesting is the cherrypy-3.2.0-py2.6-win32.egg\ path
above. Note: the site-packages directory was "fresh" prior to
installing turbogears.

Context: We have to decide pretty soon if we want to "port" a somewhat
large application developed against TG1.0.x (x=9 nowadays, 3 at the
start ;) to 1.5 (we like to stay with CP) before finally going online,
but perhaps aiming at CP3.2 is a bit over-ambitious?

Please, feel free to share your thoughts about "migrating" from 1.0.9
to 1.5 if you like ;)

More specifically: would those of you using CP recommend to install
3.1.2 instead of the recently released 3.2 for experiments (and,
finally and, hopefully soon, production)?

All the best for now,

  Jannico

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en.

Reply via email to