474,047 Members | 3,073 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1312
On Jun 6, 10:22*am, luca72 <lucabe...@libe ro.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.c omwrote:
On Jun 6, 10:22 am, luca72 <lucabe...@libe ro.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...@libe ro.itwrote:
On 6 Giu, 10:31, Chris <cwi...@gmail.c omwrote:
On Jun 6, 10:22 am, luca72 <lucabe...@libe ro.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*******@libe ro.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
6933
by: Stian Søiland | last post by:
all examples performed with: Python 2.3+ (#2, Aug 10 2003, 11:09:33) on linux2 (2, 3, 0, 'final', 1) This is a recursive import:
0
2603
by: Vio | last post by:
Hi, I've been trying to embed (statically) wxPy alongside an embedded py interpreter on a linux/gtk box. At one point, for some reason misc.o linking reported "multiple definitions of wxGetFreeMemory()". Since wxGetFreeMemory() seemed effectively unused in gtk, I just commented it out in misc_wrap.cpp (didn't want to patch SWIG to regenerate the wrapper code, so hacked the generated cpp source), and replaced...
0
2006
by: John Roth | last post by:
I've found a case where it seems that Python is importing two copies of a module without any reason or indication. It took me a while to verify that this is what is occuring: I had to write a __import__ hook to trace the actual activity. The source code for the hook is below. There are several examples of the problem in the trace; this is one particularly juicy one. -----------Part 1 ---------------- '0059' Import 'TypeAdapter'...
5
2505
by: Steve Holden | last post by:
This is even stranger: it makes it if I import the module a second time: import dbimp as dbimp import sys if __name__ == "__main__": dbimp.install() #k = sys.modules.keys() #k.sort() #for kk in k:
1
8198
by: mark | last post by:
In Access 2000 and 2002, I have created an import specification to import the fixed-width recordset below into an existing table. I am having strange problems with the import of the date and time fields. 177 102003 16:43:12 102003 18:43:12 6OAG0ADP Y 0000 0000 0000 0000 61930 4HGA800 165 102003 17:43:12 102003 18:44:12 6OAG0ADP Y 0000 0000 0000 0000 61930 4HGA800 177 102003 16:41:18 102003 18:45:12 6OAG0ADP Y 0000 0000 0000 0000 61930...
4
6126
by: Bruce W. Roeser | last post by:
All, I'm reading a book by Charles Petzold (Programming VS.Net). Pretty good content but am confused about the difference. From the text: ---------------------------------------------------------------------------------------------------------------------------------------------------------- The @ Import Directive Next to @ Page, the directive that ASP.NET programmers use the most is @ Import. The @ Import directive is ASP.NET's...
2
2595
by: Jon | last post by:
It appears that (windows) python searches in the current working directory before looking in the local site-packages directory, or that '.' comes first in sys.path? The problem arises when I made the mistake of running a test program from the same directory where I built and installed my package. Python uses the package from the current directory, which misses the pyd files, instead of the site-packages package which has them installed. ...
7
20618
by: Ron Adam | last post by:
from __future__ import absolute_import Is there a way to check if this is working? I get the same results with or without it. Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) on win 32 _Ron
9
2139
by: rsoh.woodhouse | last post by:
Hi, I'm trying to work out some strange (to me) behaviour that I see when running a python script in two different ways (I've inherited some code that needs to be maintained and integrated with another lump of code). The sample script is: # Sample script, simply create a new thread and run a # regular expression match in it. import re
0
10548
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10349
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
12148
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11604
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
12036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
8701
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6842
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4947
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.