View Full Version : Running Deluge on amd64
zachtib
October 4th, 2006, 03:16 PM
hopefully when kripken gets online tommorow, he'll take a look at this. neither of us are running ubuntu64, so i don't know how much we can do on our end, but if you're willing to help us out, we do need to work on getting it to run on 64bit ubuntu.
maybe we can start providing 64 bit .debs with the 0.2.0 release (yes, it's almost here)
I would be glad to. I'm not an expert by any stretch, but I'll do what I can. After all, I DO want to have it running on Ubuntu 64 :)
alright, glad to have your help.
I'll talk to kripken tomorrow about a 64bit version. or more likely, he'll see this thread.
I'm not even going to pretend to know what it will take to get it running on x86_64, so I won't be of much help on my own.
It will be hard to debug amd64 without having such an install myself... but let's try. It's a worthy cause :)
I compiled a version of python-libtorrent with extra debug messages. It's called 0.1.9. So, run Deluge with that one (and not 0.2), and show me the output. Maybe we'll get somewhere.
Just trying to let the old 0.1 thread die. Please continue discussion of the 64 bit version here.
Krakatos
October 4th, 2006, 04:14 PM
Ok, same result as before. If I install that package, through
sudo dpkg --force-architecture --install python-libtorrent.deb
it install without problem
Then I decompress,
chmod +x deluge.py ,
./deluge.py
And the result is
Traceback (most recent call last):
File "./deluge.py", line 38, in ?
import torrent
ImportError: /usr/lib/python2.4/site-packages/torrent.so: cannot open shared object file: No such file or directory
As before. Because maybe I wasn't clear enough, but I managed to run Deluge only by compiling the svn myself and then moving the file torrent.so manually to /usr/lib/python2.4/site-packages/ .
And only after I run it form there I get that queue error message.,
I'll try to recompile it myself now, just to see if something changes
zachtib
October 4th, 2006, 04:21 PM
Ok, same result as before. If I install that package, through
sudo dpkg --force-architecture --install python-libtorrent.deb
it install without problem
Then I decompress,
chmod +x deluge.py ,
./deluge.py
And the result is
Traceback (most recent call last):
File "./deluge.py", line 38, in ?
import torrent
ImportError: /usr/lib/python2.4/site-packages/torrent.so: cannot open shared object file: No such file or directory
As before. Because maybe I wasn't clear enough, but I managed to run Deluge only by compiling the svn myself and then moving the file torrent.so manually to /usr/lib/python2.4/site-packages/ .
And only after I run it form there I get that queue error message.,
I'll try to recompile it myself now, just to see if something changes
wait, what queue error? if you manually compile and install python-libtorrent, what is the error message that deluge gives you?
Krakatos
October 4th, 2006, 04:37 PM
Jucst compiled the v32 svn, after installing the whole libboost.
Here is the complete output
keltosh@keltosh-desktop:/media/dati/Apps/python-libtorrent$ sudo ./makeit
Make!
running build
running build_ext
building 'torrent' extension
creating build/temp.linux-x86_64-2.4
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c alert.cpp -o build/temp.linux-x86_64-2.4/alert.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c identify_client.cpp -o build/temp.linux-x86_64-2.4/identify_client.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c storage.cpp -o build/temp.linux-x86_64-2.4/storage.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c allocate_resources.cpp -o build/temp.linux-x86_64-2.4/allocate_resources.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c ip_filter.cpp -o build/temp.linux-x86_64-2.4/ip_filter.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c torrent.cpp -o build/temp.linux-x86_64-2.4/torrent.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c bt_peer_connection.cpp -o build/temp.linux-x86_64-2.4/bt_peer_connection.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c peer_connection.cpp -o build/temp.linux-x86_64-2.4/peer_connection.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c torrent_handle.cpp -o build/temp.linux-x86_64-2.4/torrent_handle.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c entry.cpp -o build/temp.linux-x86_64-2.4/entry.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c piece_picker.cpp -o build/temp.linux-x86_64-2.4/piece_picker.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c torrent_info.cpp -o build/temp.linux-x86_64-2.4/torrent_info.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c escape_string.cpp -o build/temp.linux-x86_64-2.4/escape_string.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c policy.cpp -o build/temp.linux-x86_64-2.4/policy.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c tracker_manager.cpp -o build/temp.linux-x86_64-2.4/tracker_manager.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c file.cpp -o build/temp.linux-x86_64-2.4/file.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c session.cpp -o build/temp.linux-x86_64-2.4/session.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
session.cpp: In member function ‘void libtorrent::detail::piece_checker_data::parse_resu me_data(const libtorrent::entry&, const libtorrent::torrent_info&, std::string&)’:
session.cpp:1701: warning: comparison between signed and unsigned integer expressions
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c udp_tracker_connection.cpp -o build/temp.linux-x86_64-2.4/udp_tracker_connection.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c sha1.cpp -o build/temp.linux-x86_64-2.4/sha1.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c web_peer_connection.cpp -o build/temp.linux-x86_64-2.4/web_peer_connection.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c http_tracker_connection.cpp -o build/temp.linux-x86_64-2.4/http_tracker_connection.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c stat.cpp -o build/temp.linux-x86_64-2.4/stat.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I./include -I./include/libtorrent -I/usr/include/python2.4 -I/usr/include/python2.4 -c python-libtorrent.cpp -o build/temp.linux-x86_64-2.4/python-libtorrent.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
creating build/lib.linux-x86_64-2.4
g++ -pthread -shared build/temp.linux-x86_64-2.4/alert.o build/temp.linux-x86_64-2.4/identify_client.o build/temp.linux-x86_64-2.4/storage.o build/temp.linux-x86_64-2.4/allocate_resources.o build/temp.linux-x86_64-2.4/ip_filter.o build/temp.linux-x86_64-2.4/torrent.o build/temp.linux-x86_64-2.4/bt_peer_connection.o build/temp.linux-x86_64-2.4/peer_connection.o build/temp.linux-x86_64-2.4/torrent_handle.o build/temp.linux-x86_64-2.4/entry.o build/temp.linux-x86_64-2.4/piece_picker.o build/temp.linux-x86_64-2.4/torrent_info.o build/temp.linux-x86_64-2.4/escape_string.o build/temp.linux-x86_64-2.4/policy.o build/temp.linux-x86_64-2.4/tracker_manager.o build/temp.linux-x86_64-2.4/file.o build/temp.linux-x86_64-2.4/session.o build/temp.linux-x86_64-2.4/udp_tracker_connection.o build/temp.linux-x86_64-2.4/sha1.o build/temp.linux-x86_64-2.4/web_peer_connection.o build/temp.linux-x86_64-2.4/http_tracker_connection.o build/temp.linux-x86_64-2.4/stat.o build/temp.linux-x86_64-2.4/python-libtorrent.o -lboost_filesystem -lboost_date_time -lboost_program_options -lboost_regex -lboost_serialization -lboost_thread -lz -lpthread -o build/lib.linux-x86_64-2.4/torrent.so
keltosh@keltosh-desktop:/media/dati/Apps/python-libtorrent$
I have no idea if the warning is normal, but this piece you can see up there surely is not
session.cpp: In member function ‘void libtorrent::detail::piece_checker_data::parse_resu me_data(const libtorrent::entry&, const libtorrent::torrent_info&, std::string&)’:
session.cpp:1701: warning: comparison between signed and unsigned integer expressions
then I moved the compiled torrent.so to /usr/lib/python2.4/site-packages/, and started deluge. And it works, except when I try to add a torrent, this happens
Torrent file: /media/dati/Download/[MakiMaki]Inuyasha_v48_ch476.zip.torrent
Asking for save dir
Save Directory: /home/keltosh
Queuing at 1
Critical Error! No such uniqueID (46909632806912, 1)
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check
Aborted
and Deluge crashes.
also, if I go in the folder from where I compiled, and type python test.py, as suggested, this happens
Segmentation fault
zachtib
October 4th, 2006, 04:42 PM
then I moved the compiled torrent.so to /usr/lib/python2.4/site-packages/, and started deluge. And it works, except when I try to add a torrent, this happens
Torrent file: /media/dati/Download/[MakiMaki]Inuyasha_v48_ch476.zip.torrent
Asking for save dir
Save Directory: /home/keltosh
Queuing at 1
Critical Error! No such uniqueID (46909632806912, 1)
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check
Aborted
and Deluge crashes.
also, if I go in the folder from where I compiled, and type python test.py, as suggested, this happens
Segmentation fault
interesting.
im sure you've said before, but what version of ubuntu are you using again?
also, have you enabled all the repos and installed all the libboost modules in them?
Krakatos
October 4th, 2006, 04:51 PM
Ubuntu 6.06.1 amd64, I obviously have universe and multiverse enabled, and the I have installed every single lobboost I see here. To make a list:
libboost-date-time1.33.1
libboost-date-time-dev
libboost-dbg
libboost-dev
libboost-filesystem1.33.1
libboost-filesystem-dev
libboost-graph1.33.1
libboost-graph-dev
libboost-iostreams1.33.1
libboost-iostreams-dev
libboost-program-options1.33.1
libboost-program-options-dev
libboost-python1.33.1
libboost-python-dev
libboost-regex1.33.1
libboost-regex-dev
libboost-serialization-dev
libboost-signals1.33.1
libboost-signals-dev
libboost-test1.33.1
libboost-test-dev
libboost-thread1.33.1
libboost-thread-dev
libboost-dev.33.1
zachtib
October 4th, 2006, 04:57 PM
Ubuntu 6.06.1 amd64, I obviously have universe and multiverse enabled, and the I have installed every single lobboost I see here. To make a list:
ok, why don't you try googling the error, and see what comes up. obviously, there won't be any hits related to deluge, but perhaps we can glean some insight towards what exactly the problem is.
Krakatos
October 4th, 2006, 05:09 PM
ok, why don't you try googling the error, and see what comes up. obviously, there won't be any hits related to deluge, but perhaps we can glean some insight towards what exactly the problem is.
Well, I did... but I didn't find much, apart from the fact that those
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
warnings seem to stem form the c++ templates. But I did not come up with anything specifical.
On the other hand, the error
terminate called after throwing an instance of 'std:ut_of_range'
what(): vector::_M_range_check
really does not require google. Clearly an out of range error after a vector check.. Though I have no idea of why it happens
As for the compiling warning
session.cpp: In member function ‘void libtorrent::detail: piece_checker_data: parse_resume_data(const libtorrent::entry&, const libtorrent::torrent_info&, std::string&)’:
session.cpp:1701: warning: comparison between signed and unsigned integer expressions
Might be that this is the cause of the error of vector range check but it's just my supposition.
As for segmentation faults..
. A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (for example, attempting to write to a read-only location, or to overwrite part of the operating system).
mighta also be due to the error in vector range check.. but more than this, I have no idea
zachtib
October 4th, 2006, 05:16 PM
ok, well, I'm pretty clueless in this matter, so wait for kripken to come back online tommorow and see if he has an idea of the problem
kripkenstein
October 5th, 2006, 10:50 AM
The compilation warnings should be fine. We can ignore them for now I think.
It seems that you will indeed have to compile your own python-libtorrent. But as you've already found out, that isn't too much work :)
Now, the problem is that what you compiled doesn't have the debug messages I wanted to see... because they were only in that .deb.
So, I added a compilation option for debugging, this should help us. Grab the latest source of python-libtorrent, and find the line
//#define DEBUG64
(line 39 right now; may change in the future). Remove the "//" at the beginning. Then compile, and you will get extra debug messages when you run. You'll need to do this every time you grab the source, as by default the "//" will be in there, to prevent debug messages for normal use.
zachtib
October 5th, 2006, 11:16 AM
i had an idea, just tell me if this makes no sense or not. you say you are manually moving the one file to /usr/lib/... but are there any other files that need to be put there as well? such as the compiled libtorrent? (not the wrapper kripken wrote, the C++ lib itself)
Krakatos
October 5th, 2006, 12:02 PM
So, I added a compilation option for debugging, this should help us. Grab the latest source of python-libtorrent, and find the line
//#define DEBUG64
(line 39 right now; may change in the future). Remove the "//" at the beginning. Then compile, and you will get extra debug messages when you run. You'll need to do this every time you grab the source, as by default the "//" will be in there, to prevent debug messages for normal use.
Ok, done, deleted .deluge folder to erase all the conf. files, started up deluge, imported the ubuntu torrent. Here's what I get now
Torrent file: /media/dati/Apps/python-libtorrent/ubuntu.torrent
Global Save Boolean
False
False
Asking for save dir
Save Directory: /home/keltosh
Queuing at 1
Request for uniqueID: 46909632806912
--uniqueIDs[0] = 0
Critical Error! No such uniqueID (46909632806912, 1)
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check
Aborted
Hope it helps.
To zachnib: I "think" that that file is the only one who gets compiled.... everything is compiled within the torrent.so file... then again I may be wrong.. but I don't think so.
but hey if I am wrong, do tell me :)
zachtib
October 5th, 2006, 12:07 PM
Ok, done, deleted .deluge folder to erase all the conf. files, started up deluge, imported the ubuntu torrent. Here's what I get now
Torrent file: /media/dati/Apps/python-libtorrent/ubuntu.torrent
Global Save Boolean
False
False
Asking for save dir
Save Directory: /home/keltosh
Queuing at 1
Request for uniqueID: 46909632806912
--uniqueIDs[0] = 0
Critical Error! No such uniqueID (46909632806912, 1)
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check
Aborted
Hope it helps.
To zachnib: I "think" that that file is the only one who gets compiled.... everything is compiled within the torrent.so file... then again I may be wrong.. but I don't think so.
but hey if I am wrong, do tell me :)
yeah, its the only file, i just looked. i was in class when i posted last, so i couldn't check synaptic
zachtib
October 5th, 2006, 12:10 PM
oh, another thing.
how are the lib dirs set up in ubuntu64? is is a /usr/lib and /usr/lib32 or /usr/lib64 and /usr/lib, etc?
Krakatos
October 5th, 2006, 12:17 PM
well, there are /usr/lib and /usr/lib64 but /usr/lib64 is actually a link to /usr/lib so...
Also, I have a /usr/lib32, but it only has 60 files in it, and it's probably due to the 32 bit software that I force installed with force-architecture
kripkenstein
October 5th, 2006, 01:14 PM
Ok, done, deleted .deluge folder to erase all the conf. files, started up deluge, imported the ubuntu torrent. Here's what I get now
Torrent file: /media/dati/Apps/python-libtorrent/ubuntu.torrent
Global Save Boolean
False
False
Asking for save dir
Save Directory: /home/keltosh
Queuing at 1
Request for uniqueID: 46909632806912
--uniqueIDs[0] = 0
Critical Error! No such uniqueID (46909632806912, 1)
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check
Aborted
Ok, I have an idea now of the problem. Try the source I just uploaded. Remember to uncomment the 64 thingie (which I renamed AMD64, since it seems this will be not just for debug purposes).
Krakatos
October 5th, 2006, 02:15 PM
Eureka! It works :)
Only one small problem, you should probably remove that verbose debug info cause
Save Directory: /home/keltosh
Queuing at 1
Request for uniqueID: 0
--uniqueIDs[0] = 0
Request for uniqueID: 0
--uniqueIDs[0] = 0
AutoSaveTorrents
writing pref to file
Writing key global_loc with a value of:
Writing key sbvis with a value of: 1
Writing key existing1saveDir with a value of: /home/keltosh
Writing key tcp_port_min with a value of: 6881
Writing key stop_seeding with a value of: False
Writing key max_ul_rate with a value of: 0
Writing key tcp_port_max with a value of: 6999
Writing key max_num_dl with a value of: 0
Writing key existing1 with a value of: ubuntu.torrent
Writing key existing1paused with a value of: 0
Writing key max_dl_rate with a value of: 0
Writing key seed_cap_ratio with a value of: 0
Writing key max_num_ul with a value of: 0
Writing key global_save with a value of: False
Request for uniqueID: 0
--uniqueIDs[0] = 0
Request for uniqueID: 0
--uniqueIDs[0] = 0
Request for uniqueID: 0
--uniqueIDs[0] = 0
Request for uniqueID: 0
--uniqueIDs[0] = 0
Request for uniqueID: 0
--uniqueIDs[0] = 0
Request for uniqueID: 0
--uniqueIDs[0] = 0
Request for uniqueID: 0
--uniqueIDs[0] = 0
and then it goes on and on and on printing that Request for unique d :)
I am now off for some serious testing dowloading a bunch of torrents :)
Btw, 2 small things:
1) if you need to make a deb for amd64, I can make it if you want, considering none of you has a 64bit ubuntu installed. .. if you tell me how :) I honestly never did, I always simply installed what I compiled
2) you should rename the deb on the site to something like python-libtorret_0.2.0_i386.deb, to let users know which one to use
zachtib
October 5th, 2006, 02:26 PM
Btw, 2 small things:
1) if you need to make a deb for amd64, I can make it if you want, considering none of you has a 64bit ubuntu installed. .. if you tell me how :) I honestly never did, I always simply installed what I compiled
2) you should rename the deb on the site to something like python-libtorret_0.2.0_i386.deb, to let users know which one to use
I should be able to build the deb, my server is running 64bit ubuntu.
but yeah, kripken make sure that the .deb's have the correct architecture, and rename them so theres a i386 and x86_64 version of the file.
out of curiosity, what was the problem/solution?
Krakatos
October 5th, 2006, 02:31 PM
out of curiosity, what was the problem/solution?
Taking a quick peek at the code:
#ifdef AMD64
#define pythonLong int
#else
#define pythonLong long
#endif
This is the soluttion :) nothing traumatic :)
zachtib
October 5th, 2006, 02:55 PM
Taking a quick peek at the code:
#ifdef AMD64
#define pythonLong int
#else
#define pythonLong long
#endif
This is the soluttion :) nothing traumatic :)
i see...
kripkenstein
October 5th, 2006, 03:28 PM
Yes, as you can see from the code, I had to define 'pythonLong' differently for 64 and 32-bit archs. The issue is that the Python/C interface doesn't adapt automatically to 64-bit.
That's a good idea to mark the .debs with architechture. I'll do that.
Corbelius
October 5th, 2006, 03:34 PM
Torrent file: /media/dati/Apps/python-libtorrent/ubuntu.torrent
Global Save Boolean
False
False
Asking for save dir
Save Directory: /home/keltosh
Queuing at 1
Request for uniqueID: 46909632806912
--uniqueIDs[0] = 0
Critical Error! No such uniqueID (46909632806912, 1)
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check
Aborted
Same bug when i try to start deluge.
For python-libtorrent and amd64, try this: www.janvitus.netsons.org/python-libtorrent_0.2svn32-0ubuntu1~janvitus_amd64.deb
If works I add it to my repository.
zachtib
October 5th, 2006, 04:28 PM
Same bug when i try to start deluge.
For python-libtorrent and amd64, try this: www.janvitus.netsons.org/python-libtorrent_0.2svn32-0ubuntu1~janvitus_amd64.deb
If works I add it to my repository.
whoa, that blew my mind for a second. I didn't realize you were linking to a build of our library, and that there was a completely different python-libtorrent.
<mutters>just go back to coding zach...</mutters>
Krakatos
October 5th, 2006, 05:25 PM
Same bug when i try to start deluge.
For python-libtorrent and amd64, try this: www.janvitus.netsons.org/python-libtorrent_0.2svn32-0ubuntu1~janvitus_amd64.deb
If works I add it to my repository.
No it does not. To make it work I compiled the latest revision, and in the python-libtorrent.cpp file you need to uncomment the #define AMD64 line
And use at least the revision 35 if I rememnber correctly
Btw I already downloaded 4 torrents, everything works fine up to now
Corbelius
October 5th, 2006, 05:45 PM
Mmm... ok, i try svn revision 35.
Corbelius
October 7th, 2006, 05:40 AM
Ok, now work: http://www.janvitus.netsons.org/python2.4-libtorrent_0.2svn40-0ubuntu1~janvitus_amd64.deb
MD5: 06cd4718077c146ea8d65316ea47edb1
Krakatos
October 9th, 2006, 04:27 PM
I can confirm that it works, though of course if you compile from svn you get a more up-to-date file. But hey, it works. Compiling from svn is not for everyone, so good job.
jamesford
October 9th, 2006, 06:11 PM
yup works great, thanks again as always corbelius
zachtib
October 9th, 2006, 06:38 PM
I'm putting a link to your download on Deluge's official website, hope you don't mind
Corbelius
October 12th, 2006, 01:26 PM
I'm putting a link to your download on Deluge's official website, hope you don't mind
No problem :)
However i have inserted python-libtorrent on my repository: http://ubuntuforums.org/showthread.php?t=196093
For Dapper Drake: http://www.janvitus.netsons.org/ubuntu/pool/dapper-janvitus/python/python2.4-libtorrent_0.2svn40-0ubuntu1~janvitus_amd64.deb
For Edgy Eft: http://www.janvitus.netsons.org/ubuntu/pool/edgy-janvitus/Python/python-libtorrent_0.2-0ubuntu1~janvitus_amd64.deb
Please change link :)
zachtib
October 12th, 2006, 01:44 PM
No problem :)
However i have inserted python-libtorrent on my repository: http://ubuntuforums.org/showthread.php?t=196093
For Dapper Drake: http://www.janvitus.netsons.org/ubuntu/pool/dapper-janvitus/python/python2.4-libtorrent_0.2svn40-0ubuntu1~janvitus_amd64.deb
For Edgy Eft: http://www.janvitus.netsons.org/ubuntu/pool/edgy-janvitus/Python/python-libtorrent_0.2-0ubuntu1~janvitus_amd64.deb
Please change link :)
is there a difference between the two debs, or are they the same?
Corbelius
October 12th, 2006, 02:19 PM
is there a difference between the two debs, or are they the same?
Same, in Edgy suffix "python2.x" doesn't come used.
zachtib
October 17th, 2006, 01:31 PM
Just to inform you all,
I have built python-libtorrent from SVN on my Dapper amd64 server, so when we release the next version of deluge and python-libtorrent, we will offer official amd64 debs and the client will be officially supported on x86 and x86_64 platforms
Krakatos
October 17th, 2006, 01:57 PM
Just to inform you all,
I have built python-libtorrent from SVN on my Dapper amd64 server, so when we release the next version of deluge and python-libtorrent, we will offer official amd64 debs and the client will be officially supported on x86 and x86_64 platforms
That is great. i look forward to it :)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.