469,312 Members | 2,524 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,312 developers. It's quick & easy.

import cherrypy2

Hello i can't import cherrypy2 but i don't know why this is the sys
path:

'', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
setuptools-0.6c7-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/TurboGears-1.0.4.4-py2.5.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/TurboKid-1.0.4-py2.5.egg',
'/home/pirataja/opo.net/python/lib/python2.5/site-packages/
TurboJson-1.1.2-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/TurboCheetah-1.0-py2.5.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/simplejson-1.9.1-py2.5-
linux-i686.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-
packages/RuleDispatch-0.5a0.dev_r2306-py2.5-linux-i686.egg', '/home/
pirataja/opo.net/python/lib/python2.5/site-packages/PasteScript-1.6.2-
py2.5.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
FormEncode-1.0.1-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/DecoratorTools-1.7-py2.5.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/configobj-4.5.2-py2.5.egg',
'/home/pirataja/opo.net/python/lib/python2.5/site-packages/
CherryPy-2.3.0-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/kid-0.9.6-py2.5.egg', '/home/pirataja/opo.net/
python/lib/python2.5/site-packages/Cheetah-2.0.1-py2.5-linux-
i686.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
PyProtocols-1.0a0dev_r2302-py2.5-linux-i686.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/PasteDeploy-1.3.1-
py2.5.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
Paste-1.7-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python25.zip', '/home/pirataja/pirata-jacopo.net/python/lib/
python2.5', '/home/pirataja/opo.net/python/lib/python2.5/plat-
linux2',
'/home/pirataja/opo.net/python/lib/python2.5/lib-tk',
'/home/pirataja/opo.net/python/lib/python2.5/lib-dynload', '/home/
pirataja/opo.net/python/lib/python2.5/site-packages']

For my is all ok but whe i do import cherrypy2 i get no mudule name
cherrypy2

Regards

Luca
Jun 27 '08 #1
5 1123
On Jun 6, 10:22*am, luca72 <lucabe...@libero.itwrote:
Hello i can't import cherrypy2 but i don't know why this is the sys
path:

'', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
setuptools-0.6c7-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/TurboGears-1.0.4.4-py2.5.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/TurboKid-1.0.4-py2.5.egg',
'/home/pirataja/opo.net/python/lib/python2.5/site-packages/
TurboJson-1.1.2-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/TurboCheetah-1.0-py2.5.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/simplejson-1.9.1-py2.5-
linux-i686.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-
packages/RuleDispatch-0.5a0.dev_r2306-py2.5-linux-i686.egg', '/home/
pirataja/opo.net/python/lib/python2.5/site-packages/PasteScript-1.6.2-
py2.5.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
FormEncode-1.0.1-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/DecoratorTools-1.7-py2.5.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/configobj-4.5.2-py2.5.egg',
'/home/pirataja/opo.net/python/lib/python2.5/site-packages/
CherryPy-2.3.0-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/kid-0.9.6-py2.5.egg', '/home/pirataja/opo.net/
python/lib/python2.5/site-packages/Cheetah-2.0.1-py2.5-linux-
i686.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
PyProtocols-1.0a0dev_r2302-py2.5-linux-i686.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/PasteDeploy-1.3.1-
py2.5.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
Paste-1.7-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python25.zip', '/home/pirataja/pirata-jacopo.net/python/lib/
python2.5', '/home/pirataja/opo.net/python/lib/python2.5/plat-
linux2',
'/home/pirataja/opo.net/python/lib/python2.5/lib-tk',
'/home/pirataja/opo.net/python/lib/python2.5/lib-dynload', '/home/
pirataja/opo.net/python/lib/python2.5/site-packages']

For my is all ok but whe i do import cherrypy2 i get no mudule name
cherrypy2

Regards

