Giter Club home page Giter Club logo

Comments (5)

kodonnell avatar kodonnell commented on June 16, 2024

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.

matteing avatar matteing commented on June 16, 2024

Also experiencing this issue.

from mate3.

maddiebeaton avatar maddiebeaton commented on June 16, 2024

I can confirm it works on Python 3.7 but I get the same error on Python 3.8

from mate3.

rrooggiieerr avatar rrooggiieerr commented on June 16, 2024

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.

BrettLHolmes avatar BrettLHolmes commented on June 16, 2024

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)

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.