LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-04-2005, 12:12 AM   #1
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1, Centos 7
Posts: 278

Rep: Reputation: 32
Unhappy 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

Any suggestions much appreciated, BashTin.
 
Old 09-04-2005, 01:31 AM   #2
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
Just for fun - crack open that .py file, and comment out the line importing that module - and then try...
 
Old 09-04-2005, 01:50 AM   #3
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1, Centos 7
Posts: 278

Original Poster
Rep: Reputation: 32
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.

Cheers, BashTin.
 
Old 09-12-2005, 02:52 AM   #4
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
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
 
Old 09-12-2005, 03:07 AM   #5
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1, Centos 7
Posts: 278

Original Poster
Rep: Reputation: 32
Hi baslleus,

Yes it all works fine from the command line. I just want to get the Pyhton GUI working.

Cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
freevo crash ImportError: No module named web.microdom netsurf Linux - Software 0 10-23-2005 05:30 AM
gDesklets - ImportError: No module named gnome.ui raffi Linux - Software 9 10-20-2005 12:48 PM
iPodder: ImportError: No module named wx dr_zayus69 Linux - Software 6 07-06-2005 01:55 AM
ImportError: No module named libglade Kanaflloric Programming 0 08-16-2004 09:58 PM
ImportError: No module named gconf linorg Linux - Software 8 02-02-2004 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration