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

Colab: 'biocrnpyler' is not defined, 'CRN.simulate_with_bioscrape_via_sbml()' returns 'NoneType' object #280

Open
HengyuWangWHY opened this issue Jul 5, 2024 · 2 comments

Comments

@HengyuWangWHY
Copy link

When I run the 'Lecture 2 Compiling CRNs Colab Notebook.ipynb' downloaded from YouTube, the 'CRN.simulate_with_bioscrape_via_sbml()' returns 'NoneType' object, which is not subscriptable.

The file contains more information about the bugs:
https://colab.research.google.com/drive/1032AsF34S4XggarQvWx8qHu_pJytFrwA?usp=sharing

@murrayrm
Copy link
Collaborator

murrayrm commented Jul 6, 2024

I was able to get the simulation examples in BioCRNpyler working under Python 3.12 (with Numpy 2.0) using BioSCRAPE PR #173.

@HengyuWangWHY: You might try installing that version of BioSCRAPE locally (or in Colab via a pip install of the branch used for the PR) and see if it solves your problem.

@ayush9pandey
Copy link
Collaborator

With biocircuits/bioscrape#173 now merged, you can now clone the latest Bioscrape code from https://github.com/biocircuits/bioscrape/

Can you confirm if this fixes your error @HengyuWangWHY ?

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

3 participants