Volue-Public / energy-mesh-python

A Python API able to communicate with Volue Energy's Mesh server.
Other
10 stars 0 forks source link

Error with Python 3.9 #505

Closed MinaTangenVolue closed 5 days ago

MinaTangenVolue commented 1 week ago

Mesh Python SDK version: 1.9.0.dev0 Mesh version: Mesh is 2.15.0+3 Python version: 3.9 / 3.11 Operating System (Windows, Ubuntu, etc.): Windows

As discussed with @arkadiuszlis

I tried running the example script search_calculation_expression.py (https://github.com/Volue-Public/energy-mesh-python/blob/master/src/volue/mesh/examples/search_calculation_expressions.py) on internal Volue machines

I get this error using Python 3.9:

File "(...) \AppData\Local\Programs\Python\Python39\lib\uuid.py", line 181, in __init__
    raise ValueError('bytes_le is not a 16-char string')
ValueError: bytes_le is not a 16-char string

After installing Python 3.11 I do not get this error. It says in the Python SDK documentation that Python 3.9 is supported

MinaTangenVolue commented 1 week ago

It works with Python 3.10

tnoczyns-volue commented 5 days ago

@MinaTangenVolue we'll need more info to get the repro on devs side. We'll contact you directly.

tnoczyns-volue commented 5 days ago

The root cause here was using "old" Mesh Python SDK together with Mesh 2.15 RC. The "old" Mesh Python SDK was installed only in Python 3.9 environment and was lacking: https://github.com/Volue-Public/energy-mesh-python/pull/473.

We confirmed with @MinaTangenVolue that after updating Mesh Python SDK to latest version, it works correctly.