Edgewall Software

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#1648 closed defect (fixed)

checkwiki.py, checkwiki.pyc, checkwiki.pyo on Windows install

Reported by: gytis@… Owned by: Christopher Lenz
Priority: normal Milestone: 0.8.3
Component: admin/console Version: 0.8.1
Severity: minor Keywords: wiki install
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


Windows installer installs checkwiki.py, checkwiki.pyc, checkwiki.pyo files add wiki load eventualy fails when trying to load/import checkwiki.pyc:

 c:/python23/share/trac/wiki-default\CamelCase => CamelCase
 c:/python23/share/trac/wiki-default\checkwiki.py => checkwiki.py
 c:/python23/share/trac/wiki-default\checkwiki.pyc => checkwiki.pyc
Wiki load failed: execute() argument 1 must be string without null bytes, not str

Attachments (0)

Change History (8)

comment:1 by Matthew Good, 17 years ago

Severity: normalminor

Did you use the included setup.py script, or did you happen to copy files into the wiki-default directory by hand? The setup script checks to only copy files in that directory that start with an uppercase letter, so the checkwiki.* files should not have been copied to that directory.

comment:2 by xmlblog@…, 17 years ago

Keywords: wiki install added

I tried the 0.8.2 Windows installer on Windows 2000 which crashes, then I tried running setup.py install manually from the command line after downloading the .zip version. Trac installed nicely and I am getting to the python trac-admin path/to/repo.db step. When I enter the 3 pieces of data (Project name, path to repos, default template location (just hit enter), the script starts working and gets to the wiki load step and fails as the other user reported above.

Are you saying above that removing those files from wiki-default will fix the issue?

comment:3 by xmlblog@…, 17 years ago

I answered my own question. Removing those files allows the rest of the script to run. Thanks for the pointer.

comment:4 by gytis@…, 17 years ago

  • To answer mgood's question: I used only 0.8.2 windows installer and haven't tried the setup.py. Removing checkwiki.* files fixes the problem.
  • Checked out trunk (rev 1777) and used setup.py without any problems: trac-admin worked like a charm.

comment:5 by Christopher Lenz, 17 years ago

Owner: changed from daniel to Christopher Lenz
Status: newassigned

My fault, I forgot to remove the checkwiki.py script before building the installer as described in TracDev/ReleaseChecklist.

comment:6 by Christopher Lenz, 17 years ago

Milestone: 0.8.3

comment:7 by Christopher Lenz, 17 years ago

Resolution: fixed
Status: assignedclosed

Fixed in the windows package for 0.8.3.

comment:8 by anonymous, 17 years ago

como assim?

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.