The script does this every time I try and install trac using the script installers
Downloading http://ftp.edgewall.com/pub/trac/Trac-0.12.1.tar.gz (2.07 MB) .. Received 1024 bytes (0 %) Received 212 kB (10 %) Received 424 kB (20 %) Received 636 kB (30 %) Received 848 kB (40 %) Received 1.04 MB (50 %) Received 1.24 MB (60 %) Received 1.45 MB (70 %) Received 1.66 MB (80 %) Received 1.86 MB (90 %) Received 2.07 MB (100 %) .. download complete. Downloading http://www.saddi.com/software/flup/dist/flup-1.0.tar.gz (45.67 kB) .. Received 1024 bytes (2 %) Received 5 kB (10 %) Received 10 kB (21 %) Received 14 kB (30 %) Received 19 kB (41 %) Received 23 kB (50 %) Received 28 kB (61 %) Received 32 kB (70 %) Received 37 kB (81 %) Received 42 kB (91 %) Received 45.67 kB (100 %) .. download complete.
Python module setuptools is required .. Installing package setuptools .. Installing package(s) with command yum -y install setuptools .. Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.as29550.net * base: mirror.as29550.net * epel: mirror01.th.ifl.net * extras: mirror.sov.uk.goscomb.net * updates: mirror.as29550.net Reducing CentOS-5 Testing to included packages only Finished Setting up Install Process No package setuptools available. Nothing to do .. install complete. .. automatic Python module installation failed Installing package python-setuptools .. Installing package(s) with command yum -y install python-setuptools .. Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.as29550.net * base: mirror.as29550.net * epel: mirror01.th.ifl.net * extras: mirror.sov.uk.goscomb.net * updates: mirror.as29550.net Reducing CentOS-5 Testing to included packages only Finished Setting up Install Process Package python-setuptools-0.6c9-5.noarch already installed and latest version Nothing to do .. install complete. .. done Python module MySQLdb is required .. Installing package MySQL-python .. Installing package(s) with command yum -y install MySQL-python .. Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.netrino.co.uk * base: mirror.netrino.co.uk * epel: mirror01.th.ifl.net * extras: mirror.netrino.co.uk * updates: mirror.as29550.net Reducing CentOS-5 Testing to included packages only Finished Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package MySQL-python.i386 0:1.2.2-1 set to be updated --> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository SizeInstalling: MySQL-python i386 1.2.2-1 virtualmin 108 k
Transaction SummaryInstall 1 Package(s) Upgrade 0 Package(s)
Total download size: 108 k Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : MySQL-python 1/1
Installed:
Complete! .. install complete. .. done Now installing Trac version 0.12.1 .. Trac source install failed : Traceback (most recent call last): File "setup.py", line 15, in ? from setuptools import setup, find_packages ImportError: No module named setuptools .. failed! See the error message above for the reason why. Return to list of scripts
Comments
Submitted by graham_howden1 on Wed, 01/05/2011 - 13:10 Comment #1
Fixed by manually installing the .egg from this URL
http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4...
The yum version is installing to the python2.6 rather than the 2.4 so using python it cannot find it, using that URL it installs it for the correct python
Submitted by graham_howden1 on Wed, 01/05/2011 - 13:27 Comment #2
Now it has issues connecting to the SVN and using the trac-admin gives this error:
-sh-3.2$ ./trac-admin /home/eluin/public_html/track/ repository resync "Eluin" Traceback (most recent call last): File "./trac-admin", line 5, in ? from pkg_resources import load_entry_point File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 2603, in ? working_set.require(requires) File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: Trac==0.12.1
Submitted by JamieCameron on Wed, 01/05/2011 - 15:46 Comment #3
Which Linux distribution and version are you running there? Both python and any python modules should be installed from your distro's packages, and should all be the same version ..
Submitted by graham_howden1 on Thu, 01/06/2011 - 04:13 Comment #4
Its CentOS 5.5, python is version 2.4 (thats CentOS's fault its not latest, I have python 2.6 installed as python26).
The install script installer tries intalling 'setuptools' from yum but that fails, then tries 'python-setuptools' which works, but then python doesnt detect it (I've tried typing 'import setuptools' into a python prompt, it seems to fail).
Installing the setuptools module directly for 2.4 makes the install script run and python detects setuptools, but when loading Trac it gives an error about connecting to the SVN, and when using the trac-admin python script it gives that last error, which I can't make heads nor tails of.
Submitted by graham_howden1 on Thu, 01/06/2011 - 05:04 Comment #5
Finally solved the trac-admin issue by going into the lib/python directory within Trac and doing:
easy_install Trac
and
easy_install Genshi
Now trac-admin runs without error, but I'm still getting an SVN connection error, it says:
Warning: Can't synchronize with repository "(default)" (Couldn't open Subversion repository /home/eluin/svn/hexbot: SubversionException: ("Can't open file '/home/eluin/svn/hexbot/db/current': Permission denied", 13)). Look in the Trac log for more information.
On every page loaded in Trac
Looked up the file, it is owned by apache:apache
Submitted by graham_howden1 on Thu, 01/06/2011 - 05:23 Comment #6
Ok, I tried changing the 'current' file to be apache:eluin, and then it could use the file, but then it complained about there being no changeset 1, so I've made a new repository and edited the .ini to point to it and there are no errors (yet)
Submitted by graham_howden1 on Thu, 01/06/2011 - 06:20 Comment #7
OK, put all files into the repository and it went back to the permission denied error, changed it to apahce:eluin and it said an error about the file '1' in the rev directory being wrong, so I changed that, and also '1' in revprops had to be changed. Is there a way to make the new revisions automatically be apache:eluin and not apache:apache?
Submitted by JamieCameron on Thu, 01/06/2011 - 13:28 Comment #8
I wonder if the cause here is that the
python
command is version 2.6, but this isn't detecting the modules Virtualmin installs via YUM as they are for version 2.4?Submitted by graham_howden1 on Thu, 01/06/2011 - 16:06 Comment #9
The python command is 2.4, the python26 is version 2.6, there have been multiple errors e.t.c. after this stage, Ive got it all up and running after a minor SVN issue and many other things, just authentication to fix now, I'll close this as it might just be an issue with my system/centOS
Submitted by JamieCameron on Thu, 01/06/2011 - 16:26 Comment #10
Ok, cool ..