Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. chuckloyola
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    chuckloyola

    @chuckloyola

    0
    Reputation
    7
    Posts
    585
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    chuckloyola Follow

    Best posts made by chuckloyola

    This user hasn't posted anything yet.

    Latest posts made by chuckloyola

    • SSL Error (known SSL OSX issue?)

      trying to run this code:

      import urllib.request

      req = urllib.request.Request('http://www.python.org')
      with urllib.request.urlopen(req) as response:
      the_page = response.read()
      print(the_page)

      will get me:

      Traceback (most recent call last):
      File "urllib/request.pyc", line 1318, in do_open
      File "http/client.pyc", line 1239, in request
      File "http/client.pyc", line 1285, in _send_request
      File "http/client.pyc", line 1234, in endheaders
      File "http/client.pyc", line 1026, in _send_output
      File "http/client.pyc", line 964, in send
      File "http/client.pyc", line 1400, in connect
      File "ssl.pyc", line 407, in wrap_socket
      File "ssl.pyc", line 814, in init
      File "ssl.pyc", line 1068, in do_handshake
      File "ssl.pyc", line 689, in do_handshake
      ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "<untitled>", line 4, in <module>
      File "urllib/request.pyc", line 223, in urlopen
      File "urllib/request.pyc", line 532, in open
      File "urllib/request.pyc", line 642, in http_response
      File "urllib/request.pyc", line 564, in error
      File "urllib/request.pyc", line 504, in _call_chain
      File "urllib/request.pyc", line 756, in http_error_302
      File "urllib/request.pyc", line 526, in open
      File "urllib/request.pyc", line 544, in _open
      File "urllib/request.pyc", line 504, in _call_chain
      File "urllib/request.pyc", line 1361, in https_open
      File "urllib/request.pyc", line 1320, in do_open
      urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)>

      runs fine on my local python

      reference (relevant?):
      http://www.cdotson.com/2017/01/sslerror-with-python-3-6-x-on-macos-sierra/

      why am i doing this in drawbot?
      trying to get my students to get data from public APIs to generate text/images and post to twitter.

      i could:

      install drawbot as a module?
      roll my own version?

      posted in Bugs
      chuckloyola
      chuckloyola
    • RE: can't fetch image from url (python3 version)

      @justvanrossum ok so, no idea what has changed, but after i re-downloaded and reinstalled the same Py3 app. code runs fine now. screencap

      posted in Bugs
      chuckloyola
      chuckloyola
    • RE: can't fetch image from url (python3 version)

      @justvanrossum hmm ... the latest DrawbotPy3 version on the website is 3.113. just downloaded it again, to make sure (screenshot) though it does tell me i'm on 3.114 when i check for updates from within the app.

      posted in Bugs
      chuckloyola
      chuckloyola
    • RE: can't fetch image from url (python3 version)

      @justvanrossum actually, on 3.114 Python 2 code runs fine with the jpeg, I assumed it also had to do with not finding the image. apologies for the confusion.

      posted in Bugs
      chuckloyola
      chuckloyola
    • RE: can't fetch image from url (python3 version)

      @justvanrossum just tried the Python 2 (3.114) version with a different url and same problem.

      code:

      image('https://lumiere-a.akamaihd.net/v1/images/aliceinwonderland_-yes_celebrate_bc506b50.gif', (100,100))
      

      output:

      gifsicle: /v1/images/aliceinwonderland_-yes_celebrate_bc506b50.gif: No such file or directory
      Traceback (most recent call last):
        File "drawBot/ui/drawBotController.pyc", line 120, in createContext
        File "drawBot/drawBotDrawingTools.pyc", line 120, in _drawInContext
        File "drawBot/context/baseContext.pyc", line 2249, in image
        File "drawBot/context/pdfContext.pyc", line 276, in _image
        File "drawBot/context/pdfContext.pyc", line 254, in _getImageSource
        File "drawBot/context/tools/gifTools.pyc", line 79, in gifFrameCount
        File "drawBot/context/tools/gifTools.pyc", line 61, in _explodeGif
        File "drawBot/misc.pyc", line 313, in executeExternalProcess
      RuntimeError: u'gifsicle' failed with error code 1
      
      posted in Bugs
      chuckloyola
      chuckloyola
    • RE: can't fetch image from url (python3 version)

      😞 DrawBotPy3 3.113

      posted in Bugs
      chuckloyola
      chuckloyola
    • can't fetch image from url (python3 version)

      code:

      image("http://networkcultures.org/entreprecariat/wp-content/uploads/sites/41/2018/01/teargun.jpg", (100,100))
      

      output:

      Traceback (most recent call last):
        File "drawBot/ui/drawBotController.pyc", line 120, in createContext
        File "drawBot/drawBotDrawingTools.pyc", line 120, in _drawInContext
        File "drawBot/context/baseContext.pyc", line 2252, in image
        File "drawBot/context/pdfContext.pyc", line 276, in _image
        File "drawBot/context/pdfContext.pyc", line 270, in _getImageSource
      drawBot.misc.DrawBotError: No image found at http://networkcultures.org/entreprecariat/wp-content/uploads/sites/41/2018/01/teargun.jpg
      

      also tried getting json from some open apis using urllib and got some SSL certificate errors

      posted in Bugs
      chuckloyola
      chuckloyola