Edgewall Software

Ticket #5877 (closed defect: wontfix)

Opened 16 months ago

Last modified 11 months ago

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

Reported by: asloan7@… Owned by: cmlenz
Priority: normal Milestone:
Component: admin/console Version: 0.10.4
Severity: normal Keywords:
Cc:

Description (last modified by eblot) (diff)

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

Change History

  Changed 16 months ago by eblot

  • status changed from new to closed
  • description modified (diff)
  • priority changed from highest to normal
  • keywords install removed
  • resolution set to worksforme
  • severity changed from blocker to normal

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

follow-up: ↓ 3   Changed 16 months ago by ThurnerRupert

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

in reply to: ↑ 2   Changed 16 months ago by eblot

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

  Changed 16 months ago by eblot

  • status changed from closed to reopened
  • resolution worksforme deleted

  Changed 16 months ago by eblot

  • status changed from reopened to closed
  • resolution set to wontfix

  Changed 16 months ago by asloan7@…

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

  Changed 14 months ago by anonymous

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.

  Changed 12 months ago by anonymous

  • status changed from closed to reopened
  • resolution wontfix deleted
  • severity changed from normal to blocker

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

  Changed 12 months ago by ThurnerRupert

  • status changed from reopened to closed
  • resolution set to wontfix

easy_install not supported in 0.10.4, but for 0.11.

  Changed 12 months ago by eblot

  • severity changed from blocker to normal

  Changed 12 months ago by anonymous

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

  Changed 12 months ago by cboos

Sorry, this is an installation issue. Please ask on the MailingList where you will reach more people likely to help you.

  Changed 11 months ago by jausions@…

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.

Add/Change #5877 (trac-admin initenv fails: OSError: [Errno 2] No such file or directory)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cmlenz. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.