Code Monkey home page Code Monkey logo

Comments (14)

davelopez01 avatar davelopez01 commented on August 15, 2024 3

To update, we (LabJack) changed our plans and are now adding official Python 3 support to LabJackPython. There is no time frame on completion, but I have started pushing updates to the repository.

from labjackpython.

davelopez01 avatar davelopez01 commented on August 15, 2024

Hello,

Currently there are no plans for LabJackPython Python 3 support from LabJack. However there are a couple of forks with it:

https://github.com/hardbyte/LabJackPython3
https://github.com/sultanqasim/LabJackPython

from labjackpython.

mpastell avatar mpastell commented on August 15, 2024

Thanks for the quick response. I'll look into the forks. I also hope you'll consider official support in the future.

from labjackpython.

aleifer avatar aleifer commented on August 15, 2024

Just chiming in to say, an official port would be greatly appreciated. Thanks.

from labjackpython.

davelopez01 avatar davelopez01 commented on August 15, 2024

We might look into porting LabJackPython to Python 3.0 in the future, but at the moment we have no plans on when that will be.

For our new cross-platform Modbus driver, LJM, we developed a Python wrapper with Python 2.5, 2.5, 2.7 and 3.x support. Currently that driver only supports the LabJack T7 and Digit, and we plan on it supporting future devices:

http://labjack.com/support/ljm/examples/python

from labjackpython.

mnaberez avatar mnaberez commented on August 15, 2024

@davelopez01 @rolsen I have been submitting pull requests with small, focused changes that I hope will be easy for you to review and merge (e.g. #37, #38, #40, #41). These changes are starting to fix some of the Python 3 issues without breaking the existing Python 2.5-2.7 support. Since 899470c, setup.py will refuse to install on versions that aren't officially supported (including Python 3). This will allow incremental work to be done and released without any change to your supported version policy.

from labjackpython.

danwoodard avatar danwoodard commented on August 15, 2024

Can LJM be extended to support the U6?

from labjackpython.

rolsen avatar rolsen commented on August 15, 2024

@danwoodard, no, LJM cannot be extended to support the U6, as much as we'd like to. The APIs of LJM and the U6 are not compatible.

from labjackpython.

k7hoven avatar k7hoven commented on August 15, 2024

The scientific community has been fast in switching to Python 3. For us, the only reason left for using Python 3 and 2 in parallel is LabJack. How about official support?

from labjackpython.

davelopez01 avatar davelopez01 commented on August 15, 2024

At this time, there are still no plans to add official Python 3 support to LabJackPython. LabJackPython is for the LabJack U12, U3, U6 and UE9.

For the LabJack T7, Digit and upcoming devices there is the LJM Python interface which does support Python 3.

from labjackpython.

shraken avatar shraken commented on August 15, 2024

any update on official python3 support? sultanqasim fork works on my mac osx and raspberry pi systems but is 220 commits behind labjack master at this point.

from labjackpython.

davelopez01 avatar davelopez01 commented on August 15, 2024

A lot of functionality has been updated, but we have yet to do a finalized test for Python 3 compatibility, a couple of examples still need to be updated and we are considering some additional changes I mention here:

#93

Python 3 development has been delayed recently as we are working on a new LabJack product release.

Try the current development version here on GitHub and let us know if you run into any issues.

from labjackpython.

ygaudet avatar ygaudet commented on August 15, 2024

All, I'm running into a problem, in Python3 using a single counter for a Flowmeter.
When reading the counter using d.getFeedback(u3.Counter0(Reset = False)) from the u3.py documented example.
We get a TypeError: a bytes-like object is required, not 'str' from return unpack('<I', inStr)[0]
at line 2784 of u3.py
I tried to help the unpacking by using return unpack('<I', bytes(inStr, 'utf8') )[0] but that then fails randomly with struct.error: unpack requires a bytes object of length 4.
For what ever reason sometime the bytes(inStr, 'utf8') as a len of 5?
Any idea would help.

from labjackpython.

davelopez01 avatar davelopez01 commented on August 15, 2024

@ygaudet I pushed some Feedback Counter changes to fix the Python 3 error. I didn't see any issues with the Counter value being 5-bytes. Let me know if you run into further issues.

from labjackpython.

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.