Coder Social home page Coder Social logo

Comments (4)

jvanhoefer avatar jvanhoefer commented on September 22, 2024

The full error message reads:

2023-06-18 16:20:25.717 - amici.de_export - DEBUG - Finished compiling cpp code + (2.79E+01s)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3251, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 4, in
problem_benchmark_collection = importer_benchmark_collection.create_problem()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pypesto/petab/importer.py", line 679, in create_problem
objective = self.create_objective(**kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pypesto/petab/importer.py", line 413, in create_objective
model = self.create_model(force_compile=force_compile)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pypesto/petab/importer.py", line 279, in create_model
self.compile_model(**kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pypesto/petab/importer.py", line 345, in compile_model
amici.petab_import.import_model(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/amici/logging.py", line 198, in wrapper_timer
rval = func(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/amici/petab_import.py", line 707, in import_model_sbml
model_module = amici.import_model_module(model_name, model_output_dir)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/amici/init.py", line 187, in import_model_module
return importlib.import_module(module_name)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/Users/jvanhoefer/Dokumente/PhD/Projects/Temporal Uncertainties/amici_models/Brannmark_JBC2010/Brannmark_JBC2010/init.py", line 17, in
from .Brannmark_JBC2010 import *
File "/Applications/PyCharm Edu.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/jvanhoefer/Dokumente/PhD/Projects/Temporal Uncertainties/amici_models/Brannmark_JBC2010/Brannmark_JBC2010/Brannmark_JBC2010.py", line 13, in
from . import _Brannmark_JBC2010
ImportError: cannot import name '_Brannmark_JBC2010' from partially initialized module 'Brannmark_JBC2010' (most likely due to a circular import) (/Users/jvanhoefer/Dokumente/PhD/Projects/Temporal Uncertainties/amici_models/Brannmark_JBC2010/Brannmark_JBC2010/init.py)

from amici.

jvanhoefer avatar jvanhoefer commented on September 22, 2024

downgrading to 16.0 resolved the problem for the moment...

from amici.

dweindl avatar dweindl commented on September 22, 2024

Hi @jvanhoefer, can you please try manually deleting /Users/jvanhoefer/Dokumente/PhD/Projects/Temporal Uncertainties/amici_models/Brannmark_JBC2010/ before importing the model and see if it works then?

from amici.

dweindl avatar dweindl commented on September 22, 2024

Assuming this works now.

from amici.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.