Luca
because it's "import cherrypy" and not "import cherrypy2"
Jun 27 '08 #2
On 6 Giu, 10:31, Chris <cwi...@gmail.comwrote:
On Jun 6, 10:22 am, luca72 <lucabe...@libero.itwrote:
Hello i can't import cherrypy2 but i don't know why this is the sys
path:
'', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
setuptools-0.6c7-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/TurboGears-1.0.4.4-py2.5.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/TurboKid-1.0.4-py2.5.egg',
'/home/pirataja/opo.net/python/lib/python2.5/site-packages/
TurboJson-1.1.2-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/TurboCheetah-1.0-py2.5.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/simplejson-1.9.1-py2.5-
linux-i686.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-
packages/RuleDispatch-0.5a0.dev_r2306-py2.5-linux-i686.egg', '/home/
pirataja/opo.net/python/lib/python2.5/site-packages/PasteScript-1.6.2-
py2.5.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
FormEncode-1.0.1-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/DecoratorTools-1.7-py2.5.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/configobj-4.5.2-py2.5.egg',
'/home/pirataja/opo.net/python/lib/python2.5/site-packages/
CherryPy-2.3.0-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/kid-0.9.6-py2.5.egg', '/home/pirataja/opo.net/
python/lib/python2.5/site-packages/Cheetah-2.0.1-py2.5-linux-
i686.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
PyProtocols-1.0a0dev_r2302-py2.5-linux-i686.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/PasteDeploy-1.3.1-
py2.5.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
Paste-1.7-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python25.zip', '/home/pirataja/pirata-jacopo.net/python/lib/
python2.5', '/home/pirataja/opo.net/python/lib/python2.5/plat-
linux2',
'/home/pirataja/opo.net/python/lib/python2.5/lib-tk',
'/home/pirataja/opo.net/python/lib/python2.5/lib-dynload', '/home/
pirataja/opo.net/python/lib/python2.5/site-packages']
For my is all ok but whe i do import cherrypy2 i get no mudule name
cherrypy2
Regards
Luca

because it's "import cherrypy" and not "import cherrypy2"
sorry but from another python installation i import cherrypy2 as
cherrypy and all works

Regards

Luca
Jun 27 '08 #3
On Jun 6, 10:59*am, luca72 <lucabe...@libero.itwrote:
On 6 Giu, 10:31, Chris <cwi...@gmail.comwrote:
On Jun 6, 10:22 am, luca72 <lucabe...@libero.itwrote:
Hello i can't import cherrypy2 but i don't know why this is the sys
path:
'', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
setuptools-0.6c7-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/TurboGears-1.0.4.4-py2.5.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/TurboKid-1.0.4-py2.5.egg',
'/home/pirataja/opo.net/python/lib/python2.5/site-packages/
TurboJson-1.1.2-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/TurboCheetah-1.0-py2.5.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/simplejson-1.9.1-py2.5-
linux-i686.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-
packages/RuleDispatch-0.5a0.dev_r2306-py2.5-linux-i686.egg', '/home/
pirataja/opo.net/python/lib/python2.5/site-packages/PasteScript-1.6.2-
py2.5.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
FormEncode-1.0.1-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/DecoratorTools-1.7-py2.5.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/configobj-4.5.2-py2.5.egg',
'/home/pirataja/opo.net/python/lib/python2.5/site-packages/
CherryPy-2.3.0-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/kid-0.9.6-py2.5.egg', '/home/pirataja/opo.net/
python/lib/python2.5/site-packages/Cheetah-2.0.1-py2.5-linux-
i686.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
PyProtocols-1.0a0dev_r2302-py2.5-linux-i686.egg', '/home/pirataja/
opo.net/python/lib/python2.5/site-packages/PasteDeploy-1.3.1-
py2.5.egg', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
Paste-1.7-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python25.zip', '/home/pirataja/pirata-jacopo.net/python/lib/
python2.5', '/home/pirataja/opo.net/python/lib/python2.5/plat-
linux2',
'/home/pirataja/opo.net/python/lib/python2.5/lib-tk',
'/home/pirataja/opo.net/python/lib/python2.5/lib-dynload', '/home/
pirataja/opo.net/python/lib/python2.5/site-packages']
For my is all ok but whe i do import cherrypy2 i get no mudule name
cherrypy2
Regards
Luca
because it's "import cherrypy" and not "import cherrypy2"

