Giter Club home page Giter Club logo

Comments (6)

KonradIT avatar KonradIT commented on June 6, 2024

update your python3 to 3.6.* (recommended target for this API)

from gopro-py-api.

Berryfier avatar Berryfier commented on June 6, 2024

Thank you KnoradIT. I'll close this whilst I do the python update and re-open if the problem persists.

from gopro-py-api.

Berryfier avatar Berryfier commented on June 6, 2024

Still awaiting the python update for the pi, but I discovered the following workaround for pair.
In file GoProCamera.py at
line 367. add _ to make _context
lines 369 and 371. add _ to make context=_context

from gopro-py-api.

KonradIT avatar KonradIT commented on June 6, 2024

So like this?

_context = ssl._create_unverified_context()
ssl._create_default_https_context = ssl._create_unverified_context
response_raw = urllib.request.urlopen('https://' + self.ip_addr + '/gpPair?c=start&pin=' + code + '&mode=0', context=_context).read().decode('utf8')
print(response_raw)
response_raw = urllib.request.urlopen('https://' + self.ip_addr + '/gpPair?c=finish&pin=' + code + '&mode=0', context=_context).read().decode('utf8')

from gopro-py-api.

Berryfier avatar Berryfier commented on June 6, 2024

Exactly!
My GoPro is paired and all is working perfectly now (Pi is currently at Python 3.5.3).
Thanks again for making your code available.

from gopro-py-api.

KonradIT avatar KonradIT commented on June 6, 2024

Cool this will be added in the next release.

from gopro-py-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.