Deluge 1.3.5 on Ubuntu 12.04 (precise)

General support for problems installing or using Deluge
rtor
New User
New User
Posts: 8
Joined: Wed Aug 29, 2012 11:52 am

Deluge 1.3.5 on Ubuntu 12.04 (precise)

Postby rtor » Wed Aug 29, 2012 12:20 pm

Hi,

I've upgrade OS to 12.04 precise and now can't make deluge working.

Code: Select all


sudo /etc/init.d/deluge-daemon restart

tail: /var/log/deluge/daemon/warning.log: file truncated
[ERROR   ] 07:55:01 main:233 dynamic module does not define init function (initlibtorrent)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5-py2.7-linux-x86_64.egg/deluge/main.py", line 226, in start_daemon
    Daemon(options, args)
  File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5-py2.7-linux-x86_64.egg/deluge/core/daemon.py", line 141, in __init__
    from deluge.core.core import Core
  File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5-py2.7-linux-x86_64.egg/deluge/core/core.py", line 36, in <module>
    from deluge._libtorrent import lt
  File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5-py2.7-linux-x86_64.egg/deluge/_libtorrent.py", line 59, in <module>
    import libtorrent as lt
ImportError: dynamic module does not define init function (initlibtorrent)


~/deluge-1.3.5$ python setup.py build

Code: Select all

{...}
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.7 -I/usr/include -I -I/usr/include/python2.7 -c ./libtorrent/bindings/python/src/entry.cpp -o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/entry.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -DBOOST_FILESYSTEM_VERSION=2 -O2 -Wno-missing-braces
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.7 -I/usr/include -I -I/usr/include/python2.7 -c ./libtorrent/bindings/python/src/fingerprint.cpp -o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/fingerprint.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -DBOOST_FILESYSTEM_VERSION=2 -O2 -Wno-missing-braces
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.7 -I/usr/include -I -I/usr/include/python2.7 -c ./libtorrent/bindings/python/src/ip_filter.cpp -o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/ip_filter.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -DBOOST_FILESYSTEM_VERSION=2 -O2 -Wno-missing-braces
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.7 -I/usr/include -I -I/usr/include/python2.7 -c ./libtorrent/bindings/python/src/utility.cpp -o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/utility.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -DBOOST_FILESYSTEM_VERSION=2 -O2 -Wno-missing-braces
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.7 -I/usr/include -I -I/usr/include/python2.7 -c ./libtorrent/bindings/python/src/create_torrent.cpp -o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/create_torrent.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -DBOOST_FILESYSTEM_VERSION=2 -O2 -Wno-missing-braces
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/./libtorrent/src/udp_socket.o build/temp.linux-x86_64-2.7/./libtorrent/src/escape_string.o build/temp.linux-x86_64-2.7/./libtorrent/src/disk_io_thread.o build/temp.linux-x86_64-2.7/./libtorrent/src/upnp.o build/temp.linux-x86_64-2.7/./libtorrent/src/lsd.o build/temp.linux-x86_64-2.7/./libtorrent/src/tracker_manager.o build/temp.linux-x86_64-2.7/./libtorrent/src/socks5_stream.o build/temp.linux-x86_64-2.7/./libtorrent/src/connection_queue.o build/temp.linux-x86_64-2.7/./libtorrent/src/natpmp.o build/temp.linux-x86_64-2.7/./libtorrent/src/peer_connection.o build/temp.linux-x86_64-2.7/./libtorrent/src/parse_url.o build/temp.linux-x86_64-2.7/./libtorrent/src/http_tracker_connection.o build/temp.linux-x86_64-2.7/./libtorrent/src/magnet_uri.o build/temp.linux-x86_64-2.7/./libtorrent/src/gzip.o build/temp.linux-x86_64-2.7/./libtorrent/src/http_connection.o build/temp.linux-x86_64-2.7/./libtorrent/src/http_stream.o build/temp.linux-x86_64-2.7/./libtorrent/src/session.o build/temp.linux-x86_64-2.7/./libtorrent/src/torrent.o build/temp.linux-x86_64-2.7/./libtorrent/src/error_code.o build/temp.linux-x86_64-2.7/./libtorrent/src/metadata_transfer.o build/temp.linux-x86_64-2.7/./libtorrent/src/socks4_stream.o build/temp.linux-x86_64-2.7/./libtorrent/src/ut_metadata.o build/temp.linux-x86_64-2.7/./libtorrent/src/broadcast_socket.o build/temp.linux-x86_64-2.7/./libtorrent/src/torrent_handle.o build/temp.linux-x86_64-2.7/./libtorrent/src/file_pool.o build/temp.linux-x86_64-2.7/./libtorrent/src/file_storage.o build/temp.linux-x86_64-2.7/./libtorrent/src/policy.o build/temp.linux-x86_64-2.7/./libtorrent/src/ut_pex.o build/temp.linux-x86_64-2.7/./libtorrent/src/torrent_info.o build/temp.linux-x86_64-2.7/./libtorrent/src/bt_peer_connection.o build/temp.linux-x86_64-2.7/./libtorrent/src/alert.o build/temp.linux-x86_64-2.7/./libtorrent/src/session_impl.o build/temp.linux-x86_64-2.7/./libtorrent/src/entry.o build/temp.linux-x86_64-2.7/./libtorrent/src/enum_net.o build/temp.linux-x86_64-2.7/./libtorrent/src/file.o build/temp.linux-x86_64-2.7/./libtorrent/src/identify_client.o build/temp.linux-x86_64-2.7/./libtorrent/src/smart_ban.o build/temp.linux-x86_64-2.7/./libtorrent/src/assert.o build/temp.linux-x86_64-2.7/./libtorrent/src/disk_buffer_holder.o build/temp.linux-x86_64-2.7/./libtorrent/src/logger.o build/temp.linux-x86_64-2.7/./libtorrent/src/web_peer_connection.o build/temp.linux-x86_64-2.7/./libtorrent/src/ip_filter.o build/temp.linux-x86_64-2.7/./libtorrent/src/piece_picker.o build/temp.linux-x86_64-2.7/./libtorrent/src/instantiate_connection.o build/temp.linux-x86_64-2.7/./libtorrent/src/stat.o build/temp.linux-x86_64-2.7/./libtorrent/src/http_parser.o build/temp.linux-x86_64-2.7/./libtorrent/src/lazy_bdecode.o build/temp.linux-x86_64-2.7/./libtorrent/src/create_torrent.o build/temp.linux-x86_64-2.7/./libtorrent/src/storage.o build/temp.linux-x86_64-2.7/./libtorrent/src/udp_tracker_connection.o build/temp.linux-x86_64-2.7/./libtorrent/src/pe_crypto.o build/temp.linux-x86_64-2.7/./libtorrent/src/sha1.o build/temp.linux-x86_64-2.7/./libtorrent/src/GeoIP.o build/temp.linux-x86_64-2.7/./libtorrent/src/kademlia/node.o build/temp.linux-x86_64-2.7/./libtorrent/src/kademlia/rpc_manager.o build/temp.linux-x86_64-2.7/./libtorrent/src/kademlia/node_id.o build/temp.linux-x86_64-2.7/./libtorrent/src/kademlia/refresh.o build/temp.linux-x86_64-2.7/./libtorrent/src/kademlia/traversal_algorithm.o build/temp.linux-x86_64-2.7/./libtorrent/src/kademlia/dht_tracker.o build/temp.linux-x86_64-2.7/./libtorrent/src/kademlia/find_data.o build/temp.linux-x86_64-2.7/./libtorrent/src/kademlia/routing_table.o build/temp.linux-x86_64-2.7/./libtorrent/src/kademlia/closest_nodes.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/converters.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/filesystem.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/torrent_status.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/datetime.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/session_settings.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/magnet_uri.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/module.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/peer_info.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/peer_plugin.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/big_number.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/session.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/torrent.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/torrent_handle.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/version.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/torrent_info.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/extensions.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/alert.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/entry.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/fingerprint.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/ip_filter.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/utility.o build/temp.linux-x86_64-2.7/./libtorrent/bindings/python/src/create_torrent.o -L/opt/local/lib -lboost_filesystem-mt -lboost_date_time-mt -lboost_iostreams-mt -lboost_python -lboost_thread-mt -lpthread -lssl -lz -o build/lib.linux-x86_64-2.7/deluge/libtorrent.so


~/deluge-1.3.5$ sudo python setup.py install

Code: Select all

{....}
creating build/bdist.linux-x86_64/egg/share/icons/hicolor/96x96/apps
copying deluge/data/icons/hicolor/96x96/apps/deluge.png -> build/bdist.linux-x86_64/egg/share/icons/hicolor/96x96/apps
creating build/bdist.linux-x86_64/egg/share/pixmaps
copying deluge/data/pixmaps/deluge.png -> build/bdist.linux-x86_64/egg/share/pixmaps
copying deluge/data/pixmaps/deluge.xpm -> build/bdist.linux-x86_64/egg/share/pixmaps
creating build/bdist.linux-x86_64/egg/share/man
creating build/bdist.linux-x86_64/egg/share/man/man1
copying docs/man/deluge.1 -> build/bdist.linux-x86_64/egg/share/man/man1
copying docs/man/deluged.1 -> build/bdist.linux-x86_64/egg/share/man/man1
copying docs/man/deluge-gtk.1 -> build/bdist.linux-x86_64/egg/share/man/man1
copying docs/man/deluge-web.1 -> build/bdist.linux-x86_64/egg/share/man/man1
copying docs/man/deluge-console.1 -> build/bdist.linux-x86_64/egg/share/man/man1
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying deluge.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying deluge.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying deluge.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying deluge.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying deluge.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
deluge.pluginmanagerbase: module references __file__
deluge.ui.ui: module references __file__
deluge.ui.web.server: module references __file__
deluge.ui.console.__init__: module references __path__
creating 'dist/deluge-1.3.5-py2.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing deluge-1.3.5-py2.7-linux-x86_64.egg
removing '/usr/local/lib/python2.7/dist-packages/deluge-1.3.5-py2.7-linux-x86_64.egg' (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/deluge-1.3.5-py2.7-linux-x86_64.egg
Extracting deluge-1.3.5-py2.7-linux-x86_64.egg to /usr/local/lib/python2.7/dist-packages
deluge 1.3.5 is already the active version in easy-install.pth
Installing deluge-console script to /usr/local/bin
Installing deluged script to /usr/local/bin
Installing deluge-web script to /usr/local/bin
Installing deluge-gtk script to /usr/local/bin
Installing deluge script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/deluge-1.3.5-py2.7-linux-x86_64.egg
Processing dependencies for deluge==1.3.5
Finished processing dependencies for deluge==1.3.5


~/deluge-1.3.5$ sudo python setup.py install_data
running install_data

~/deluge-1.3.5$ sudo ldconfig

Can't even start daemon or GUI.
~$ /usr/bin/deluge
/usr/local/lib/python2.7/dist-packages/deluge-1.3.5-py2.7-linux-x86_64.egg/deluge/ui/gtkui/mainwindow.py:62: GtkWarning: Unable to rename '/home/user1/.recently-used.xbel': No such file or directory
"glade/main_window.glade"))
Segmentation fault (core dumped)

--Roman

Cas
Top Bloke
Top Bloke
Posts: 3643
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge 1.3.5 on Ubuntu 12.04 (precise)

Postby Cas » Wed Aug 29, 2012 5:57 pm

Why have you not just installed Deluge 1.3.5 from the repository?

There is clearly an issue with the libtorrent build and again it would be simple to use the repository version of libtorrent even if you are building Deluge from source.

rtor
New User
New User
Posts: 8
Joined: Wed Aug 29, 2012 11:52 am

Re: Deluge 1.3.5 on Ubuntu 12.04 (precise)

Postby rtor » Wed Aug 29, 2012 6:07 pm

I tried to install/reinstall from repo, but there were problems as well (something python-related).
So I decided to compile it, but no luck.

Code: Select all

sudo /etc/init.d/deluge-daemon restart

