Ticket #1648 (closed defect: fixed)
Opened 7 years ago
Last modified 7 years ago
checkwiki.py, checkwiki.pyc, checkwiki.pyo on Windows install
| Reported by: | gytis@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.8.3 |
| Component: | admin/console | Version: | 0.8.1 |
| Severity: | minor | Keywords: | wiki install |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
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
Change History
comment:1 Changed 7 years ago by mgood
- Severity changed from normal to minor
comment:2 Changed 7 years ago by xmlblog@…
- 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 Changed 7 years ago by xmlblog@…
I answered my own question. Removing those files allows the rest of the script to run. Thanks for the pointer.
comment:4 Changed 7 years ago by gytis@…
- 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 Changed 7 years ago by cmlenz
- Owner changed from daniel to cmlenz
- Status changed from new to assigned
My fault, I forgot to remove the checkwiki.py script before building the installer as described in TracDev/ReleaseChecklist.
comment:6 Changed 7 years ago by cmlenz
- Milestone set to 0.8.3
comment:7 Changed 7 years ago by cmlenz
- Resolution set to fixed
- Status changed from assigned to closed
Fixed in the windows package for 0.8.3.
comment:8 Changed 7 years ago by anonymous
como assim?



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.