New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'module' object has no attribute 'session_settings' #1510
Comments
I could confirm that this is currenlty broken. You could try test.py to check that your compilation does work. I will fix it. |
Thank You Very Much |
This problem is still alive with the Deluge torrent daemon. |
session_settings were deprecated a long time ago in favour of settings_pack. I seem to recall it’s still there though, as long as you build with deprecated functions enabled (which is the default) |
Do you have any more details on version of libtorrent and how it was built? |
I'm getting this on upgrade to libtorrent-rasterbar-1.2.0. Deluge fails due to the missing session_settings. It's definitely not there: Python 2.7.15 (default, Jan 15 2019, 23:07:09)
[GCC 8.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libtorrent
>>> libtorrent.session_settings
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'session_settings' On another machine still on 1.1.11: Python 2.7.15 (default, Jan 2 2019, 21:38:32)
[GCC 8.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libtorrent
>>> libtorrent.session_settings
<class 'libtorrent.session_settings'> This is on Gentoo Linux using the Portage ebuilds. |
The build does enable deprecated functions:
These are the ./configure options:
|
use |
|
I think the python bindings actually just use a dictionary instead of |
Could you have just left it in there? It's not possible to compile Deluge with the latest version of libtorrent. |
Was settings_pack ever a thing in the python binding? I think it was always just a dict in python. session_settings have been deprecated since 1.0 iirc |
@dylangerdaly @perfect7gentleman Deluge 1.3 is definitely not compatible with libtorrent 1.2, I said that 1.0 was the last proper supported libtorrent. Deluge 2.0 will support libtorrent >1.1 and is to be released soon... |
Hi arvidn
I use libtorrent python binding ,version '1.2.0.0'
when i run python client.py
ERROR
“AttributeError: 'module' object has no attribute 'session_settings'”
HELP ME PLEASE! thanks
The text was updated successfully, but these errors were encountered: