You are not logged in.
Is the WebAdmin module installed for trac 0.10 ?
If not, can you please?
Offline
astribli wrote:
Is the WebAdmin module installed for trac 0.10 ?
If not, can you please?
It is not installed by default.
Since the Trac module is in $HOME/lib/python2.4 you can install the plugin on your own as described here: http://trac.edgewall.org/wiki/WebAdmin
Cheers,
Remi.
Offline
Here is what I get when i try to enable webadmin following the instructions from trac.
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python2.4/site-packages/test-easy-install-2192.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python2.4/site-packages/
any ideas anyone?
Offline
dmc68 wrote:
Here is what I get when i try to enable webadmin following the instructions from trac.
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python2.4/site-packages/test-easy-install-2192.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python2.4/site-packages/
any ideas anyone?
You can't install anything in this directory because you don't have root access.
You need to install your python2.4 modules in $HOME/lib/python2.4
Cheers,
Remi.
Offline
straight into the python2.4 root or into the trac folder under /python2.4 in the path you mentioned in your post?
Offline
dmc68 wrote:
straight into the python2.4 root or into the trac folder under /python2.4 in the path you mentioned in your post?
I think it should be in $HOME/lib/python2.4 itself (not in the trac folder underneath)
Cheers,
Remi.
Offline
oh boy, I can see right now I am really gonna screw this up lol.
Wish me luck
Offline
ok remi, I get the same error as in my original post regardless of whether i try to install in either one of the below listed directories using either one of the commands listed below.
webapps/mytracinstall/plugins
lib/python2.4
using any of these install commands.
easy_install --always-unzip TracWebAdmin-0.1.2dev_r4240-py2.4.egg
python setup.py install
easy_install TracWebAdmin-0.1.2dev_r4240-py2.4.egg
python ez_setup.py
Any ideas?
thank you
Offline
dmc68 wrote:
ok remi, I get the same error as in my original post regardless of whether i try to install in either one of the below listed directories using either one of the commands listed below.
webapps/mytracinstall/plugins
lib/python2.4
using any of these install commands.
easy_install --always-unzip TracWebAdmin-0.1.2dev_r4240-py2.4.egg
python setup.py install
easy_install TracWebAdmin-0.1.2dev_r4240-py2.4.egg
python ez_setup.py
Any ideas?
thank you
Try easy_install-2.4 --always-unzip --install-dir=$HOME/lib/python2.4 --script-dir=$HOME/bin TracWebAdmin-0.1.2dev_r4240-py2.4.egg
Cheers,
Remi.
Offline
nope it is looking for a entry out at cheeseshop to try and install it remotely. I even entered the command in the python.24 directory.
Sorry for the basic questions man.
Searching for TracWebAdmin-0.1.2dev-r4240-py2.4.egg
Reading http://cheeseshop.python.org/pypi/TracW … py2.4.egg/
Reading http://cheeseshop.python.org/pypi/TracW … py2.4.egg/
Couldn't find index page for 'TracWebAdmin-0.1.2dev_r4240-py2.4.egg' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
No local packages or download links found for TracWebAdmin-0.1.2dev-r4240-py2.4.egg
error: Could not find suitable distribution for Requirement.parse('TracWebAdmin-0.1.2dev-r4240-py2.4.egg')
Offline
dmc68 wrote:
nope it is looking for a entry out at cheeseshop to try and install it remotely. I even entered the command in the python.24 directory.
Sorry for the basic questions man.
Searching for TracWebAdmin-0.1.2dev-r4240-py2.4.egg
Reading http://cheeseshop.python.org/pypi/TracW … py2.4.egg/
Reading http://cheeseshop.python.org/pypi/TracW … py2.4.egg/
Couldn't find index page for 'TracWebAdmin-0.1.2dev_r4240-py2.4.egg' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
No local packages or download links found for TracWebAdmin-0.1.2dev-r4240-py2.4.egg
error: Could not find suitable distribution for Requirement.parse('TracWebAdmin-0.1.2dev-r4240-py2.4.egg')
D'oh ... Of course, easy_install doesn't work with the egg ...
You can just do "python2.4 setup.py install --home=$HOME/lib/python2.4" from the directory where you have setup.py then.
Cheers,
Remi.
Offline
Checking .pth file support in /home2/dmc68/lib/python2.4/lib/python/
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 2] No such file or directory: '/home2/dmc68/lib/python2.4/lib/python/test-easy-install-9821.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/home2/dmc68/lib/python2.4/lib/python/
This directory does not currently exist. Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).
Offline
Ok, classic newb mistake on my part.
remember to follow the instructions on the trac plugin install page where it tell you to take off the .zip extension from the egg when installing.
After I did that I used the command remi provided me
easy_install-2.4 --always-unzip --install-dir=$HOME/lib/python2.4 --script-dir=$HOME/bin TracWebAdmin-0.1.2dev_r4240-py2.4.egg
and it works like a charm.
Thanx Remi
Dave
Offline
Ok, I am having similar problem. here is what I am running and what is getting returend:
[ops@web4 python2.4]$ easy_install-2.4 --always-unzip --install-dir=$HOME2/ops/lib/python2.4 --script-dir=$HOME2/ops/webapps/trac/plugins/TracWebAdmin-0.1.2dev_r4240-py2.4.egg
Traceback (most recent call last):
File "/usr/local/bin/easy_install-2.4", line 5, in ?
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2499, in ?
add_activation_listener(lambda dist: dist.activate())
File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 599, in subscribe
callback(dist)
File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2499, in <lambda>
add_activation_listener(lambda dist: dist.activate())
File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2045, in activate
self.insert_on(path)
File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2141, in insert_on
self.check_version_conflict()
File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2180, in check_version_conflict
for modname in self._get_metadata('top_level.txt'):
File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2039, in _get_metadata
for line in self.get_metadata_lines(name):
File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 1058, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 1055, in get_metadata
return self._get(self._fn(self.egg_info,name))
File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 1113, in _get
return self.loader.get_data(path)
zipimport.ZipImportError: bad local file header in /home2/ops/lib/python2.4/TracWebAdmin-0.1.2dev_r4240-py2.4.egg
[ops@web4 python2.4]$
Suggestions ???
Offline
I believe that you're missing a space before TracWebAdmin-0.1.2dev_r4240-py2.4.egg:
easy_install-2.4 --always-unzip --install-dir=$HOME2/ops/lib/python2.4 --script-dir=$HOME2/ops/webapps/trac/plugins/ TracWebAdmin-0.1.2dev_r4240-py2.4.egg
Offline
Thanks for the suggestion but I copy and pasted your exact sample syntax and it failed with the exact same response.
Offline
Sorry about that, I should have taken a closer look at the command. I'm not familiar with Trac but is there a reason that you're trying to install the module in $HOME/webapps/trac/plugins/? This will work:
easy_install-2.4 --always-unzip --install-dir=$HOME/lib/python2.4/ --script-dir=$HOME/bin/ $HOME/webapps/trac/plugins/TracWebAdmin-0.1.2dev_r4240-py2.4.egg
If it doesn't submit a support ticket and I'll take a look. ![]()
Last edited by IAIHMB (2007-05-02 15:59:33)
Offline
Because that is what the Trac documentation says.
I tried your command and get the same results.
When using ftp to my site, it shows Home2
Also, wouldn't the install directory be Home2/Ops/lib/python2.4, which is my directory whereas home/lib/python2.4 is not mine?
Offline
$HOME is a variable which is equivalent to /home2/ops/ so $HOME/lib/python2.4/ means /home2/ops/lib/python2.4/. ![]()
Offline
Here is how I got it to work (I think!):
1. easy_install wasn't installed. Had to install it
2. had to change directory to $home/lib/python2.4
3. put the egg in $home/bin directory
4. run the following
easy_install-2.4 --always-unzip --install-dir=$HOME/lib/python2.4 --script-dir=$HOME/bin TracWebAdmin-0.1.2dev_r4240-py2.4.egg
Offline
for me the following command worked:
easy_install-2.4 --always-unzip --install-dir=$HOME/lib/python2.4 --script-dir=$HOME/bin http://svn.edgewall.com/repos/trac/sandbox/webadmin
I didn't need to do anything else, as easy_install is already installed.
Offline
just an FYI, if you drop the egg files of trac plugins in it's plugings directory, of the top of my head, $HOME/webapps/trac/plugins/ , it will be enable by default by trac. as for how to get the egg.
- download the source (on your machine with the same python version of the server), you will probably need svn a co
- cd into it.
- python setup.py bdist_egg
- the egg file should be in a "dist" dir
- upload
Offline
danpopovici wrote:
for me the following command worked:
easy_install-2.4 --always-unzip --install-dir=$HOME/lib/python2.4 --script-dir=$HOME/bin http://svn.edgewall.com/repos/trac/sandbox/webadmin
I didn't need to do anything else, as easy_install is already installed.
Thanks, Dan... Yes, it did work like a champ, fast AND easy. The only thing I needed to do beyond this was to add:
[components] webadmin.* = enabled
lines to my trac.ini as this method installs the plugin globally rather than in the app's plugin directory. I then did a logon as a user with trac_admin permission and there it was, the Admin item in the menubar. No Apache restart is required (as per many Trac documentation instructions for plugin installation) because a default WebFaction Trac app runs in CGI mode rather than mod_python mode (which would require a restart).
--Jim--
Offline