question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: from cocotb import simulator

See original GitHub issue

Just 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:closed
  • Created 3 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
tpamborcommented, May 15, 2020

cocotb_trace For the records here is a trace. It fails to load any dependencies in the libs folder

1reaction
eric-wiesercommented, May 15, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found