Comments (5)
Thanks for trying it out @rtveng ! I'm pretty sure this is something that happens in Python 3.8/3.9 - can you try on Python 3.7?
from mate3.
Also experiencing this issue.
from mate3.
I can confirm it works on Python 3.7 but I get the same error on Python 3.8
from mate3.
I've got the same problem.
Update 24 Jan 2022:
Seems that pip install mate3
installs an old version of the mate3 package which doesn't include the Python 3.8/3.9 fixes
pip show mate3
output:
Name: mate3
Version: 0.6.2
Summary: Outback Mate3s Python Library
Home-page: https://github.com/adamcharnock/mate3/
Author: Adam Charnock
Author-email: [email protected]
License:
Location: /Users/rogier/Library/Python/3.9/lib/python/site-packages
Requires: fixedint, loguru, pymodbus
Required-by:
from mate3.
Hi All
I see this Code was done some time ago and I was trying to run it on a Python 3.11 (on a Mac) and get the same issue as for version 3.8 and version 3.9 and before I start digging into this further wanted to see if any work was being done else where to resolve this or any advice for me. If this change here does resolve the pythod version issue then I need to figure out how to install it over the standard pip install mate3
PS
pip show mate3
Name: mate3
Version: 0.6.2
Summary: Outback Mate3s Python Library
Home-page: https://github.com/adamcharnock/mate3/
Author: Adam Charnock
Author-email: [email protected]
License:
Location: /opt/homebrew/lib/python3.11/site-packages
Requires: fixedint, loguru, pymodbus
Required-by:
the error
mate3
Traceback (most recent call last):
File "/opt/homebrew/bin/mate3", line 5, in <module>
from mate3.main import main
File "/opt/homebrew/lib/python3.11/site-packages/mate3/main.py", line 13, in <module>
from mate3.api import Mate3Client
File "/opt/homebrew/lib/python3.11/site-packages/mate3/api.py", line 8, in <module>
from mate3.devices import DeviceValues
File "/opt/homebrew/lib/python3.11/site-packages/mate3/devices.py", line 10, in <module>
from mate3.sunspec.models import (
File "/opt/homebrew/lib/python3.11/site-packages/mate3/sunspec/models.py", line 22, in <module>
class CCconfigFaultsFlags(BitfieldDescriptionMixin, IntFlag):
File "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py", line 489, in __prepare__
member_type, first_enum = metacls._get_mixins_(cls, bases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py", line 958, in _get_mixins_
member_type = mcls._find_data_type_(class_name, bases) or object
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py", line 998, in _find_data_type_
raise TypeError('too many data types for %r: %r' % (class_name, data_types))
TypeError: too many data types for 'CCconfigFaultsFlags': {<class 'mate3.sunspec.fields.BitfieldDescriptionMixin'>, <class 'int'>}
from mate3.
Related Issues (20)
- All "N/A" ports, and no devices appearing in mate3_write --list-fields other than Mate HOT 3
- OutBack System Control Block - zero value for some registries HOT 1
- client.read() - help needed HOT 10
- Developer docs HOT 3
- Bugs in some Outback fields?
- On write, fields are still marked as dirty HOT 2
- Clearer outputs for different field types in the CLI and in a JSON export HOT 7
- Use native int to_bytes / from_bytes instead of FixedInt HOT 1
- Add pytest running as part of Github PRs etc. HOT 1
- Store raw registers in field value
- Tidy up the use of `raw_value`
- export to json not working HOT 2
- [question] Performance Speed HOT 3
- Use pymodbus decoding
- Poetry install error
- How to write fields with mate3 cli? HOT 2
- Using the library (enhancement)
- Read & export all data in 0.6.2
- Mate3Parser sched_x_ac_mode - disabled mode can not be set HOT 14
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 mate3.