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.

Cocotb 1.7.rc: cocotb-config

See original GitHub issue

I updated my Cocotb 1.6.2 to 1.7.rc with the following command: python3 -m pip install cocotb==1.7.rc2

Now if I call cocotb-config --makefiles (with or without any parameters), I get the following error message:


Traceback (most recent call last):
  File "/home/reto.meier/.pyenv/versions/3.10.1/bin/cocotb-config", line 5, in <module>
    from cocotb.config import main
  File "/home/reto.meier/.pyenv/versions/3.10.1/lib/python3.10/site-packages/cocotb/__init__.py", line 43, in <module>
    import cocotb.handle
  File "/home/reto.meier/.pyenv/versions/3.10.1/lib/python3.10/site-packages/cocotb/handle.py", line 39, in <module>
    from cocotb import simulator
ImportError: cannot import name 'simulator' from partially initialized module 'cocotb' (most likely due to a circular import) (/home/reto.meier/.pyenv/versions/3.10.1/lib/python3.10/site-packages/cocotb/__init__.py) 

How can I fix this? Do I need to do some cleanup after installing? Thank you for your help Kind regards

Reto

OS: CentOS 8 / 64bit Simulator 32bit Modelsim.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
themperekcommented, Oct 5, 2022

ImportError: cannot import name ‘simulator’ from partially initialized module ‘cocotb’ (most likely due to a circular import)

This can be solved with (in site-packages/cocotb) :

mv simulator.cpython-310-i386-linux-gnu.so simulator.cpython-310-x86_64-linux-gnu.so

🤷🏻

OS: CentOS 8 / 64bit Python: 3.10 / 32bit

0reactions
themperekcommented, Oct 6, 2022

I would be interested in seeing how Debian compiles their 32b python packages on a 64b multiarch system (it they provide python that way).

Ubuntu 20.04 works with CC="gcc -m32"

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing the Development Version - cocotb's documentation!
The development version of cocotb has different prerequisites than the stable version (see below). Namely, it requires the Python development headers and a ......
Read more >
cocotb - PyPI
cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python. ... cocotb 1.7.2. pip install cocotb
Read more >
cocotb, a coroutine based cosimulation library for ... - GitHub
cocotb, a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python - GitHub - cocotb/cocotb: cocotb, a coroutine based ...
Read more >
cocotb/Lobby - Gitter
@cocotb.coroutine def write(self, address, data, byte_enable=0b11111111, ... Trying to upgrade the same to cocotb 1.7.2 and it seems that test data is ...
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