Python2.7 in 8.95.1

  • Hi!

    There are differences in the modules of python2.7 in Generic and Odroid in 8.95.001:

    I made a python-script with module "urllib" and call "urllib.urlopen". I've used this without problems since version 8.1.0 in Generic, Raspberry and later in Odroid.

    Now in 8.95.001:

    In Odroid all works fine again with this code, but in Generic there are errors when I'm using this:

    ________________________________________________________________

    import urllib

    .

    .

    .

    updsite = urllib.urlopen(updsiteurl) **** Note: This is as an example *****

    File "/usr/lib/python2.7/urllib.py", line 87, in urlopen

    File "/usr/lib/python2.7/urllib.py", line 213, in open

    File "/usr/lib/python2.7/urllib.py", line 350, in open_http

    File "/usr/lib/python2.7/httplib.py", line 1038, in endheaders

    File "/usr/lib/python2.7/httplib.py", line 882, in _send_output

    File "/usr/lib/python2.7/httplib.py", line 844, in send

    File "/usr/lib/python2.7/httplib.py", line 821, in connect

    File "/usr/lib/python2.7/socket.py", line 557, in create_connection

    IOError: [Errno socket error] [Errno -2] Name or service not known

    ________________________________________________________________

    Can you fix these please?

    Thanks!

    Edited 2 times, last by DJProject (December 31, 2018 at 4:00 PM).

  • If I understand you correctly, your python script works on Odroid and RPi but not in Generic.

    Can you provide the full python script and a complete output of the error.

  • I'm sure your DNS resolution doesn't work. Can you try if ping of this address works? Probably not. So you need to fix that first (like adding DNS server in LE settings).