Deluge in Leopard - building issue?

Support for Deluge on Apple Mac OS
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Deluge in Leopard - building issue?

Post by markybob »

tnjed111 wrote:I installed the old version of libtorrent but I still get

Code: Select all

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_deluge/work/deluge-0.5.5" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: copying src/core.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/deluge_stats.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/dgtk.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/dialogs.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/files.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/info.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/interface.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/ipc_manager.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/plugins.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/pref.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/tab_details.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/update.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/wizard.py -> build/lib.macosx-10.3-i386-2.5/deluge
running build_ext
building 'deluge_core' extension
creating build/temp.macosx-10.3-i386-2.5
creating build/temp.macosx-10.3-i386-2.5/libtorrent
creating build/temp.macosx-10.3-i386-2.5/libtorrent/src
creating build/temp.macosx-10.3-i386-2.5/libtorrent/src/kademlia
creating build/temp.macosx-10.3-i386-2.5/src
/usr/bin/gcc-4.0 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/boost -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/opt/local/include/python2.5 -c libtorrent/src/alert.cpp -o build/temp.macosx-10.3-i386-2.5/libtorrent/src/alert.o -Wno-missing-braces -DHAVE_INCLUDE_LIBTORRENT_ASIO____ASIO_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_IP_TCP_HPP=1 -DHAVE_PTHREAD=1 -DTORRENT_USE_OPENSSL=1 -DHAVE_SSL=1 -DNDEBUG=1 -O2
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
/usr/bin/gcc-4.0 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/boost -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/opt/local/include/python2.5 -c libtorrent/src/assert.cpp -o build/temp.macosx-10.3-i386-2.5/libtorrent/src/assert.o -Wno-missing-braces -DHAVE_INCLUDE_LIBTORRENT_ASIO____ASIO_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_IP_TCP_HPP=1 -DHAVE_PTHREAD=1 -DTORRENT_USE_OPENSSL=1 -DHAVE_SSL=1 -DNDEBUG=1 -O2
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
/usr/bin/gcc-4.0 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/boost -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/opt/local/include/python2.5 -c libtorrent/src/bt_peer_connection.cpp -o build/temp.macosx-10.3-i386-2.5/libtorrent/src/bt_peer_connection.o -Wno-missing-braces -DHAVE_INCLUDE_LIBTORRENT_ASIO____ASIO_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_IP_TCP_HPP=1 -DHAVE_PTHREAD=1 -DTORRENT_USE_OPENSSL=1 -DHAVE_SSL=1 -DNDEBUG=1 -O2
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
./libtorrent/include/libtorrent/asio/detail/posix_fd_set_adapter.hpp: In member function 'bool asio::detail::posix_fd_set_adapter::is_set(asio::detail::socket_type) const':
./libtorrent/include/libtorrent/asio/detail/posix_fd_set_adapter.hpp:47: error: invalid conversion from 'const fd_set*' to 'fd_set*'
./libtorrent/include/libtorrent/asio/detail/posix_fd_set_adapter.hpp:47: error:   initializing argument 2 of 'int __darwin_fd_isset(int, fd_set*)'
error: command '/usr/bin/gcc-4.0' failed with exit status 1

Error: Status 1 encountered during processing.
Am I supposed to specify somehow which version of libtorrent to use when building deluge?
no. deluge comes with its own version of libtorrent and builds with that. not sure why leopard has issues with this
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Deluge in Leopard - building issue?

Post by markybob »

has anyone reported this bugs with the mac ports people? what did they have to say about this?
guido
New User
New User
Posts: 3
Joined: Tue Sep 25, 2007 9:14 am

Re: Deluge in Leopard - building issue?

Post by guido »

markybob wrote:has anyone reported this bugs with the mac ports people? what did they have to say about this?
I have submitted an update to Deluge 0.5.8 but it has not been
committed yet:

http://trac.macports.org/projects/macports/ticket/13791 .

A workaround to avoid the "missing symbols" errors under Leopard
has been already committed for py25-gobject, py25-cairo, py25-gtk and
dbus-python25: after rebuilding them all, Deluge 0.5.8 is running fine.
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Deluge in Leopard - building issue?

Post by markybob »

guido wrote:
markybob wrote:has anyone reported this bugs with the mac ports people? what did they have to say about this?
I have submitted an update to Deluge 0.5.8 but it has not been
committed yet:

http://trac.macports.org/projects/macports/ticket/13791 .

A workaround to avoid the "missing symbols" errors under Leopard
has been already committed for py25-gobject, py25-cairo, py25-gtk and
dbus-python25: after rebuilding them all, Deluge 0.5.8 is running fine.
great to hear, thanks! :)
fancyclown
Member
Member
Posts: 25
Joined: Mon Oct 01, 2007 8:21 pm

