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

neurondm compiled location #67

Open
tgbugs opened this issue Jun 17, 2019 · 1 comment
Open

neurondm compiled location #67

tgbugs opened this issue Jun 17, 2019 · 1 comment

Comments

@tgbugs
Copy link
Owner

tgbugs commented Jun 17, 2019

Will not work at all for system installs. Need some other way to deal with this. This will be tricky to configure.

---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-9-5b95e28b2e2a> in <module>
      1 # write a python file that has the same name as the file in cell 1
      2 # but with python safe separators and a .py extension
----> 3 config.write_python()

/tmp/release-testing/neurondm-0.1.0/neurondm/core.py in write_python(self)
    657     def write_python(self):
    658         # FIXME hack, will write other configs if call after graphbase has switched
--> 659         graphBase.write_python()
    660 
    661     def load_existing(self):

/tmp/release-testing/neurondm-0.1.0/neurondm/core.py in write_python()
   1091         # the python before potentially opening (and thus erasing) the
   1092         # original file from which some of the code was sourced
-> 1093         with open(graphBase.filename_python(), 'wt') as f:
   1094             f.write(python)
   1095 

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/neurondm/compiled/neuron_lang_notebook.py'

@tgbugs
Copy link
Owner Author

tgbugs commented Jul 16, 2022

The solution is to completely decouple the core representation from the serialization step, so that the core doesn't need to know anything about it. We might consider exploring namespace packages so that users don't have to create new modules, but can somehow add to the neurondm.compiled namespace as needed.

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

1 participant