Heron-Repositories / Heron

A python only framework for connecting hardware and closing loops
MIT License
51 stars 6 forks source link

'Heron.gui.settings' has no attribute 'settings_dict' on windows with pip install #27

Open Iceweasle opened 2 weeks ago

Iceweasle commented 2 weeks ago

Hi there, I am very interested in using this framework. I am having a couple of issues. This issue is related to the pip install on a windows 10 machine. I am finding that the paramiko client fails when the settings_dict attribute is not getting set. Is there an easy fix for this?

\anaconda3\envs\NewPipHeron\Lib\site-packages\Heron\communication\sink_worker.py", line 206, in heartbeat_loop heartbeat_rate = settings.settings_dict['Operation']['HEARTBEAT_RATE'] ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'Heron.gui.settings' has no attribute 'settings_dict'

georgedimitriadis commented 2 weeks ago

Hi Iceweasle.

Thanks for the bug report. Try again (pip uninstall the old Heron and re install). The new version should have no problems with the settings. Let me know if it is ok and I will close the issue, otherwise I will have another look at it.

georgedimitriadis commented 2 weeks ago

Also, forgot to mention. pip uninstall will leave behind the Heron folder which needs deleting before reinstalling.