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

Issue importing Peeker with myhdl version 0.11.42 #8

Open
sophiasage opened this issue Jun 5, 2023 · 1 comment
Open

Issue importing Peeker with myhdl version 0.11.42 #8

sophiasage opened this issue Jun 5, 2023 · 1 comment

Comments

@sophiasage
Copy link

OS: Windows 10
MyHDL version: 0.11.42 (stable Master branch)
Python version: 3.11.3

Description: I just updated my version of myhdl using pip install git+https://github.com/myhdl/myhdl.git@master, and now I'm having trouble importing myhdlpeek. I'm working within jupyter-lab.

Reproducing the issue:

from myhdlpeek.myhdl import Peeker

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[13], line 1
----> 1 from myhdlpeek.myhdl import Peeker

File ~\AppData\Roaming\Python\Python311\site-packages\myhdlpeek\__init__.py:9
      5 from .pckg_info import version
      7 # If you just import top-level myhdlpeek, then you'll get the MyHDL version
      8 # of the Peeker. 
----> 9 from .myhdl import *

File ~\AppData\Roaming\Python\Python311\site-packages\myhdlpeek\myhdl\__init__.py:5
      1 # -*- coding: utf-8 -*-
      2 
      3 # Copyright (c) 2017-2020, XESS Corp. The MIT License (MIT).
----> 5 from .peeker import Peeker
      6 Peeker.config_defaults()
      8 from ..trace import *

File ~\AppData\Roaming\Python\Python311\site-packages\myhdlpeek\myhdl\peeker.py:12
     10 from future import standard_library
     11 from myhdl import EnumItemType, SignalType, always_comb, now
---> 12 from myhdl._compat import integer_types
     13 from myhdl.conversion import _toVerilog, _toVHDL
     15 from ..peekerbase import *

ModuleNotFoundError: No module named 'myhdl._compat'
@sophiasage
Copy link
Author

I tried commenting line 12 in peeker.py, and I was able to create a waveform without errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant