Results 1 to 3 of 3
Apr 18, 2012, 10:35 #1
Python 3.2 and Converting RTF files to XML or Web Markup?
I've just installed Python 3.2 and I'm trying to use the "rtf2xml.py" package found at http://pypi.python.org/pypi/rtf2xml on my Windows 64-bit box to no avail. I've installed Python 3.2 itself using their *.MSI installer and all appears okay with the installation but I'm having problems getting that rtf2xml package to work. I tried to execute the setup.py file in the rtf2xml extracted directory from my Desktop but it didn't appear to do anything except quickly flash open what I'm assuming is a Python CMD window. With that being said, I decided to go into the "scripts" directory of the rtf2xml download and simply take the rtf2xml file that was in that directory, append .py to it, and throw it into the Python 3.2 base directory's "C:\Python 3.2\Tools\Scripts" location. Doing this made it show up in the help()/modules readout but I'm still having problems actually using the darn thing.
Anyone know where I'm dropping the ball here?
Python 3.2 is installed at the following location:
The scripts are at the following location:
C:\Python_3.2\Tools\Scripts\.rtf2xml <-- (Some sort of config file that I guess is supposed to be readable by the above, which is why I put it in the same directory--for convenience's sake.)
I've been trying to use a mix between CMD and the IDLE GUI as follows (none of which work):
C:\Python_3.2>python rtf2xml.py install
C:\Users\py_idiot>C:\Python_3.2\python C:\Python_3.2\python\Tools\Scripts\rtf2xml.py C:\Users\py_idiot\Desktop\dump4.rtf
Long story short, I'm just trying to take an RTF file I exported from a semi-old program and convert it to either XML or HTML, etc.
Any insight into how to successfully do this is appreciated.
Apr 19, 2012, 06:11 #2
Apr 28, 2012, 10:17 #3
- Join Date
- Aug 2007
- 51 Post(s)
- 2 Thread(s)
Originally Posted by wolf
I don't know if input() from Python3 can do similar?