ChristianTremblay / pyhaystack

Pyhaystack is a module that allow python programs to connect to a haystack server project-haystack.org. Connection can be established with Niagara Platform running the nhaystack, Skyspark and Widesky. For this to work with Anaconda IPython Notebook in Windows, be sure to use "python setup.py install" using the Anaconda Command Prompt in Windows. If not, module will be installed for System path python but won't work in the environment of Anaconda IPython Notebook. You will need hszinc 1.3+ for this to work.
Apache License 2.0
74 stars 32 forks source link

Pint error? #113

Open brandonfwl opened 1 year ago

brandonfwl commented 1 year ago

First time attempting to use pyhaystack. When connecting to an n4 instance with example usage pyhastack.connect I get an error from pint.

pint.delegates.txt_defparser.common.DefinitionSyntaxError: Cannot define '%' (UnitDefinition): is not a valid unit name (must follow Python identifier rules) 1,0-1,16 % = [] = percent

sjlongland commented 1 year ago

This is actually an issue with a dependency: hszinc.

https://github.com/widesky/hszinc/issues/38

brandonfwl commented 1 year ago

Installed pint==0.19.2 and that seemed to resolve the issue. Any plans to resolve the issue?

sjlongland commented 1 year ago

On Mon, 09 Jan 2023 15:32:39 -0800 Brandon Fowler @.***> wrote:

Installed pint==0.19.2 and that seemed to resolve the issue. Any plans to resolve the issue?

When I get a moment at work to work on hszinc, yes I do plan to investigate the issue. Sadly, it's not ${MEGACORP} with a workforce of millions to work on this stuff, it's individuals with back-logs tall enough to require warning lights to warn flying aircraft at night.