473,561 Members | 3,336 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Possible problem in compiler/transformer.py of Python2.4...

Hi all,

I have python2.4 running on ppc-linux 2.6.17. I'm attempting to get
a TurboGears 0.9a9 (using CherryPy 2.2.1) based app running on
it.

During the TG-app startup sequence, it reaches the point where it
imports cherrypy, which eventually causes py2.4's system file,
compiler/transformer.py, to import a module by name, symbol.
Unable to find it, python quits...

Following are the error msgs:
....
File "start-tg-app.py", line 24, in ?
import cherrypy
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/__init__.py",
line 10, in ?
import config
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/config.py",
line 8, in ?
from cherrypy.lib import autoreload, cptools, httptools
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/lib/cptools.py",
line 252, in ?
import compiler
File "/usr/lib/python2.4/compiler/__init__.py", line 24, in ?
from transformer import parse, parseFile
File "/usr/lib/python2.4/compiler/transformer.py" , line 30, in ?
import symbol
ImportError: No module named symbol
....

What is surprising is I checkd the entire py2.4 distribution and I
can't see a symbol.py (or a module with symbol defined) where
transformer.py could import the symbol module form. All I can see
is:
...../lib/python2.4/compiler/symbols.py
in the same directory as that of transformer.py (in compiler).

Has anyone seen this error, or have any pointers to solve the problem.

Thanks,
/venkat

Aug 31 '06 #1
2 1644
ve******@yahoo. com wrote:
What is surprising is I checkd the entire py2.4 distribution and I
can't see a symbol.py (or a module with symbol defined) where
transformer.py could import the symbol module form. All I can see
is:
...../lib/python2.4/compiler/symbols.py
in the same directory as that of transformer.py (in compiler).

Has anyone seen this error, or have any pointers to solve the problem.
looks like your installation is botched.
dir \python24\lib\c ompiler\symbols .py
2005-10-28 20:15 15 059 symbols.py

$ cd /usr/local/lib/python2.4/compiler
$ ls -l symbols.py
-rw-r--r-- 1 root root 14591 Aug 11 2005 symbols.py

(the former is 2.4.3 on windows, the latter 2.4.1 on unix)

</F>

Aug 31 '06 #2
Fredrik Lundh wrote:
ve******@yahoo. com wrote:
>What is surprising is I checkd the entire py2.4 distribution and I
can't see a symbol.py (or a module with symbol defined) where
transformer. py could import the symbol module form. All I can see
is:
...../lib/python2.4/compiler/symbols.py
in the same directory as that of transformer.py (in compiler).

Has anyone seen this error, or have any pointers to solve the problem.

looks like your installation is botched.
dir \python24\lib\c ompiler\symbols .py

2005-10-28 20:15 15 059 symbols.py

$ cd /usr/local/lib/python2.4/compiler
$ ls -l symbols.py
-rw-r--r-- 1 root root 14591 Aug 11 2005 symbols.py

(the former is 2.4.3 on windows, the latter 2.4.1 on unix)
What has listing symbols.py got to do with this? He said he has symbols.py.
What is missing is symbol.py which should be in the main lib folder, not
the compiler package. e.g.

Directory of C:\Python24\Lib

02/09/2004 11:54 2,043 symbol.py
1 File(s) 2,043 bytes

But yes, the conclusion is that his installation is botched.
Aug 31 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4044
by: Angus Parvis | last post by:
Hi, I've already posted this in comp.lang.java.programmer, but it doesn't seem like the ppl there can help. I hope you guys here know more about it, altough my question is more java than xml related ;) Here's the problem: I have a XSL Stylesheet. Using the java.xml.transform.Transformer I transform XML to HTML. My XSL contains spaces...
1
1220
by: Daniel | last post by:
Obviously, I'm a newbie to the XSLT lingo, But I was wondering if XLAN or otherwise provides any internal mechanism for setting a param or AVT with the current user.dir from the JVM? Looking from some like: <xsl:param name="location"> <xsl:text>${user.dir}/</xsl:text><xsl:value-of select="$name"/> </xsl:param>
48
4899
by: meyer | last post by:
Hi everyone, which compiler will Python 2.5 on Windows (Intel) be built with? I notice that Python 2.4 apparently has been built with the VS2003 toolkit compiler, and I read a post from Scott David Daniels where he said that probably the VS2003 toolkit will be used for Python 2.5 again. However, even before the release of Python 2.5, I...
5
1793
by: patrin | last post by:
Hi All, given the source document: <?xml version="1.0" encoding="UTF-8"?> <root> <child> <test id="1" name="first child"/> </child> <child>
15
5538
by: Christopher Taylor | last post by:
RHEL comes with Python2.3 installed. A program I need to install requires Python2.4 So I got Python2.4 from source and compiled it up. I configured it with --prefix=/usr --exec-prefix=/usr and --enable-unicode=ucs4 . I then make'd it and then make altinstall so that it didn't overwrite the /usr/bin/Python link to /usr/bin/Python2.3 . ...
0
1161
by: subhash9 | last post by:
Hi, Have an XML file with this element <File Name="" Description="" CreatedBy="" CreatedDate="" LastModifiedBy="" ModifiedDate=""> i converted DOm to string using : TransformerFactory transformerFactory = TransformerFactory .newInstance(); Transformer transformer = transformerFactory.newTransformer(); StringWriter sw = new...
0
1479
by: Grant Edwards | last post by:
I've got a system where I try to install extensions using /usr/local/bin/python setup.py install But, it fails when it tries to use a non-existant compiler path and specs file. I suspect it's trying to use the compieler that was used to build /usr/bin/python. How do I get it to use the compiler settings that were used for...
1
2373
by: killy971 | last post by:
I am using the following syntax, with Xalan, to process xml transformations in java: StreamSource xml = new StreamSource(xmlFile); StreamSource xsl = new StreamSource(xslFile); StreamResult out = new StreamResult(outputFile); TransformerFactory factory = TransformerFactory.newInstance(); Transformer transformer =...
3
2919
by: Eric Brunel | last post by:
Hello all, I'm trying out Python 2.6 and I found what might be a bug in the Tkinter module. How can I report it? The possible bug is a traceback when trying to delete a menu item in a menu where no items have associated commands. For example: ------------------------------
0
7639
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...
0
7562
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...
0
7855
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. ...
1
5465
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...
0
5181
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...
0
3613
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3594
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1172
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.