Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
woobin3069 opened this issue Mar 8, 2021 · 4 comments

Comments

@woobin3069
Copy link

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.

@mwatts15
Copy link
Contributor

mwatts15 commented Mar 8, 2021

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.

@woobin3069
Copy link
Author

woobin3069 commented Mar 9, 2021

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

@pgleeson
Copy link
Member

@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?

@clausagerskov
Copy link

clausagerskov commented Mar 15, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants