sibernetic icon indicating copy to clipboard operation
sibernetic copied to clipboard

Exception: The provided 'key_property' entry does not appear to be a property

Open woobin3069 opened this issue 3 years ago • 4 comments

Hello. I was running sibernetic_c302.py, but I got an error.

Sib_c302  >>> Cannot import c302!
Sib_c302  >>> Exception: The provided 'key_property' entry does not appear to be a property
Sib_c302  >>> Please set environment variable C302_HOME to point to the directory: CElegansNeuroML/CElegans/pythonScripts/c302!
Sib_c302  >>> 

So I set the environment variable to C:\Users\USER\AppData\Local\Temp\main_sim.py\c302\CElegansNeuroML\CElegans\pythonScripts\c302 but It doesn't work.

And I also searched about key_property error too, but there's nothing about it.

woobin3069 avatar Mar 08 '21 01:03 woobin3069

The error comes from owmeta-core or PyOpenWorm (you should only have one of these installed, depending on what version of c302 you're using), but I'm not sure how you get this error. What version of Python, owmeta-core or PyOpenWorm, and c302 are you using? You can get the version numbers for owmeta-core, PyOpenWorm, and c302 like this:

import PyOpenWorm
print(PyOpenWorm.__version__)
# OR 
import owmeta_core
print(owmeta_core.__version__)
import c302
print(c302.__version__)

May help to know as well what installation procedure you followed before running sibernetic_c302.py

@pgleeson @skhayrulin, please also have a look if you've seen this or know why it may manifest.

mwatts15 avatar Mar 08 '21 03:03 mwatts15

I'm using

0.11.3
0.14.0.dev20210305231944

But I got an error while checking the version of c302. Exception: The provided 'key_property' entry does not appear to be a property

It was unable to check the version of c302 with the code you provided, But Pycharm said I'm using 0.7.8 image

woobin3069 avatar Mar 09 '21 09:03 woobin3069

@woobin3069 The correct version of c302 is certainly 0.7.8. I had neglected to release the new version to pypi, but it's there now and you should be able to install it with just pip install c302. That should install the correct versions of owmeta/owmeta_core. You don't need to set the C302_HOME variable.

The best version of sibernetic to use is in here: https://github.com/openworm/sibernetic/tree/ow-0.9.1. Also ensure you're using python 3.

However, there are a lot of unknown issues with running the c302+Sibernetic on Windows, simply because not many of us use/test on that system. It could certainly be possible, but will be difficult for us to debug any issues.

Have you tried building the latest Docker image, as this is well tested now on Windows and includes the latest libraries?

pgleeson avatar Mar 10 '21 11:03 pgleeson

It is not recommended to use sibernetic on windows (natively) as the setting up of paths is a mess and the generation of neuron simulation files does not currently work out of the box.
Either use the docker image or WSL2 with Ubuntu 18.04 (20.04 seems to be more difficult to get to work)

clausagerskov avatar Mar 15 '22 10:03 clausagerskov