Re: Deluge in Leopard - building issue?

Post by fancyclown »

thanks guido!
However I can still not make deluge run on leopard. I used your workaround for py25-gobject, py25-cairo, py25-gtk and
dbus-python25 and installed Deluge 0.5.8 with the help of your ticket. All was fine but when i try to run /opt/local/bin/deluge in x11 it says:
sh: dbus-launch: command not found
I cant say I understand anything what I am doing, I just read what you say in this forum and google a lot. :) But its seems like its close to finally get deluge running on Leopard so please help me with the dbus-launch thingie. :?

EDIT: Its working now after i uninstalled macports and started over :)
mormolocu
New User
New User
Posts: 5
Joined: Sun Nov 04, 2007 10:52 am

Re: Deluge in Leopard - building issue?

Post by mormolocu »

Here is that i got today:



Portfile changed since last build; discarding previous state.
---> Fetching deluge
---> Attempting to fetch deluge-0.5.8.tar.gz from http://download.deluge-torrent.org/inde ... 5.8/&file=
---> Verifying checksum(s) for deluge
---> Extracting deluge
---> Configuring deluge
---> Building deluge with target build
---> Staging deluge into destroot
---> Installing deluge 0.5.8_0
---> Activating deluge 0.5.8_0
---> Cleaning deluge


So, how can I start deluge?
/opt/local/bin/deluge doesnt work...



bash-3.2$ /opt/local/bin/deluge
Traceback (most recent call last):
File "/opt/local/bin/deluge", line 45, in <module>
import deluge._dbus as dbus
File "/opt/local/lib/python2.5/site-packages/deluge/_dbus.py", line 32, in <mo
dule>
from dbus import Interface, SessionBus, version
File "/opt/local/lib/python2.5/site-packages/dbus/__init__.py", line 75, in <m
odule>
import dbus.types as types
File "/opt/local/lib/python2.5/site-packages/dbus/types.py", line 6, in <modul
e>
from _dbus_bindings import ObjectPath, ByteArray, Signature, Byte,\
ImportError: dlopen(/opt/local/lib/python2.5/site-packages/_dbus_bindings.so, 2)
: Symbol not found: _DBusPyConnection_GetUniqueName
Referenced from: /opt/local/lib/python2.5/site-packages/_dbus_bindings.so
Expected in: flat namespace



So, I'm trying sudo port upgdate installed...
will see


Nothing... same error above
mcurran07
New User
New User
Posts: 3
Joined: Mon Jan 21, 2008 2:36 am

Re: Deluge in Leopard - building issue?

Post by mcurran07 »

fancyclown wrote:EDIT: Its working now after i uninstalled macports and started over :)
Hi. I would like to know how well it's working for you. I got Deluge 0.5.8.1 to run as well on Leopard 10.5.1 with Macports 1.6 and Xcode 3.0...

BUT,

when I try to add a torrent I can navigate to the file and open it and nothing happens.

In order to even get this far you must be using the latest version by using
port -v selfupdate

then install deluge
port install deluge

it will fail due to dependencies, so list your installed dependencies with
port installed

now compare that to the required dependencies for deluge with
port deps deluge

whatever you don't see on the installed list I would clean and install
port clean nameofprogram
port install nameofprogram

now clean and reinstall deluge
port clean deluge
port install deluge

when the deluge install finishes run deluge in Apple's terminal not Xterm
deluge
or if that doesn't work
/opt/local/bin/deluge

you will get an error involving running deluge and it has to do with py25-hashlib
you can try a couple things:

deactivate py25-hashlib and run deluge
port deactivate py25-hashlib
deluge or /opt/local/bin/deluge

if that doesn't work then clean and install py25-hashlib and run deluge
port clean py25-hashlib
port install py25-hashlib
deluge or /opt/local/bin/deluge

you should have gotten to the configuration screen, but after that deluge will close and you must run deluge again

I have found that any errors that occur when trying to start deluge are dealt with (at least temporarily) by fixing the py25-hashlib as shown above
mcurran07
New User
New User
Posts: 3
Joined: Mon Jan 21, 2008 2:36 am

Re: Deluge in Leopard - building issue?

Post by mcurran07 »

Last login: Sun Jan 20 17:23:55 on console
admins-mac-pro:~ admin$ deluge
admins-mac-pro:~ admin$ no existing Deluge session
Starting new Deluge session...
deluge_core; using libtorrent 0.13.0.0. Compiled with NDEBUG.
Applying preferences
Pickling state...
Scanning plugin dir /opt/local/share/deluge/plugins
Initialising plugin BlocklistImport
Initialising plugin DesiredRatio
Initialising plugin EventLogging
Initialising plugin ExtraStats
Initialising plugin FlexRSS
Initialising plugin MoveTorrent
Initialising plugin NetworkGraph
Initialising plugin NetworkHealth
Initialising plugin Scheduler
Initialising plugin Search
Initialising plugin SpeedLimiter
Initialising plugin TorrentCreator
Initialising plugin TorrentFiles
Initialising plugin TorrentNotification
Initialising plugin TorrentPeers
Initialising plugin WebSeed
Initialising plugin WebUi
Applying preferences
Showing window
Pickling state...
Missing file: /Volumes/DATA/Downloads/torrents/Leopard GM 9a581 Patched for Intel PCs (SSE3 ONLY) and Patch.2.torrent
Unable to add torrent:
Missing file: /Volumes/DATA/Downloads/torrents/[isoHunt]_iATKOS_v1.0ir2.iso.1393682.SN.torrent
Unable to add torrent:
Traceback (most recent call last):
File "/opt/local/bin/deluge", line 145, in <module>
start_deluge()
File "/opt/local/bin/deluge", line 129, in start_deluge
interface.start(get_cmd_line_torrents())
File "/opt/local/lib/python2.5/site-packages/deluge/interface.py", line 1034, in start
self.update()
File "/opt/local/lib/python2.5/site-packages/deluge/interface.py", line 1198, in update
tlist = self.get_torrent_state_list(unique_id, state)
File "/opt/local/lib/python2.5/site-packages/deluge/interface.py", line 973, in get_torrent_state_list
queue = state['queue_pos']
TypeError: 'NoneType' object is unsubscriptable
admins-mac-pro:~ admin$ sudo port deactivate py25-hashlib
Password:
---> Deactivating py25-hashlib
admins-mac-pro:~ admin$ deluge
admins-mac-pro:~ admin$ no existing Deluge session
Starting new Deluge session...
deluge_core; using libtorrent 0.13.0.0. Compiled with NDEBUG.
Applying preferences
Missing file: /Volumes/DATA/Downloads/torrents/Leopard GM 9a581 Patched for Intel PCs (SSE3 ONLY) and Patch.2.torrent
Pickling state...
Scanning plugin dir /opt/local/share/deluge/plugins
Initialising plugin BlocklistImport
Initialising plugin DesiredRatio
Initialising plugin EventLogging
Initialising plugin ExtraStats
Initialising plugin FlexRSS
Initialising plugin MoveTorrent
Initialising plugin NetworkGraph
Initialising plugin NetworkHealth
Initialising plugin Scheduler
Initialising plugin Search
Initialising plugin SpeedLimiter
Initialising plugin TorrentCreator
Initialising plugin TorrentFiles
Initialising plugin TorrentNotification
Initialising plugin TorrentPeers
Initialising plugin WebSeed
Traceback (most recent call last):
File "/opt/local/bin/deluge", line 145, in <module>
start_deluge()
File "/opt/local/bin/deluge", line 128, in start_deluge
interface = deluge.interface.DelugeGTK()
File "/opt/local/lib/python2.5/site-packages/deluge/interface.py", line 60, in __init__
self.plugins.scan_for_plugins()
File "/opt/local/lib/python2.5/site-packages/deluge/plugins.py", line 61, in scan_for_plugins
mod = __import__(modname, globals(), locals(), [''])
File "/opt/local/share/deluge/plugins/WebUi/__init__.py", line 70, in <module>
from md5 import md5
File "/opt/local/lib/python2.5/md5.py", line 6, in <module>
from hashlib import md5
File "/opt/local/lib/python2.5/hashlib.py", line 133, in <module>
md5 = __get_builtin_constructor('md5')
File "/opt/local/lib/python2.5/hashlib.py", line 60, in __get_builtin_constructor
import _md5
ImportError: No module named _md5

