Comments (14)
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.
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.
Thanks for the quick response. I'll look into the forks. I also hope you'll consider official support in the future.
from labjackpython.
Just chiming in to say, an official port would be greatly appreciated. Thanks.
from labjackpython.
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.
@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.
Can LJM be extended to support the U6?
from labjackpython.
@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.
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.
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.
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.
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:
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.
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.
@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)
- liblabjackusb.so: undefined symbol: DigitalIO HOT 1
- reading zero values HOT 4
- Why does labjackpython package still enforce python=2.7? HOT 3
- NullHandleException() condition: None < int is syntax error HOT 2
- No examples for U12? HOT 3
- struct.pack error at low sample rates HOT 11
- I2C: not possible to wait for ACK HOT 3
- close() method does not release the device on Windows 10 HOT 3
- Output frequency on u3 HOT 1
- LabJack T7 Support HOT 3
- Some assistance needed with u3 and SPI HOT 1
- handling multiple labjacks on the same computer HOT 3
- writeAesStingRegisterRequest() uses undefined name TCP_HEADER HOT 2
- _openWirelessBridgeOnWindows() uses undefined names deviceType and handleOnly HOT 1
- i2c response handling differs on u6.py only HOT 1
- UE9.streamData() uses undefined name retResult HOT 1
- Index Error HOT 5
- Better packaging HOT 12
- Unable to find "labjackud" when running from Cygwin HOT 1
- SIGALRM in outputSinDac.py not found HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labjackpython.