Modify

Opened 8 years ago

Closed 7 years ago

#1321 closed defect (fixed)

Usage Question - with error

Reported by: anonymous Owned by: kgk
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.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by kgk

  • Resolution set to fixed
  • Status changed from new to closed

Added usage information in r3395

Add Comment

Modify Ticket

Action
as closed The owner will remain kgk.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.