Last night I set up a brand new 1.0rc1 installation to test my
trackback problems.  While installing ToscaWidgets, I got an odd
error:

  File "/var/www/pylons/lib/python2.5/site-packages/ToscaWidgets-0.9.9-
py2.5.egg/tw/mods/pylonshf.py", line 11, in <module>
    from pylons.templating import render
ImportError: cannot import name render


I knew that pylons.templating contained render as ToscaWidgets was
working fine before on my upgraded version:

(pylons)d...@pch1:/var/www/pylons/lib/python2.5/site-packages/
Pylons-1.0rc1-py2.5.egg/pylons$ wc -l templating.py /var/www/
pylons.broken//lib/python2.5/site-packages/Pylons-0.10rc1-py2.5.egg/
pylons/templating.py
  333 templating.py
  693 /var/www/pylons.broken//lib/python2.5/site-packages/
Pylons-0.10rc1-py2.5.egg/pylons/templating.py
 1026 total

after removing the old egg,

$ easy_install -U pylons
Searching for pylons
Reading http://pypi.python.org/simple/pylons/
Reading http://www.pylonshq.com/
Reading http://pylons.groovie.org/
Download error: (-2, 'Name or service not known') -- Some packages may
not be found!
Best match: Pylons 0.10rc1
Downloading 
http://pypi.python.org/packages/source/P/Pylons/Pylons-0.10rc1.tar.gz#md5=91803a8c2ead7cfd400ec44b4d5b78cc
Processing Pylons-0.10rc1.tar.gz

(pylons)d...@pch1:/var/www/pylons/lib/python2.5/site-packages/
Pylons-0.10rc1-py2.5.egg/pylons$ wc -l templating.py /var/www/
pylons.broken//lib/python2.5/site-packages/Pylons-0.10rc1-py2.5.egg/
pylons/templating.py
  693 templating.py
  693 /var/www/pylons.broken//lib/python2.5/site-packages/
Pylons-0.10rc1-py2.5.egg/pylons/templating.py


So, it appears that the egg installed through go-pylons.py is not
complete.

(pylons)d...@pch1:/var/www$ wget 
http://pylonshq.com/download/1.0rc1/go-pylons.py
--2010-03-22 14:54:52--  http://pylonshq.com/download/1.0rc1/go-pylons.py
Resolving pylonshq.com... 204.232.202.164
Connecting to pylonshq.com|204.232.202.164|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 68682 (67K) [text/x-python]
Saving to: "go-pylons.py"

100%[======================================>] 68,682      --.-K/s   in
0.1s

2010-03-22 14:54:53 (474 KB/s) - "go-pylons.py" saved [68682/68682]
(pylons)d...@pch1:/var/www$ diff go-pylons.py go-pylons.py.notsure
(pylons)d...@pch1:/var/www$

I was using the proper go-pylons.py


Broken:

Best match: Pylons 1.0rc1
Downloading http://pylonshq.com/download/1.0rc1/Pylons-1.0rc1.tar.gz

(pylons)d...@pch1:/tmp$ wget 
http://pylonshq.com/download/1.0rc1/Pylons-1.0rc1.tar.gz
--2010-03-22 14:57:40--  
http://pylonshq.com/download/1.0rc1/Pylons-1.0rc1.tar.gz
Resolving pylonshq.com... 204.232.202.164
Connecting to pylonshq.com|204.232.202.164|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 235420 (230K) [application/x-tar]
Saving to: "Pylons-1.0rc1.tar.gz"

100%[======================================>] 235,420      804K/s   in
0.3s

2010-03-22 14:57:40 (804 KB/s) - "Pylons-1.0rc1.tar.gz" saved
[235420/235420]

Works:

http://pypi.python.org/packages/source/P/Pylons/Pylons-0.10rc1.tar.gz

(pylons)d...@pch1:/tmp$ wget 
http://pypi.python.org/packages/source/P/Pylons/Pylons-0.10rc1.tar.gz
--2010-03-22 14:58:06--  
http://pypi.python.org/packages/source/P/Pylons/Pylons-0.10rc1.tar.gz
Resolving pypi.python.org... 82.94.164.163, 2001:888:2000:d::a3
Connecting to pypi.python.org|82.94.164.163|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 247908 (242K) [application/x-gzip]
Saving to: "Pylons-0.10rc1.tar.gz"

100%[======================================>] 247,908      354K/s   in
0.7s

2010-03-22 14:58:07 (354 KB/s) - "Pylons-0.10rc1.tar.gz" saved
[247908/247908]

The archive at pylonshq.com is smaller than the archive at
pypi.python.org -- and the one at pylonshq.com seems to be the
preferred one when running go-pylons.py.

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