LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bittorrent .py file??????/ (https://www.linuxquestions.org/questions/linux-newbie-8/bittorrent-py-file-417124/)

laney69er 02-19-2006 07:17 AM

bittorrent .py file??????/
 
im a linux newb, im trying to install bittornado, ive unpacked the file, and there is a file called setup.py im assuming that this is the setup file, how do i run this file??? any help would be greatly received

Vampirite 02-19-2006 07:33 AM

.py files are interpreted by Python.

I assume running the command:
Code:

python setup.py
In the console should work.

Maybe just double-clicking it in something like KDE or GNOME would run it aswell.

--
Kourosh

laney69er 02-19-2006 07:39 AM

if i enter

python setup.py

this is what i get

[root@localhost BitTornado-CVS]# python setup.py
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: no commands supplied

also double clicking the file does nothing

Vampirite 02-19-2006 07:41 AM

Ok, try:

python setup.py --help

Might work and give you more info.

Flesym 02-19-2006 08:01 AM

You may also simply try to install the pre-configured package. For this it is always a good idea to specify your linux-distribution, so that the people here can give you a more accurate description of what to do. For example, if your distribution uses APT (most Debian-based do) then simply type:
Code:

sudo apt-get install bittornado
And in other distributions it is as easy as that, too.

laney69er 02-19-2006 08:04 AM

i have linux red hat 9. and i just cant get nothing to work

laney69er 02-19-2006 08:25 AM

this is the error that i am getting now

[root@localhost ABC-Linux-V.2.4.3]# python setupabc.py
Traceback (most recent call last):
File "setupabc.py", line 3, in ?
import py2exe
ImportError: No module named py2exe

any help would be greatly recieved

Flesym 02-19-2006 08:52 AM

I'm not very familiar with RH but it uses rpm-packages and you can use 'yum' to manage these. Look here to get started
http://www.fedorafaq.org/#installsoftware
and after setting up 'yum' I guess you simply have to type:
Code:

yum install bittornado
... or something like that....

Vampirite 02-19-2006 09:20 AM

I'd forgotten about packages...

How about find an .rpm package and install it with:
rpm -i [packagename.rpm]

cs-cam 02-19-2006 05:20 PM

In answer to the original question (avoiding all package management-related confusion) the command you're looking for is:
Code:

python setup.py build
python setup.py install


Boow 02-19-2006 10:06 PM

if you want to use the gui you also need wxgtk and wxpython. id just get the official bittorrent client which only requires pygtk.


All times are GMT -5. The time now is 10:31 AM.