[Trac] Re: setup behind firewall
Hi Jason, that did the trick: - cd $HOME/downloads # set installation destination prefix=$HOME/opt/trac-0.12.2 # set proxy for Trac-0.12.2/setup.py below export HTTP_PROXY=http://some.proxy:port/ # extend PYTHONPATH to new $prefix site-packages (lib and lib64) PYTHONPATH=$PYTHONPATH:$prefix/lib/python2.4/site-packages PYTHONPATH=$PYTHONPATH:$prefix/lib64/python2.4/site-packages export PYTHONPATH # install Genshi wget -Y on http://ftp.edgewall.com/pub/genshi/Genshi-0.6.tar.gz tar xf Genshi-0.6.tar.gz cd Genshi-0.6 python ./setup.py install --prefix=$prefix cd .. # install setuptools wget -Y on http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg mkdir -p $prefix/lib/python2.4/site-packages chmod u+x setuptools-0.6c11-py2.4.egg sh ./setuptools-0.6c11-py2.4.egg --prefix=$prefix # install TRAC wget -Y on http://ftp.edgewall.com/pub/trac/Trac-0.12.2.tar.gz tar xf Trac-0.12.2.tar.gz cd Trac-0.12.2 python ./setup.py install --prefix=$prefix - Then, I rsync'ed $prefix to my host without connection to the internet. Now, I'm curious if there are problems upgrading my old trac-0.10.4 projects ... Thanks have a nice day, Berny On Apr 20, 8:20 am, berny bernhard.voel...@siemens-enterprise.com wrote: Hi Jason, thank you for that detailed description. I highly recommend drinking a Guinness. I come from Bavaria/Germany, so there are many alternatives. Guiness is good and tasty, I personally prefer drinking a dark wheat bock beer. ;-) I have a similar host with network access at hand. Unfortunately, the installation fails rather early: ecs@mchp320a:~/downloads/virtualenv-1.6 ~/dev/bin/virtualenv ~/dev New python executable in /user/ecs/dev/bin/python Installing setuptools.. Complete output from command /user/ecs/dev/bin/python -c #!python \\\Bootstra...sys.argv[1:]) /user/ecs/downloads/...ols-0.6c11-py2.4.egg: Traceback (most recent call last): File string, line 67, in ? ImportError: No module named md5 ...Installing setuptools...done. Traceback (most recent call last): File /user/ecs/dev/bin/virtualenv, line 3, in ? virtualenv.main() File /user/ecs/downloads/virtualenv-1.6/virtualenv.py, line 745, in main prompt=options.prompt) File /user/ecs/downloads/virtualenv-1.6/virtualenv.py, line 843, in create_environment install_setuptools(py_executable, unzip=unzip_setuptools) File /user/ecs/downloads/virtualenv-1.6/virtualenv.py, line 571, in install_setuptools _install_req(py_executable, unzip) File /user/ecs/downloads/virtualenv-1.6/virtualenv.py, line 547, in _install_req cwd=cwd) File /user/ecs/downloads/virtualenv-1.6/virtualenv.py, line 811, in call_subprocess raise OSError( OSError: Command /user/ecs/dev/bin/python -c #!python \\\Bootstra...sys.argv[1:]) /user/ecs/downloads/...ols-0.6c11-py2.4.egg failed with error code 1 You know I don't know Python much - I'm usually more into C. It seems that virtualenv doesn't work with my Python installation, so I'll try to install Genshi et al manually there. Have a nice day, Berny On Apr 20, 2:51 am, Jason Miller m.jason.mil...@gmail.com wrote: Typo: trac-admin /some/path/trac initenv tracd --port 8000 /some/path/trac-project should be: trac-admin /some/path/trac initenv tracd --port 8000 /some/path/trac On Tue, Apr 19, 2011 at 6:46 PM, Jason Miller m.jason.mil...@gmail.comwrote: OK, performed the following on a disconnected laptop running openSuSE 11.3 (sorry SLES is at work... and I am having a Guinness :) ) I highly recommend drinking a Guinness. mkdir -p ~/dev/downloads ~/dev/bin ~/dev/lib/python2.6/site-packages ~/dev/projects/TracProjectName export PYTHONPATH=$HOME/dev/lib/python2.6/site-packages cd ~/dev/downloads curl -O http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.ta curl -Ohttp://ftp.edgewall.com/pub/genshi/Genshi-0.6.tar.gz. curl -Ohttp://ftp.edgewall.com/pub/trac/Trac-0.12.2.tar.gz. NETWORK DISCONNECTED AT THIS POINT for i in *.tar.gz; do tar -xf $i; done cd virtualenv-1.6 python ./setup.py install --prefix=$HOME/dev ~/dev/bin/virtualenv ~/dev . ~/dev/bin/activate cd ~/dev/downloads/Genshi-0.6 python ./setup.py install cd ~/dev/downloads/Trac-0.12.2 python ./setup.py install I wrote those commands as I performed them, no modifications what so ever. Once completed, you can copy the contents of ~/dev/lib/python2.6/site-packages/* to where ever your site-packages is located on the SLES machine. (Obviously, python versions need to match, make changes where you need them) You will also need to copy the ~/dev/bin/trac* to some system path. I used /usr/bin Also I noticed ~/dev/lib/python2.6/site-packages/setuptools.pth already mentioned a system path. I ended up just using the exact line mentioned in
Re: [Trac] Help needed
On 04/20/2011 02:12 AM, Saurav Sagar wrote: SubversionException: ('Revision file lacks trailing newline', 160004) Can you please suggest something for this.. I'd make sure you can check out the repository with SVN. It looks like this is a SVN problem, not a Trac problem. It's reporting that it can't access the SVN revision file because there isn't a trailing newline. One can theoretically add a newline, but I'm not sure that will work - it sounds like things are a bit corrupt. I'd use SVN's tools to try and fix the repository. Once SVN says its okay, then you can try to resync. -- Matthew Caron Build Engineer Sixnet | www.sixnet.com O +1 518 877 5173 Ext. 138 F +1 518 602 9209 matt.ca...@sixnet.com -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] Re: setup behind firewall
On 20 Apr., 09:59, berny bernhard.voel...@siemens-enterprise.com wrote: Hi Jason, that did the trick: [snipped] Now, I'm curious if there are problems upgrading my old trac-0.10.4 projects ... wow, `trac-admin project upgrade trac-admin project wiki upgrade` worked perfectly! Have a nice day, Berny -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Re: setup behind firewall
My openSuSE already had setuptools installed before I ran those instructions... you might try to install that package before running my instructions. I am not that strong at Python myself, but it almost looks to me like its asking for setuptools. And that would make sense considering I didn't know how setuptoolssome-version.egg got install into my virtual environment, but there it was, when I went to perform the rsync... If you already have setuptools, then that md5 module?... I didn't see that in my virtual site-pakages environment when I was done... I have no idea why virtualenv/setuptools would require it. A dark Wheat bock beer... is that a type or actual name? I would love to try some! Albertson's is the only place around here that has as decent selection... Hopefully they have it. Either way, I hope your Genshi manual install works... it is all Trac needs like you mentioned. Jason On Wed, Apr 20, 2011 at 12:20 AM, berny bernhard.voel...@siemens-enterprise.com wrote: Hi Jason, thank you for that detailed description. I highly recommend drinking a Guinness. I come from Bavaria/Germany, so there are many alternatives. Guiness is good and tasty, I personally prefer drinking a dark wheat bock beer. ;-) I have a similar host with network access at hand. Unfortunately, the installation fails rather early: ecs@mchp320a:~/downloads/virtualenv-1.6 ~/dev/bin/virtualenv ~/dev New python executable in /user/ecs/dev/bin/python Installing setuptools.. Complete output from command /user/ecs/dev/bin/python -c #!python \\\Bootstra...sys.argv[1:]) /user/ecs/downloads/...ols-0.6c11-py2.4.egg: Traceback (most recent call last): File string, line 67, in ? ImportError: No module named md5 ...Installing setuptools...done. Traceback (most recent call last): File /user/ecs/dev/bin/virtualenv, line 3, in ? virtualenv.main() File /user/ecs/downloads/virtualenv-1.6/virtualenv.py, line 745, in main prompt=options.prompt) File /user/ecs/downloads/virtualenv-1.6/virtualenv.py, line 843, in create_environment install_setuptools(py_executable, unzip=unzip_setuptools) File /user/ecs/downloads/virtualenv-1.6/virtualenv.py, line 571, in install_setuptools _install_req(py_executable, unzip) File /user/ecs/downloads/virtualenv-1.6/virtualenv.py, line 547, in _install_req cwd=cwd) File /user/ecs/downloads/virtualenv-1.6/virtualenv.py, line 811, in call_subprocess raise OSError( OSError: Command /user/ecs/dev/bin/python -c #!python \\\Bootstra...sys.argv[1:]) /user/ecs/downloads/...ols-0.6c11-py2.4.egg failed with error code 1 You know I don't know Python much - I'm usually more into C. It seems that virtualenv doesn't work with my Python installation, so I'll try to install Genshi et al manually there. Have a nice day, Berny On Apr 20, 2:51 am, Jason Miller m.jason.mil...@gmail.com wrote: Typo: trac-admin /some/path/trac initenv tracd --port 8000 /some/path/trac-project should be: trac-admin /some/path/trac initenv tracd --port 8000 /some/path/trac On Tue, Apr 19, 2011 at 6:46 PM, Jason Miller m.jason.mil...@gmail.com wrote: OK, performed the following on a disconnected laptop running openSuSE 11.3 (sorry SLES is at work... and I am having a Guinness :) ) I highly recommend drinking a Guinness. mkdir -p ~/dev/downloads ~/dev/bin ~/dev/lib/python2.6/site-packages ~/dev/projects/TracProjectName export PYTHONPATH=$HOME/dev/lib/python2.6/site-packages cd ~/dev/downloads curl -O http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.ta.. .. curl -Ohttp://ftp.edgewall.com/pub/genshi/Genshi-0.6.tar.gz. curl -Ohttp://ftp.edgewall.com/pub/trac/Trac-0.12.2.tar.gz. NETWORK DISCONNECTED AT THIS POINT for i in *.tar.gz; do tar -xf $i; done cd virtualenv-1.6 python ./setup.py install --prefix=$HOME/dev ~/dev/bin/virtualenv ~/dev . ~/dev/bin/activate cd ~/dev/downloads/Genshi-0.6 python ./setup.py install cd ~/dev/downloads/Trac-0.12.2 python ./setup.py install I wrote those commands as I performed them, no modifications what so ever. Once completed, you can copy the contents of ~/dev/lib/python2.6/site-packages/* to where ever your site-packages is located on the SLES machine. (Obviously, python versions need to match, make changes where you need them) You will also need to copy the ~/dev/bin/trac* to some system path. I used /usr/bin Also I noticed ~/dev/lib/python2.6/site-packages/setuptools.pth already mentioned a system path. I ended up just using the exact line mentioned in that file and duplicated it in my actual /usr/lib/python2.6/site-packages/setuptools.pth file. For your information: (dev)user@triton:~/lsb_realse -a LSB Version:n/a Distributor ID:SUSE LINUX Description:openSUSE 11.3 (x86_64) Release:11.3