devbisme / myhdlpeek

Monitor and display signal waveforms from your MyHDL/nMigen digital design in a Jupyter notebook.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue importing Peeker with myhdl version 0.11.42

sophiasage opened this issue · comments

commented

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'
commented

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