#5877 closed defect (wontfix)
trac-admin initenv fails: OSError: [Errno 2] No such file or directory
Reported by: | Owned by: | Christopher Lenz | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | admin/console | Version: | 0.10.4 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
On Ubuntu 7.04 sudo apt-get install python (2.5) sudo easy_install trac (0.10.4) and all the other dependencies
doing this: sudo trac-admin /var/www/trachome initenv Project name: testqa sqlite:db/trac.db (skip) SVN templates dir: /usr/lib/python2.5/site-packages/trac/share/trac/templates
ERROR:
Creating and Initializing Project Installing default wiki pages Failed to initialize environment. [Errno 2] No such file or directory: 'C:\\Programme\\Python\\2.3\\share\\trac\\wiki-default' Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/trac-0.10.4-py2.5.egg/trac/scripts/admin.py", line 623, in do_initenv self._do_wiki_load(default_dir('wiki'), cursor) File "/usr/lib/python2.5/site-packages/trac-0.10.4-py2.5.egg/trac/scripts/admin.py", line 832, in do_wiki_load for page in os.listdir(dir): OSError: [Errno 2] No such file or directory: 'C:\\Programme\\Python\\2.3\\share\\trac\\wiki-default'
This is strange, because I am not on a Windows OS, so where is this default Windows path coming from??? So can't install trac
Attachments (0)
Change History (14)
comment:1 by , 17 years ago
Description: | modified (diff) |
---|---|
Keywords: | install removed |
Priority: | highest → normal |
Resolution: | → worksforme |
Severity: | blocker → normal |
Status: | new → closed |
follow-up: 3 comment:2 by , 17 years ago
never heard that easy_install already works for 0.10 … see also TracInstall
comment:3 by , 17 years ago
Replying to ThurnerRupert:
never heard that easy_install already works for 0.10 … see also TracInstall
Yes, you're right, setuptools are not supported for 0.10
comment:4 by , 17 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
comment:5 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
comment:6 by , 17 years ago
python
import sys sys.prefix
Gives valid Unix directory /usr
I built the box a few days ago for the sole purpose of running Trac, nothing else is on it but Trac related things
comment:7 by , 17 years ago
I have this problem also. Is there a solution?
I installed python, sqlite and genshi specifically for this. If anything is wrong, them the defaults are wrong.
comment:8 by , 17 years ago
Resolution: | wontfix |
---|---|
Severity: | normal → blocker |
Status: | closed → reopened |
I also have this problem. CentOS4 with Stackless Python 2.5.1.
comment:9 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
easy_install not supported in 0.10.4, but for 0.11.
comment:10 by , 17 years ago
Severity: | blocker → normal |
---|
comment:11 by , 17 years ago
The same problem here. Kubuntu 7.10, Python 2.5.1, Trac 0.10.4.
$ python >>> import sys >>> sys.prefix
returns correct unix path.
Trac installed uisng easy_install first and then source downloaded and installed using standard: python ./setup.py install
comment:12 by , 17 years ago
Sorry, this is an installation issue. Please ask on the MailingList where you will reach more people likely to help you.
comment:13 by , 17 years ago
If that helps anybody (since this page is the only exact hit with Google)
I edited the file /usr/lib/python2.3/site-packages/trac-0.10.4-py2.3.egg/trac/siteconfig.py
to correct the "default" paths to be
/usr/share/trac/templates
and so on.
(I renamed siteconfig.pyc
to
siteconfig.pyc.bak
, just in case)
Once the botched project folder was removed, a new trac-admin /path/to/projects initenv
worked for me.
(Was on RHEL4, installed Trac using up2date)
I looked like some string replacements didn't happen during Trac installation.
comment:14 by , 13 years ago
OSError that occur during run test, then first check your run test command on shell terminal. Basically, that is prime reason for such type of error like, OSError : No such file
This is an installation issue, and as such should be reported to the MailingList, not filled in as a ticket.
You either have an existing (invalid?) installation with a weird siteconfig.py file, or your Python installation is corrupted.
You can verify that
gives a valid Unix directory
and looks for a siteconfig.py file that gets in the way
Please use the MailingList for further questions on this topic