cocotb: ImportError: from cocotb import simulator

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?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (19 by maintainers)

Commits related to this issue

Most upvoted comments

cocotb_trace 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.

On Windows, probably something like rpath can be done using manifest files. See https://bugs.python.org/issue35688#msg335667 for a solution for a similar issue.