Edgewall Software
Modify

Opened 17 years ago

Closed 16 years ago

Last modified 12 years ago

#5877 closed defect (wontfix)

trac-admin initenv fails: OSError: [Errno 2] No such file or directory

Reported by: asloan7@… 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 Emmanuel Blot)

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 Emmanuel Blot, 17 years ago

Description: modified (diff)
Keywords: install removed
Priority: highestnormal
Resolution: worksforme
Severity: blockernormal
Status: newclosed

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

$ python
>>> import sys
>>> sys.prefix

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

comment:2 by ThurnerRupert, 17 years ago

never heard that easy_install already works for 0.10 … see also TracInstall

in reply to:  2 comment:3 by Emmanuel Blot, 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 Emmanuel Blot, 17 years ago

Resolution: worksforme
Status: closedreopened

comment:5 by Emmanuel Blot, 17 years ago

Resolution: wontfix
Status: reopenedclosed

comment:6 by asloan7@…, 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 anonymous, 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 anonymous, 16 years ago

Resolution: wontfix
Severity: normalblocker
Status: closedreopened

I also have this problem. CentOS4 with Stackless Python 2.5.1.

comment:9 by ThurnerRupert, 16 years ago

Resolution: wontfix
Status: reopenedclosed

easy_install not supported in 0.10.4, but for 0.11.

comment:10 by Emmanuel Blot, 16 years ago

Severity: blockernormal

comment:11 by anonymous, 16 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 Christian Boos, 16 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 jausions@…, 16 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 Gaurav gkotkar27@…, 12 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

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.