ImportError: from cocotb import simulator
See original GitHub issueJust pulled the latest from master and build is broken on windows mingw 32-bit. All is working fine using version b08bf0ce74144886c17e6f824438890d08503a71 Could be related to this change: https://github.com/cocotb/cocotb/commit/3a0bf9460515ae0c2269890b75ddbeaa80085cff
Here’s a log when running the adder example:
Traceback (most recent call last):
File "C:\msys32\mingw32\bin\cocotb-config-script.py", line 11, in <module>
load_entry_point('cocotb', 'console_scripts', 'cocotb-config')()
File "C:/msys32/mingw32/lib/python3.8/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "C:/msys32/mingw32/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2859, in load_entry_point
return ep.load()
File "C:/msys32/mingw32/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2450, in load
return self.resolve()
File "C:/msys32/mingw32/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2456, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "C:/work/cocotb/cocotb/__init__.py", line 42, in <module>
import cocotb.handle
File "C:/work/cocotb/cocotb/handle.py", line 36, in <module>
from cocotb import simulator
ImportError: DLL load failed while importing simulator: The specified module could not be found.
Makefile:47: /Makefile.sim: No such file or directory
make: *** No rule to make target '/Makefile.sim'. Stop.
Any suggestions?
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (19 by maintainers)
Top Results From Across the Web
Troubleshooting — cocotb 1.7.2 documentation
Using import pdb; pdb.set_trace() directly is also frequently not possible, due to the way that simulators interfere with stdin .
Read more >cocotb/Lobby - Gitter
We have everything working with cocotb with scalar values but I'm struggling to understand how cocotb/VPI expects to access arrays. In our simulator,...
Read more >https://sid.ethz.ch/debian/cocotb/cocotb-1.3.2/coc...
ANSI as ANSI from cocotb.log import SimLog from cocotb.result import ... module_name) raise ImportError("Failed to find requested test %s" % test) self.
Read more >PoC — The PoC-Library 1.1.2 documentation
Solution import Repository from Simulator import Simulator as BaseSimulator, SimulatorException, ... help="Simulate a PoC Entity with Cocotb and QuestaSim.
Read more >Python SimLog.critical Examples, cocotblog.SimLog.critical Python ...
Here we accept callbacks from the simulator and schedule the appropriate ... if isinstance(coroutine, cocotb.decorators.coroutine): self.log.critical( ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the records here is a trace. It fails to load any dependencies in the libs folder
Perhaps the thing to do for the imminent 1.4 release is to just set
PATH
on all python versions, and come back to this later.