You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the following command to [initiate a definition project](https://alab-management.readthedocs.io/en/latest/setup.html): python -m alabos init
I get the following error:
File "/Users/HPSahasrabuddhe/config_files/alabos/__init__.py", line 15, in <module>
add_device(Furnace(name="furnace", address="128.3.19.20"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Can't instantiate abstract class Furnace with abstract methods connect, disconnect
@abstractmethod
def connect(self):
"""
Connect to any devices here. This will be called by alabos to make connections to devices at the appropriate time.
This method must be defined even if no device connections are required! Just return in this case.
"""
raise NotImplementedError()
@abstractmethod
def disconnect(self):
"""
Disconnect from devices here. This will be called by alabos to release connections to devices at the appropriate time.
This method must be defined even if no device connections are required! Just return in this case.
"""
raise NotImplementedError()
Should the above two methods be instantiated while defining the Furnace class?
Maybe I'm missing something here.
The text was updated successfully, but these errors were encountered:
python -m alabos init has not been updated for a while, which means it cannot support some of the latest APIs. We will update the document and fix these issues soon. For the temporary solution, you can start from alab_one_sim which has already had a configuration file written.
When running the following command to
[initiate a definition project](https://alab-management.readthedocs.io/en/latest/setup.html)
:python -m alabos init
I get the following error:
Upon checking the Furnace class, which inherits from the BaseDevice class, it appears that the issue is in the following two methods:
Should the above two methods be instantiated while defining the Furnace class?
Maybe I'm missing something here.
The text was updated successfully, but these errors were encountered: