473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

xmltramp with python2.(4-5)

Hello,
I have a code snippet which does 'import xmltramp' to parse an xml file
received over the network. Also, I have 2 instances of python, namely
python2.4 and python2.5 on my box. The confusing thing is that the code
works fine with python2.4, but gives the error:

ImportError: No module named xmltramp

when used with python2.5. Why is this ambiguity? Ain't the same PYTHONPATH
being used for both?
--
warm regards,
Pradnyesh Sawant
--
We are not just our behaviour. We are the person managing our behaviour.
--The One Minute Manager

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHt9bKL6rhPByZNPcRAvGiAJ0bILgKwhHlelijJfLvsw DXKWeOPgCgt7T3
MEGjW9uH/gInJLJwggSbnXs=
=ImkJ
-----END PGP SIGNATURE-----

Feb 17 '08 #1
2 1949
On Feb 17, 5:40 pm, Pradnyesh Sawant <spra...@gmail.comwrote:
Hello,
I have a code snippet which does 'import xmltramp' to parse an xml file
received over the network. Also, I have 2 instances of python, namely
python2.4 and python2.5 on my box. The confusing thing is that the code
works fine with python2.4, but gives the error:

ImportError: No module named xmltramp

when used with python2.5. Why is this ambiguity? Ain't the same PYTHONPATH
being used for both?
fire up python2.4 interactive prompt
do this:
import sys; sys.path
import xmltramp; xmltramp.__file__

then fire up python2.5 interactive prompt
do this:
import sys; sys.path

If that doesn't give you enough to nut out where xmltramp is and hence
why it's on one sys.path and not on the other, come back with the full
output from the above (including the info that python prints that
will tell us helpful things like what platform you are on)

Feb 17 '08 #2
On 22:51, 16Feb2008, John Machin wrote:
On Feb 17, 5:40 pm, Pradnyesh Sawant wrote:

fire up python2.4 interactive prompt
do this:
import sys; sys.path
import xmltramp; xmltramp.__file__

then fire up python2.5 interactive prompt
do this:
import sys; sys.path
Hey,
thanks a lot for that reply. it made me realise that xmltramp was something
that is there in '/usr/lib/python2.4/site-packages/xmltramp.pyc' (a
site-package for 2.4), and is hence not available for 2.5
it also showed me that I had _not_ installed it using apt for debian.
unforutnately I dunno where I had got it from, and searching online didn't
give me the result I wanted. anyways, thanks for leading me in the proper
direction :)

If that doesn't give you enough to nut out where xmltramp is and hence
why it's on one sys.path and not on the other, come back with the full
output from the above (including the info that python prints that
will tell us helpful things like what platform you are on)

--
http://mail.python.org/mailman/listinfo/python-list
--
warm regards,
Pradnyesh Sawant
--
We are not just our behaviour. We are the person managing our behaviour.
--The One Minute Manager

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHuAVzL6rhPByZNPcRAvgpAKCFeytBl206kU1kqyeiuX O7KiegfQCgxcB3
8nYhCG/LH+UEu8MTX5B91TU=
=l+HE
-----END PGP SIGNATURE-----

Feb 17 '08 #3

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

Similar topics

2
by: Jakub Moscicki | last post by:
Hello, A small problem: I get a signal during a system call (from xmlrpclib -> httplib) and an exception "IOError: Interrupted system call" is raised (this is system dependant, on other machine...
4
by: tudor | last post by:
hello! I had python 2.2.1 so I upgraded to python 2.3.2, but all my applications using python (rh8) give errors now. I installed from src.rpm Traceback (most recent call last): File...
3
by: Adil Hasan | last post by:
Hello, I'm having problems trying to use ZSI to connect to a https url. I give the command and I get prompted for my X509 cert pass-phrase, but the program dies with an openssl error. Here's my...
5
by: Jonas Hei | last post by:
I'd like to get experts' opinion about xmltramp (http://www.aaronsw.com/2002/xmltramp/). I am still in early stages of exploration - I need to determine to process XML in my next project....
1
by: km | last post by:
Hi all, is there a debian binary of python2.4 ? tia, KM
1
by: Gurpreet Sachdeva | last post by:
I upgraded my python to 2.3 from 2.2 but Apache (V 2.0.4) is taking old libraries for processing. I also made a soft link redirecting the old files to new files but of no help... These error logs...
6
by: Miernik | last post by:
On my Debian GNU/Linux system I have Python 2.3 installed in /usr/lib/python2.3/ where most Python system files like /usr/lib/python2.3/gzip.py /usr/lib/python2.3/gzip.pyc...
15
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...
6
by: samn | last post by:
i compiled and installed the release version of python 2.5 for linux to a directory accessible to 2 computers, configured with --prefix=/usr/arch (which is accessible to both machines). the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.