Coder Social home page Coder Social logo

Comments (5)

tdicola avatar tdicola commented on July 28, 2024

Oh thanks for grabbing the details on the failure--yeah I don't think I've tested this one with Python 3.4 so stick with python 2.7 for now. I'll try to take a look later this week though to see why the bit shift isn't valid in 3.4. Thanks!

from adafruit_python_bmp.

loanlaux avatar loanlaux commented on July 28, 2024

Yep, switched my project to Python 2.7 for now. Thank you.

from adafruit_python_bmp.

anthonyscorrea avatar anthonyscorrea commented on July 28, 2024

I believe I found the issue, not sure exactly what the best fix is, though. Definitely a problem with the result of the addition of two ints becoming a float. Then the bitwise operators fail.

Changing it like below definitely fixes the issue. I have been testing with the debugging values, will test again with the actual unit when I get home. (There are three other instances where int addition yields a float)

image

Not sure exactly what the best practice fix is, but I will be more than happy to make this change.

from adafruit_python_bmp.

dinomite avatar dinomite commented on July 28, 2024

@campenberger's fix in pull request #8 fixes this.

from adafruit_python_bmp.

tdicola avatar tdicola commented on July 28, 2024

Oh this should be resolved now, a few months ago we did a pass adding python 2 and 3 support to all the libs. Can see more details here: https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code Thanks!

from adafruit_python_bmp.

Related Issues (14)

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.