Description
Running from the Command line like:
moin --config-dir=/var/www/moin/config --wiki-url=Home.Heavy.ch maint cleanpage
raises error but I just don't know why
Steps to reproduce
start moin --config-dir=/var/www/moin/config --wiki-url=Home.Heavy.ch maint cleanpage
- and see the error
Example
[root@marius server]# moin --config-dir=/var/www/moin/config --wiki-url=Home.Heavy.ch maint cleanpage
Traceback (most recent call last): File "/usr/bin/moin", line 6, in <module> run() File "/usr/lib/python2.5/site-packages/MoinMoin/script/moin.py", line 15, in run MoinScript().run(showtime=0) File "/usr/lib/python2.5/site-packages/MoinMoin/script/__init__.py", line 137, in run self.mainloop() File "/usr/lib/python2.5/site-packages/MoinMoin/script/__init__.py", line 244, in mainloop plugin_class(args[2:], self.options).run() # all starts again there File "/usr/lib/python2.5/site-packages/MoinMoin/script/__init__.py", line 137, in run self.mainloop() File "/usr/lib/python2.5/site-packages/MoinMoin/script/maint/cleanpage.py", line 57, in mainloop status = self.qualify(pagedir) File "/usr/lib/python2.5/site-packages/MoinMoin/script/maint/cleanpage.py", line 21, in qualify dir = os.listdir(p) OSError: [Errno 20] Not a directory: '/var/www/moin/data/pages/pages.txt'
<!>sure pages.txt is not a directory
How about removing it from there?
Yes, that was the solution. sorry for the bug report!
Component selection
- moin commandline
Details
MoinMoin Version |
1.6a |
OS and Version |
Linux Fedora 7 |
Python Version |
2.5 |
Server Setup |
twisted 2.4.0 |
Server Details |
just standard wikiconfig.py |
Language you are using the wiki in (set in the browser/UserPreferences) |
en (default/force) |
Maybe this bug's only exist, coz' I copied pages from my MoinMoin v.1.57 and used with the 1.6a Version (downloaded 04. August). then sorry for that.
Workaround
Solution: Just delete this file!
Discussion
Plan
- Priority:
- Assigned to:
- Status: data/pages/ must be clean and only contain pagedirs