#5148 closed defect (worksforme)
"No module named trac.admin.console" error
Reported by: | barunio | Owned by: | Christopher Lenz |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | admin/console | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
After installing Trac 0.11 on my Ubuntu box, I get an error when trying to initialize a new trac environment.
Installation done with the following commands:
svn co http://svn.edgewall.com/repos/trac/trunk /usr/src/trac /usr/src/trac/setup.py install
which yields the following output:
running install running bdist_egg running egg_info creating Trac.egg-info writing requirements to Trac.egg-info/requires.txt writing Trac.egg-info/PKG-INFO writing top-level names to Trac.egg-info/top_level.txt writing dependency_links to Trac.egg-info/dependency_links.txt writing entry points to Trac.egg-info/entry_points.txt writing manifest file 'Trac.egg-info/SOURCES.txt' warning: manifest_maker: standard file 'setup.py' not found reading manifest file 'Trac.egg-info/SOURCES.txt' writing manifest file 'Trac.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib warning: install_lib: 'build/lib' does not exist -- no Python modules to install creating build creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/EGG-INFO copying Trac.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying Trac.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying Trac.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying Trac.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying Trac.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO copying Trac.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying Trac.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO creating dist creating 'dist/Trac-0.11-py2.4.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing Trac-0.11-py2.4.egg creating /usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg Extracting Trac-0.11-py2.4.egg to /usr/lib/python2.4/site-packages Adding Trac 0.11 to easy-install.pth file Installing trac-admin script to /usr/bin Installing tracd script to /usr/bin Installed /usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg Processing dependencies for Trac==0.11
Seems like everything is working okay. Except that when I try to use trac-admin:
trac-admin /home/trac/proj initenv
it doesn't work, and I get the following errors:
Traceback (most recent call last): File "/usr/bin/trac-admin", line 7, in ? sys.exit( File "/usr/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 236, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2097, in load_entry_point return ep.load() File "/usr/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 1830, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) ImportError: No module named trac.admin.console
Somehow it's not able to find the trac.admin.console module … why?
Attachments (0)
Change History (5)
comment:1 by , 18 years ago
Keywords: | needinfo added |
---|---|
Priority: | highest → normal |
Severity: | blocker → normal |
comment:2 by , 18 years ago
I believe I am using version 0.6c5-py2.4.egg
Inside of /usr/lib/python2.4/site-packages I have three related directories: (1) setuptools-0.6a9-py2.4.egg (2) setuptools-0.6c5-py2.4.egg There is also a file in te site-packages directory named
setuptools.pth
which containes a single line of data: ./setuptools-0.6c5-py2.4.egg
follow-up: 4 comment:3 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
i've figured out the problem. once i knew it was an installation issue, i did a search and realized that setup.py *must* be run from the directory that it is located in. so "/usr/src/trac/setup.py install" won't work. instead i had to navigate to the /usr/src/trac directory and run "./setup.py install" that worked ok.
comment:4 by , 18 years ago
Keywords: | needinfo removed |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
Replying to barunio:
i've figured out the problem. once i knew it was an installation issue, i did a search and realized that setup.py *must* be run from the directory that it is located in. so "/usr/src/trac/setup.py install" won't work. instead i had to navigate to the /usr/src/trac directory and run "./setup.py install" that worked ok.
I got caught with the same issue a while ago, I just forgot it. Sorry…
Could you add this important piece of info to the installation directives in Trac documentation?
comment:5 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
(fixed status is reserved for actions that have required some modifications of the source code)
This seems to be an installation issue:
Which release of setuptools is installed on your machine?