sorry but from another python installation i import cherrypy2 as
cherrypy and all works

Regards

Luca
Did you install Lino on the other installation ?
http://lino.sourceforge.net/src/3.html
It's the only mention of a cherrypy2 I know of.
Jun 27 '08 #4
No i haven't install lino

but if frmp the python of this computer i make import cherrypy2 i
import it without problem this is the python path:

luca72@linux-z0ta:~python
Python 2.5.1 (r251:54863, Jan 10 2008, 18:00:49)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>import cherrypy2
import sys
sys.path
['', '/usr/lib64/python2.5/site-packages/setuptools-0.6c7-py2.5.egg',
'/usr/lib64/python2.5/site-packages/TurboGears-1.0.4.4-py2.5.egg', '/
usr/lib64/python2.5/site-packages/TurboKid-1.0.4-py2.5.egg', '/usr/
lib64/python2.5/site-packages/TurboJson-1.1.2-py2.5.egg', '/usr/lib64/
python2.5/site-packages/TurboCheetah-1.0-py2.5.egg', '/usr/lib64/
python2.5/site-packages/simplejson-1.8.1-py2.5-linux-x86_64.egg', '/
usr/lib64/python2.5/site-packages/RuleDispatch-0.5a0.dev_r2306-py2.5-
linux-x86_64.egg', '/usr/lib64/python2.5/site-packages/
PasteScript-1.6.2-py2.5.egg', '/usr/lib64/python2.5/site-packages/
FormEncode-1.0.1-py2.5.egg', '/usr/lib64/python2.5/site-packages/
DecoratorTools-1.7-py2.5.egg', '/usr/lib64/python2.5/site-packages/
configobj-4.5.2-py2.5.egg', '/usr/lib64/python2.5/site-packages/
CherryPy-2.3.0-py2.5.egg', '/usr/lib64/python2.5/site-packages/
kid-0.9.6-py2.5.egg', '/usr/lib64/python2.5/site-packages/
Cheetah-2.0.1-py2.5-linux-x86_64.egg', '/usr/lib64/python2.5/site-
packages/PyProtocols-1.0a0dev_r2302-py2.5-linux-x86_64.egg', '/usr/
lib64/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg', '/usr/
lib64/python2.5/site-packages/Paste-1.6-py2.5.egg', '/usr/local/lib64/
python2.5/site-packages/pagedemo1-1.0-py2.5.egg', '/usr/lib/
python25.zip', '/usr/lib64/python2.5', '/usr/lib64/python2.5/plat-
linux2', '/usr/lib64/python2.5/lib-tk', '/usr/lib64/python2.5/lib-
dynload', '/usr/lib64/python2.5/site-packages', '/usr/lib64/python2.5/
site-packages/Numeric', '/usr/lib64/python2.5/site-packages/PIL', '/
usr/lib64/python2.5/site-packages/gtk-2.0', '/usr/lib64/python2.5/site-
packages/wx-2.8-gtk2-unicode', '/usr/local/lib64/python2.5/site-
packages']
>>>
Regards

Luca
Jun 27 '08 #5
luca72 <lu*******@libero.itwrote:
>
No i haven't install lino

but if frmp the python of this computer i make import cherrypy2 i
import it without problem this is the python path:
It's quite possible that this other system has both CherryPy 2.x and
CherryPy 3.x installed, and the admin wanted them both to be available at
the same time.

However, by default CherryPy always installs itself as "cherrypy" with no
number.
--
Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jun 27 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Stian Søiland | last post: by
reply views Thread by Vio | last post: by
reply views Thread by John Roth | last post: by
5 posts views Thread by Steve Holden | last post: by
4 posts views Thread by Bruce W. Roeser | last post: by
7 posts views Thread by Ron Adam | last post: by
9 posts views Thread by rsoh.woodhouse | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.