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

RuntimeError: Issues initializing DEVSIM #2672

Open
smgitrep opened this issue Apr 14, 2024 · 1 comment
Open

RuntimeError: Issues initializing DEVSIM #2672

smgitrep opened this issue Apr 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@smgitrep
Copy link

I installed gdsfactory and ran the following code without any errors:

import sys
print(sys.version)
print(sys.executable)
import gdsfactory as gf
gf.config.print_version_plugins()

Then, I installed the plugins using: pip install "gdsfactory[full]" --upgrade. After running the same code mentioned above, I received the error shown below. Is it a bug? Should I ignore this error?

Searching DEVSIM_MATH_LIBS="libopenblas.dll;liblapack.dll;libblas.dll"
Loading "libopenblas.dll": MISSING DLL
Loading "liblapack.dll": MISSING DLL
Loading "libblas.dll": MISSING DLL
Error loading math libraries. Please install a suitable BLAS/LAPACK library and set DEVSIM_MATH_LIBS. Alternatively, install the Intel MKL.
Could not find Intel MKL. The maximum tested version is "mkl_rt.2.dll"
Windows returned error 126 while trying to load "libopenblas.dll"
Windows returned error 126 while trying to load "liblapack.dll"
Windows returned error 126 while trying to load "libblas.dll"


RuntimeError Traceback (most recent call last)
Cell In[1], line 6
3 print(sys.executable) # path to python.exe
5 import gdsfactory as gf
----> 6 gf.config.print_version_plugins() # determine gdsfactory version and installed plugins

File ~\AppData\Local\miniconda3\envs\gdsfactory\Lib\site-packages\gdsfactory\config.py:129, in print_version_plugins()
127 for plugin in plugins:
128 try:
--> 129 m = importlib.import_module(plugin)
130 try:
131 table.add_row(plugin, str(m.version), str(m.path))

File ~\AppData\Local\miniconda3\envs\gdsfactory\Lib\importlib_init_.py:126, in import_module(name, package)
124 break
125 level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)

File :1204, in _gcd_import(name, package, level)

File :1176, in find_and_load(name, import)

File :1147, in find_and_load_unlocked(name, import)

File :690, in _load_unlocked(spec)

File :940, in exec_module(self, module)

File :241, in _call_with_frames_removed(f, *args, **kwds)

File ~\AppData\Local\miniconda3\envs\gdsfactory\Lib\site-packages\devsim_init_.py:8
3 #TODO:
4 #https://stackoverflow.com/questions/6677424/how-do-i-import-variable-packages-in-python-like-using-variable-variables-i
5 #imported = getattr(import(package, fromlist=[name]), name)
7 if sys.version_info[0] == 3:
----> 8 from .devsim_py3 import *
9 from .devsim_py3 import version
10 else:

RuntimeError: Issues initializing DEVSIM.

@smgitrep smgitrep added the bug Something isn't working label Apr 14, 2024
@joamatab
Copy link
Contributor

joamatab commented Apr 15, 2024

there is a new devsim plugin coming soon

in the meantime we removed it from the gplugins docs

@simbilod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants