Page 2 of 2

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 30th, 2010, 4:26 am
by eyerule
sander wrote: Good that you found & could start python. However, I think you don't yet type the correct commands. So, after starting up python, type (or even better: copy & paste) these commands within python:

Code: Select all


print socket.has_ipv6
import socket
print socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
print socket.getaddrinfo("newszilla6.xs4all.nl", 80, 0, 0, socket.SOL_TCP)

Copy & paste the full output here back in this forum.
Firstly, thanks for your support!

The first command is not working:
EyerulesNAS> ./python
Python 2.5.4 (r254:67916, Jan 31 2010, 16:34:06)
[GCC 4.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print socket.has_ipv6
Traceback (most recent call last):
 File "", line 1, in
NameError: name 'socket' is not defined

Second commands:
>>> import socket
print socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
print socket.getaddrinfo("newszilla6.xs4all.nl", 80, 0, 0, socket.SOL_TCP)>>> [(2, 1, 6, '', ('82.94.164.162', 80))]
>>>
EyerulesNAS> ./python
Python 2.5.4 (r254:67916, Jan 31 2010, 16:34:06)
[GCC 4.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
print socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
print socket.getaddrinfo("newszilla6.xs4all.nl", 80, 0, 0, socket.SOL_TCP)
>>> [(2, 1, 6, '', ('82.94.164.162', 80))]
>>> Traceback (most recent call last):
  File "", line 1, in
socket.gaierror: (4, 'non-recoverable failure in name resolution.'

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 30th, 2010, 5:40 am
by sander
Conclusion: your python does not support IPv6 resolution. That's not a SABnzbd thing, but a Synology / python thing, so you should ask in a Synology forum.


Remark: the "import socket" should be used as the first line; I said it wrong in my earlier post.

Code: Select all

import socket
print socket.has_ipv6
print socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
print socket.getaddrinfo("newszilla6.xs4all.nl", 80, 0, 0, socket.SOL_TCP)

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 30th, 2010, 6:25 am
by eyerule
sander wrote: Conclusion: your python does not support IPv6 resolution. That's not a SABnzbd thing, but a Synology / python thing, so you should ask in a Synology forum.


Remark: the "import socket" should be used as the first line; I said it wrong in my earlier post.

Code: Select all

import socket
print socket.has_ipv6
print socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
print socket.getaddrinfo("newszilla6.xs4all.nl", 80, 0, 0, socket.SOL_TCP)
When doing that I get:
EyerulesNAS> ./python
Python 2.5.4 (r254:67916, Jan 31 2010, 16:34:06)
[GCC 4.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
print socket.has_ipv6
print socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
print socket.getaddrinfo("newszilla6.xs4all.nl", 80, 0, 0, socket.SOL_TCP)>>> False
>>> [(2, 1, 6, '', ('82.94.164.162', 80))]
>>>

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 30th, 2010, 6:45 am
by sander
Yep. There it is:

Code: Select all

print socket.has_ipv6
>>> False
So, your Python does not do IPv6. As said, SABnzbd cannot solve that for you. You should contact the Synology/Synology-Python-package developers/forum for that.

Re: 0.5.4 Synology IPv6 servers add error

Posted: September 30th, 2010, 6:56 am
by eyerule
sander wrote: Yep. There it is:

Code: Select all

print socket.has_ipv6
>>> False
So, your Python does not do IPv6. As said, SABnzbd cannot solve that for you. You should contact the Synology/Synology-Python-package developers/forum for that.
Hi, I understand. Thanks for your support. I will try to get the package with a new version of python.

Thnx!