Opened 15 years ago

Closed 14 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


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 like so


I receive the following error:

Traceback (innermost last):
  File "", line 102, in ?
    main("/home/docs/twiki/data/Main", "/home/docs/converted-wiki", "/home/docs/twiki/pub/Main")
  File "", 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 script. What are these values really supposed to represent? In the original, the middle value was "moin".

Any guidance is appreciated.

Attachments (0)

Change History (1)

comment:1 Changed 14 years ago by Kristian Kvilekval

Resolution: fixed
Status: newclosed

Added usage information in r3395

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Kristian Kvilekval.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.