Offline Install?

1 view
Skip to first unread message

Jorge Vargas

unread,
Dec 12, 2005, 9:53:56 AM12/12/05
to turbo...@googlegroups.com
I'm trying to install TG at work, and the firewall is blocking the python scripts, i can download the files manually (i did that with setuptools) and hacked the scipt to read the file from my disk, but now it's downloading TG, so I think I should ask for help instead of keep messing up.


Can I

a) download all the files and tell the scripts paths to them?
b) get a tar or something to do an offline install?
c) set everything up manually?

by the way I can't get svn cause it;s block also.

Phillip J. Eby

unread,
Dec 12, 2005, 11:35:14 AM12/12/05
to TurboGears

Jorge Vargas wrote:
> I'm trying to install TG at work, and the firewall is blocking the python
> scripts, i can download the files manually (i did that with setuptools) and
> hacked the scipt to read the file from my disk, but now it's downloading TG,
> so I think I should ask for help instead of keep messing up.
>
>
> Can I
>
> a) download all the files and tell the scripts paths to them?

Yes; download them to a directory, go into that directory and use -f.
as in:

ez_setup.py -f. TurboGears

By the way, there is also a proxy server available at
http://ntlmaps.sf.net/ that lets Python get through NTLM-based
firewalls in the same way that your web browser does; you just have to
run it and configure urllib to use it as a proxy server.

jorge....@gmail.com

unread,
Dec 12, 2005, 1:08:18 PM12/12/05
to TurboGears
which is the exact list of packages? all the ones listed in
http://turbogears.com/download/index.html
is that list up to date for 0.8 that is?

I'm not sure which cElementTree file to get (i'm running windows here)

should i get ElementTree + win32 or ElementTree + modified one?

Phillip J. Eby

unread,
Dec 12, 2005, 1:54:50 PM12/12/05
to TurboGears

For Windows, I don't believe you need any source packages; just get
.egg and -win32.egg files. Note, however, that if you get more than
you need, or less than you need, it's not a problem. If you're missing
something, the install process will fail, but can safely be restarted
once you download the missing thing. When you rerun the same command,
it'll only look for things it hasn't already installed.

jorge....@gmail.com

unread,
Dec 12, 2005, 2:03:53 PM12/12/05
to TurboGears
yes I notice that, i got the win32 and it worked fine (no errors).

then i added the <pythonDir>\scripts dir to the path, and went i run
tg-admin i get this error

Traceback (most recent call last):
File "c:\python24\Scripts\tg-admin-script.py", line 5, in ?
from pkg_resources import load_entry_point
File
"c:\python24\lib\site-packages\setuptools-0.6a8-py2.4.egg\pkg_resources.py",
line 2192, in ?
working_set.require(__requires__)
File
"c:\python24\lib\site-packages\setuptools-0.6a8-py2.4.egg\pkg_resources.py",
line 503, in require
needed = self.resolve(parse_requirements(requirements))
File
"c:\python24\lib\site-packages\setuptools-0.6a8-py2.4.egg\pkg_resources.py",
line 483, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: TestGears>=0.2

Kevin Dangoor

unread,
Dec 12, 2005, 3:35:17 PM12/12/05
to turbo...@googlegroups.com
You can get the TestGears egg from here:
http://www.turbogears.org/testgears/

Kevin


--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: k...@blazingthings.com
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

jorge....@gmail.com

unread,
Dec 12, 2005, 6:16:29 PM12/12/05
to TurboGears
I believe that's the same you get from
http://www.turbogears.org/download/index.html

i download them all, and easy_install exit without a problem.

jorge....@gmail.com

unread,
Dec 13, 2005, 9:18:58 PM12/13/05
to TurboGears
i think i didn't say that right

I download them all, easy_install exit without a problem and i get that
error.

Karl Guertin

unread,
Dec 14, 2005, 12:14:12 AM12/14/05
to turbo...@googlegroups.com
I did something like this:

mkdir turbogears_install
cd turbogears_install
wget http://turbogears.org/download/index.html
mv index.html tg_install.html
vim tg_install.html
## Delete all html not related to the download, save and quit
mkdir eggs
cp tg_install.html eggs/tg_install_temp
cd eggs
vim tg_install_temp
## Delete everything except the download links:
## :%s/^.*http/http/
## :%s/">.*$//
## :%g!/^http/d
## save and quit
for x in `tg_install_temp`;do wget $x; done
# tar it, scp it here, whatever, get back in the turbogears_install directory
easy_install -f ./tg_install.html TurboGears

Kevin Dangoor

unread,
Dec 14, 2005, 10:01:53 AM12/14/05
to turbo...@googlegroups.com
If someone can open a ticket on this (I gotta run in just a minute): I
can bundle up all of the eggs into a massive tarball that includes
ez_setup.py. The ideal arrangement is to let easy_install work as well
as possible, but I know that some people are stuck behind draconian
firewalls.

Kevin

Reply all
Reply to author
Forward
0 new messages