admins-mac-pro:~ admin$ sudo clean py25-hashlib
sudo: clean: command not found
admins-mac-pro:~ admin$ sudo port clean py25-hashlib
---> Cleaning py25-hashlib
admins-mac-pro:~ admin$ sudo port install py25-hashlib
---> Activating py25-hashlib 2.5.1_0
---> Cleaning py25-hashlib
admins-mac-pro:~ admin$ deluge
admins-mac-pro:~ admin$ no existing Deluge session
Starting new Deluge session...
deluge_core; using libtorrent 0.13.0.0. Compiled with NDEBUG.
Applying preferences
Pickling state...
Scanning plugin dir /opt/local/share/deluge/plugins
Initialising plugin BlocklistImport
Initialising plugin DesiredRatio
Initialising plugin EventLogging
Initialising plugin ExtraStats
Initialising plugin FlexRSS
Initialising plugin MoveTorrent
Initialising plugin NetworkGraph
Initialising plugin NetworkHealth
Initialising plugin Scheduler
Initialising plugin Search
Initialising plugin SpeedLimiter
Initialising plugin TorrentCreator
Initialising plugin TorrentFiles
Initialising plugin TorrentNotification
Initialising plugin TorrentPeers
Initialising plugin WebSeed
Initialising plugin WebUi
Applying preferences
Showing window
admins-mac-pro:~ admin$
Attachments
deluge running
deluge running
deluge.png (160.99 KiB) Viewed 8374 times
bathat
New User
New User
Posts: 6
Joined: Sun Oct 21, 2007 3:40 am
Location: Lansing, MI

Re: Deluge in Leopard - building issue?

Post by bathat »

I'm also getting a similar error -- not sure if it's identical, but I would suspect as much. I've skimmed through this thread and this seems way too complicated. I wonder what the underlying reason is for all the compilation troubles... I'd like to install Deluge on Leopard (it works great in Debian via apt-get (best tool ever) ) but I guess I'll just have to be content using Transmission until this is all sorted out because I hate trying to sort out this sort of stuff. Supposedly, the Transmission client is banned on some sites... not certain as to why.

I wish one of the maintainers would make a port out of this so that it could be run natively on Leopard.

I hope someone is able to figure it out soon...
eLiasPT

Re: Deluge in Leopard - building issue?

Post by eLiasPT »

Hello all, after seeing one thread here on Deluge forum, i managed to correct some errors.
After a hour or so installing i had a new error.
Now when i try to install, it happens this:

Code: Select all

macbook-air-de-paulo-lima:~ paulolima$ sudo port install deluge
--->  Building deluge with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_deluge/work/deluge-torrent-0.5.8.7" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: libtorrent/src/alert.cpp:83: error: expected `;' before 'lock'
libtorrent/src/alert.cpp:89: error: 'boost' has not been declared
libtorrent/src/alert.cpp:89: error: 'xtime' was not declared in this scope
libtorrent/src/alert.cpp:89: error: expected `;' before 'xt'
libtorrent/src/alert.cpp:90: error: 'boost' has not been declared
libtorrent/src/alert.cpp:90: error: 'xt' was not declared in this scope
libtorrent/src/alert.cpp:90: error: 'boost' has not been declared
libtorrent/src/alert.cpp:90: error: 'TIME_UTC' was not declared in this scope
libtorrent/src/alert.cpp:90: error: 'xtime_get' was not declared in this scope
libtorrent/src/alert.cpp:92: error: 'boost' has not been declared
libtorrent/src/alert.cpp:99: error: 'm_condition' was not declared in this scope
libtorrent/src/alert.cpp:99: error: 'lock' was not declared in this scope
libtorrent/src/alert.cpp: In member function 'void libtorrent::alert_manager::post_alert(const libtorrent::alert&)':
libtorrent/src/alert.cpp:107: error: 'boost' has not been declared
libtorrent/src/alert.cpp:107: error: 'scoped_lock' was not declared in this scope
libtorrent/src/alert.cpp:107: error: expected `;' before 'lock'
libtorrent/src/alert.cpp:118: error: 'm_condition' was not declared in this scope
libtorrent/src/alert.cpp: In member function 'std::auto_ptr<libtorrent::alert> libtorrent::alert_manager::get()':
libtorrent/src/alert.cpp:123: error: 'boost' has not been declared
libtorrent/src/alert.cpp:123: error: 'scoped_lock' was not declared in this scope
libtorrent/src/alert.cpp:123: error: expected `;' before 'lock'
libtorrent/src/alert.cpp: In member function 'bool libtorrent::alert_manager::pending() const':
libtorrent/src/alert.cpp:134: error: 'boost' has not been declared
libtorrent/src/alert.cpp:134: error: 'scoped_lock' was not declared in this scope
libtorrent/src/alert.cpp:134: error: expected `;' before 'lock'
libtorrent/src/alert.cpp: In member function 'void libtorrent::alert_manager::set_severity(libtorrent::alert::severity_t)':
libtorrent/src/alert.cpp:141: error: 'boost' has not been declared
libtorrent/src/alert.cpp:141: error: 'scoped_lock' was not declared in this scope
libtorrent/src/alert.cpp:141: error: expected `;' before 'lock'
error: command '/usr/bin/gcc-4.0' failed with exit status 1

Error: Status 1 encountered during processing.
macbook-air-de-paulo-lima:~ paulolima$ 
Which seem worst than i was geting earlier.
Post Reply