LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems running "bttrack.py" (https://www.linuxquestions.org/questions/linux-newbie-8/problems-running-bttrack-py-371543/)

cardgage 10-10-2005 10:48 AM

Problems running "bttrack.py"
 
Hello everyone!

I've recently installed Fedora 7 on an old computer that was lying around the house. I'm fairly computer-literate when it comes to Windows and hardware issues, but I'm completely new to Linux.

I've set up my linux machine to be a web server and host a small forum, but I would now like to set up a BitTorrent tracker on the machine as well. I downloaded and installed BitTorrent build 4.0.4, and from the "readme.txt" file I see that I need to run "bttrack.py" to set up the tracker. When I try to run the command
Code:

python bttrack.py --port 6969 --dfile dstate
from the /usr/bin directory, I get the message that
Quote:

Traceback (innermost last):
File "/usr/bin/bttrack.py", line 16, in ?
from BitTorrent.track import track
ImportError: No module named BitTorrent.track
The only file I could find close to "Bittorrent.track" is "/usr/lib/python2.3/site-packages/BitTorrent/track.py". Trying to run that gives a message like above with "No module named BitTorrent.obsoletepythonsupport"

Any suggestions as to what I have done wrong here?

unSpawn 10-11-2005 06:32 AM

I've recently installed Fedora 7 on an old computer
Must be some other distro, because FC current is 4. I sincerely hope it isn't RedHat Linux 7.x, because all "RedHat Linux" releases are obsolete, only RHEL and Fedora remain.


I'm completely new to Linux. I've set up my linux machine to be a web server and host a small forum, but I would now like to set up a BitTorrent tracker on the machine as well.
Please check out the LQ FAQ: Security references. Your box probably needs hardening before you continue (ask questions about that in the LQ Security forum).


The only file I could find close to "Bittorrent.track" is "/usr/lib/python2.3/site-packages/BitTorrent/track.py"
Which probably means you're running a version of Python lower than 2.3, and it ain't looking at the /usr/lib/python2.3 contents. If you dont need support for Python 2.2 you could upgrade it to 2.3. If that is not an option, and if there are no security implications, and if it doesn't loose specific functions you will need, you could also try and downgrade BitTorrent package to a version that still uses Python 2.2.

cardgage 10-11-2005 07:55 AM

Thanks for the reply.

Yeah, my mistake... Fedora 4. I'm posting from my Windoze box so I just went from memory. I must have seen Red Hat 7 somewhere and gotten confused.

Thanks for the link to the security thread, I will definitely check that out and tighten up my security.

As for the Python thing, I also have an empty folder named Python2.4 in the /usr/lib/ directory. I suppose that if I had Python 2.4 it would not be backwards compatible? That would probably explain the "BitTorrent.obsoletepythonsupport" module that it was complaining about. If I were able to downgrade my version of Python to 2.3, would that allow me to run the track.py, and then the bttrack.py modules?

Thanks for your help.


All times are GMT -5. The time now is 07:52 PM.