Opened 18 years ago
Closed 17 years ago
#1321 closed defect (fixed)
Usage Question - with error
Reported by: | anonymous | Owned by: | Kristian Kvilekval |
---|---|---|---|
Priority: | normal | Component: | MoinToTracScript |
Severity: | normal | Keywords: | twiki |
Cc: | Trac Release: | 0.10 |
Description
This may not be a defect at all, and simply a usage question.
I am attempting to convert an existing Twiki - > Trac format, by first converting the Twik to Moin format and subsequently converting that Moin to Trac. I suspect that that is the intended sequence & usage of the two scripts in this hack.
When I execute twiki2moin.py like so
python twiki2moin.py
I receive the following error:
Traceback (innermost last): File "twiki2moin.py", line 102, in ? main("/home/docs/twiki/data/Main", "/home/docs/converted-wiki", "/home/docs/twiki/pub/Main") File "twiki2moin.py", line 14, in main txt = file(os.path.join(old_dir, name)).read() NameError: file
Each of the paths in the last line do exist, but I have guessed that they are hard-coded values that are passed in at the command line when using the moin2trac.py script. What are these values really supposed to represent? In the original, the middle value was "moin".
Any guidance is appreciated.
Added usage information in r3395