Giter Site home page Giter Site logo

all-in-one error about enviroplus-python HOT 5 CLOSED

pimoroni avatar pimoroni commented on June 15, 2024
all-in-one error

from enviroplus-python.

Comments (5)

koaning avatar koaning commented on June 15, 2024

version information:

In [15]: sys.version                                                                                          
Out[15]: '3.5.3 (default, Jan 19 2017, 14:11:04) \n[GCC 6.3.0 20170124]'

from enviroplus-python.

makeupsomething avatar makeupsomething commented on June 15, 2024

I was able to fix this by converting the output to a string

decoded_output = output.decode("utf-8")
return float(decoded_output[decoded_output.index('=') + 1:decoded_output.rindex("'")])

from enviroplus-python.

cipy avatar cipy commented on June 15, 2024

@koaning your iPython is version 3.5.3

and Python3 doesn't seem to be supported yet, see issue #21

meaning some other parts of the code could blow up if Python3 support was not tested

from enviroplus-python.

kflmiami420 avatar kflmiami420 commented on June 15, 2024

Please can I get an estimated time this fix will be applied to the all_in_one_no_pm.py script so it can be run in python3 today is 08-17-2019

from enviroplus-python.

cipy avatar cipy commented on June 15, 2024

@kflmiami420 well, the solution is to append , universal_newlines=True to all Popen calls

see #24

from enviroplus-python.

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.