tail: /var/log/deluge/daemon/warning.log: file truncated
[ERROR   ] 07:55:01 main:233 dynamic module does not define init function (initlibtorrent)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5-py2.7-linux-x86_64.egg/deluge/main.py", line 226, in start_daemon
    Daemon(options, args)
  File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5-py2.7-linux-x86_64.egg/deluge/core/daemon.py", line 141, in __init__
    from deluge.core.core import Core
  File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5-py2.7-linux-x86_64.egg/deluge/core/core.py", line 36, in <module>
    from deluge._libtorrent import lt
  File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5-py2.7-linux-x86_64.egg/deluge/_libtorrent.py", line 59, in <module>
    import libtorrent as lt
ImportError: dynamic module does not define init function (initlibtorrent)

johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Deluge 1.3.5 on Ubuntu 12.04 (precise)

Postby johnnyg » Thu Aug 30, 2012 12:54 pm

What version of libtorrent are you building?

rtor
New User
New User
Posts: 8
Joined: Wed Aug 29, 2012 11:52 am

Re: Deluge 1.3.5 on Ubuntu 12.04 (precise)

Postby rtor » Thu Aug 30, 2012 10:50 pm

libtorrent-rasterbar-0.16.3

johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Deluge 1.3.5 on Ubuntu 12.04 (precise)

Postby johnnyg » Fri Aug 31, 2012 11:54 am

I only recently committed something which was needed to compile libtorrent 0.16.

That said, it was segfaulting for me as well and I haven't worked out why...

Cas
Top Bloke
Top Bloke
Posts: 3643
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge 1.3.5 on Ubuntu 12.04 (precise)

Postby Cas » Sat Sep 01, 2012 9:54 am

You are the only person to have reported issues installing Precise packages so I would suggest purging both deluge and libtorrent-rasterbar, reinstall python and then install deluge.

rtor
New User
New User
Posts: 8
Joined: Wed Aug 29, 2012 11:52 am

Re: Deluge 1.3.5 on Ubuntu 12.04 (precise)

Postby rtor » Sat Sep 01, 2012 5:46 pm

Purged python, reinstalled it, downloaded deluge1.3.5
It compiled without problems (wanted libboost-python-dev for libtorrent compilation), but still doesn't start.

~/deluge-deluge-1.3.5$ deluged -d
[ERROR ] 13:44:37 main:233 No module named xdg.BaseDirectory
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5_dev-py2.7-linux-x86_64.egg/deluge/main.py", line 226, in start_daemon
Daemon(options, args)
File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5_dev-py2.7-linux-x86_64.egg/deluge/core/daemon.py", line 52, in __init__
if os.path.isfile(deluge.configmanager.get_config_dir("deluged.pid")):
File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5_dev-py2.7-linux-x86_64.egg/deluge/configmanager.py", line 130, in get_config_dir
return os.path.join(_configmanager.get_config_dir(), filename)
File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5_dev-py2.7-linux-x86_64.egg/deluge/configmanager.py", line 93, in get_config_dir
return self.config_directory
File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5_dev-py2.7-linux-x86_64.egg/deluge/configmanager.py", line 51, in config_directory
self.__config_directory = deluge.common.get_default_config_dir()
File "/usr/local/lib/python2.7/dist-packages/deluge-1.3.5_dev-py2.7-linux-x86_64.egg/deluge/common.py", line 162, in get_default_config_dir
import xdg.BaseDirectory
ImportError: No module named xdg.BaseDirectory

Cas
Top Bloke
Top Bloke
Posts: 3643
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge 1.3.5 on Ubuntu 12.04 (precise)

Postby Cas » Sat Sep 01, 2012 9:44 pm


rtor
New User
New User
Posts: 8
Joined: Wed Aug 29, 2012 11:52 am

Re: Deluge 1.3.5 on Ubuntu 12.04 (precise)

Postby rtor » Sat Sep 01, 2012 10:11 pm

I've installed dependancies for Ubuntu:
sudo apt-get install python python-twisted python-twisted-web2 python-openssl python-simplejson python-setuptools gettext intltool python-xdg python-chardet python-geoip python-libtorrent python-notify python-pygame python-gtk2 python-gtk2-dev librsvg2-dev xdg-utils python-mako

Built, installed - now it's segfault error.

~/deluge-deluge-1.3.5$ deluged -d
Segmentation fault (core dumped)


Return to “Support”

Who is online

Users browsing this forum: No registered users and 17 guests