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 <[email protected]> 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 <[email protected]> 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 > > <[email protected]>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 > > > Codename: n/a > > > > Anyways, once I had the virtual environment setup I performed the > > > following: > > > > (exclude pth to not destroy any other egg you have installed) > > > sudo rsync -av --exclude '*.pth' ~/dev/lib/python2.6/site-packages/* > > > /usr/lib/python2.6/site-packages/ > > > sudo chown -R root:root /usr/lib/python2.6/site-packages > > > sudo cp ~/dev/bin/trac* /usr/bin/ > > > > Edit the following file and add the Trac/Genshi egg: > > > > sudo vi /usr/lib/python2.6/site-packages/easy-install.pth > > > #added the following: > > > ./Trac-0.12.2-py2.6.egg > > > ./Genshi-0.7dev_r1150-py2.6.egg > > > > Edit the following file and made sure setuptools egg was correct: > > > > sudo vi /usr/lib/python2.6/site-packages/setuptools.pth > > > # added the following (I actually had an older egg listed (as mentioned > > > above), but I noticed I just in-inadvertently upgraded... so I modified > > > it: > > > ./setuptools-0.6c12dev_r85381-py2.6.egg > > > > Once this was all complete... I was able to create a new directory of my > > > chooseing, and perform a: > > > > trac-admin /some/path/trac initenv > > > tracd --port 8000 /some/path/trac-project > > > > Firefoxhttp://localhost:8000/trac > success. (you'll obviously want > > > something different! (apache) I just like to use tracd as proof of > > > concept) > > > > I really hope this helps! Though, I thank you regardless, as I learned a > > > few things along the way. > > > > Jason > > > > On Tue, Apr 19, 2011 at 5:11 PM, Jason Miller > > > <[email protected]>wrote: > > > >> Well, if no outbound connections are allowed, I suppose one option would > > >> be to build Trac the way you want it on a different machine. Then rsync > > >> the > > >> data over. > > > >> Namely the only item that you should have to rsync is the site-packages > > >> folder. Then 'maybe' modify the easy-install.pth file (located inside > > >> site-packages), if something got installed in a strange > > >> 'out-of-directory' > > >> path. > > > >> Your right in assuming that svn-checkouts/tarball-src downloads of each > > >> requirement, should have resulted in a successful local install with out > > >> a > > >> network connection. > > >> If that doesn't work, then you may have to extract the setuptools.egg, > > >> and > > >> hand-modify egg locations (if easy-install.pth modifications isn't > > >> enough). > > > >> I'll have to attempt one and let you know if I was successful in a local > > >> install, then transfer to another machine. Be right back! > > > >> Jason > > > >> On Tue, Apr 19, 2011 at 8:09 AM, Voelker, Bernhard < > > >> [email protected]> wrote: > > > >>> Hi Jason, > > > >>> thanks for the hints. However, as long as the installer tries to connect > > >>> to the internet, > > >>> it will cowardly fail: the machine is actually a virtual machine (SLES) > > >>> in the DMZ of a corporate > > >>> network. It's not permitted to make any new connections into the > > >>> internet, also a proxy > > >>> is missing. The only connection permitted is *from* the internet to a > > >>> small set of TCP ports > > >>> of that host. > > > >>> As babel is not strictly required, and as I manually installed genshi, I > > >>> was expecting the > > >>> "off-line" installation to succeed. > > > >>> BTW: > > >>> `python ./setup.py --help` does that same as `... install`: > > > >>> $ lsof -p 19738 > > >>> COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME > > >>> python 19738 ecs cwd DIR 253,1 4096 2146487 > > >>> /user/ecs/berny/depot/trac-0.12.2 > > >>> python 19738 ecs rtd DIR 8,3 4096 2 / > > >>> python 19738 ecs txt REG 8,5 5320 208996 > > >>> /usr/bin/python2.4 > > >>> ... > > >>> python 19738 ecs 0u CHR 136,3 5 /dev/pts/3 > > >>> python 19738 ecs 1u CHR 136,3 5 /dev/pts/3 > > >>> python 19738 ecs 2u CHR 136,3 5 /dev/pts/3 > > >>> python 19738 ecs 3u IPv4 43469727 TCP > > >>> ecs.siemens-enterprise.com:33262->pypi.python.org:http (SYN_SENT) > > >>> ... --help doesn't print the usage. > > >>> Also --verbose doesn't make a difference. > > > >>> Thanks for your help. > > > >>> Have a nice day, > > >>> Berny > > > >>> ------------------------------ > > >>> *From:* [email protected] [mailto:[email protected]] > > >>> *On Behalf Of *Jason Miller > > >>> *Sent:* Tuesday, April 19, 2011 3:16 PM > > >>> *To:* [email protected] > > >>> *Subject:* Re: [Trac] setup behind firewall > > > >>> Out bound connections are made across the HTTP and HTTPS > > >>> protocol. Not sure as to why your DMZ would be blocking that. > > >>> In fact, a DMZ 'should' be firewall free. > > > >>> Not that this 'should' matter, but have you prepended the 'python' > > >>> interpreter before your commands? : python ./setup.py install > > > >>> Still... what happens when you manually svn co > > >>> http://<some svn repo> from the same machine? > > > >>> Does the DMZ employ a proxy maybe? > > > >>> What happens when you use: easy_install babel (I noticed > > >>> you havn't installed babel yet, might as well try through easy_install) > > > >>> Is this an appliance specific machine with a custom linux flavor > > >>> installed on it? (not exactly a PC, but a product designed to do > > >>> something else like one of these ugly things: > > >>>http://www.landesk.com/docs/manuals/590694501B_screen.pdf) > > >>> I know I have had my fair share of getting one of those working the > > >>> way "WE" wanted. And installing Trac on it, would definitely qualify. > > > >>> does: dig edgewall.org return the correct IP address of 88.198.140.129? > > > >>> Odd bud, and being in the DMZ makes it odder still. You should have no > > >>> firewall/connectivity issues at > > ... > > read more »- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
