Bittorrent. "ImportError: No module named __future__"
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Bittorrent. "ImportError: No module named __future__"
Please help. I am trying to get Bittorrent working.
I have installed Bittorrent 4.0.3 and in Opera, done the file association application/x-bittorrent, /usr/bin/btmaketorrentgui.py and extension torrent. When I click on a torrent file in my browser the save as dialouge comes up and shows btmaketorrentgui.py as the app to use but when I click open the dialouge disappears and nothing seems to happen.
I have never used BT before so I assume after the above action I am meant to get some sort of gui. When I try and run btmaketorrentgui.py from the command line I get "ImportError: No module named __future__"
I am using Mandrake 10.1
python v2.3.4
gtk v2.4.9 (gtk+2.0-2.4.9-9mdk, installed to /usr/lib/gtk-2.0/gtk-2.4.9)
pygtk v2.7.0
Hi PenguinPwrdBox here are the first few lines of btmakedownloadgiu.py.
#from __future__ import division
import os
import sys
assert sys.version_info >= (2, 3), "Install Python 2.3 or greater"
#from threading import Event
import gtk
import gobject
from BitTorrent.GUI import *
from BitTorrent import Desktop
from BitTorrent import version
from BitTorrent import configfile
from BitTorrent.defaultargs import get_defaults
from BitTorrent.makemetafile import make_meta_files
from BitTorrent.parseargs import makeHelp
When I comment out the 'futures' line I get similar errors about 'import os', 'import sys', 'import gtk', etc.
Obviously looking for something and not finding it.
Have you tried your script without Opera, downloading the .torrent and running the script on it? I always start from the bottom and then go up as thing work
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.