Code Monkey home page Code Monkey logo

Comments (8)

MattEttus avatar MattEttus commented on June 10, 2024 1

Apparently Python 10 moved Mapping. The solution is here:

https://stackoverflow.com/questions/69381312/in-vs-code-importerror-cannot-import-name-mapping-from-collections

from sphinx-wavedrom.

wallento avatar wallento commented on June 10, 2024 1

Thanks, looks easy to solve an will pick it up asap.

from sphinx-wavedrom.

wallento avatar wallento commented on June 10, 2024 1

Just replaced it with the boilerplate implementation of the AttrDict feature we needed.

Can you please try locally:

pip install git+https://github.com/wallento/wavedrompy.git@05b1220f870ae513b7a4d4dc73ca4741c66a6c08

I will create a release once confirmed, @bavovanachte

from sphinx-wavedrom.

jannismain avatar jannismain commented on June 10, 2024

Seems to be already reported here: wallento/wavedrompy#32

I first didn't see that wavedrom(py) is separate from this project.

from sphinx-wavedrom.

wallento avatar wallento commented on June 10, 2024

Is not that easy to solve, but I am still at it, hope to land it this week.

from sphinx-wavedrom.

bavovanachte avatar bavovanachte commented on June 10, 2024

@wallento Haven't checked the output in detail, but at least the Extension error has disappeared. Thanks for the fix!

$ python --version
Python 3.10.3+




$ make -C example clean dirhtml WAVEDROM_HTML_NOJSINLINE=1
make: Entering directory 'sphinx-wavedrom/example'
rm -rf build/*
sphinx-build -b dirhtml -d build/doctrees  -W -D wavedrom_html_jsinline=0 source build/dirhtml
Running Sphinx v4.4.0

Extension error:
Could not import extension sphinxcontrib.wavedrom (exception: cannot import name 'Mapping' from 'collections' (/home/bvn/.pyenv/versions/3.10-dev/lib/python3.10/collections/__init__.py))
make: *** [Makefile:70: dirhtml] Error 2
make: Leaving directory 'sphinx-wavedrom/example'




$ pip install git+https://github.com/wallento/wavedrompy.git@05b1220f870ae513b7a4d4dc73ca4741c66a6c08
Looking in indexes: https://pypi.org/simple, https://dsl.colo.elex.be/artifactory/api/pypi/pypi-release/simple
Collecting git+https://github.com/wallento/wavedrompy.git@05b1220f870ae513b7a4d4dc73ca4741c66a6c08
  Cloning https://github.com/wallento/wavedrompy.git (to revision 05b1220f870ae513b7a4d4dc73ca4741c66a6c08) to /tmp/pip-req-build-i9_c6584
  Running command git clone --filter=blob:none --quiet https://github.com/wallento/wavedrompy.git /tmp/pip-req-build-i9_c6584
  Running command git rev-parse -q --verify 'sha^05b1220f870ae513b7a4d4dc73ca4741c66a6c08'
  Running command git fetch -q https://github.com/wallento/wavedrompy.git 05b1220f870ae513b7a4d4dc73ca4741c66a6c08
  Running command git checkout -q 05b1220f870ae513b7a4d4dc73ca4741c66a6c08
  Resolved https://github.com/wallento/wavedrompy.git to commit 05b1220f870ae513b7a4d4dc73ca4741c66a6c08
  Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for wavedrom, since package 'wheel' is not installed.
Installing collected packages: wavedrom
  Attempting uninstall: wavedrom
    Found existing installation: wavedrom 2.0.3.post2
    Uninstalling wavedrom-2.0.3.post2:
      Successfully uninstalled wavedrom-2.0.3.post2
  Running setup.py install for wavedrom ... done
Successfully installed wavedrom-2.0.3.post3.dev16+g05b1220




$ make -C example clean dirhtml WAVEDROM_HTML_NOJSINLINE=1
make: Entering directory 'sphinx-wavedrom/example'
rm -rf build/*
sphinx-build -b dirhtml -d build/doctrees  -W -D wavedrom_html_jsinline=0 source build/dirhtml
Running Sphinx v4.4.0
making output directory... done
building [mo]: targets for 0 po files that are out of date
building [dirhtml]: targets for 1 source files that are out of date
updating environment: [new config] 1 added, 0 changed, 0 removed
reading sources... [100%] index                                                                                                                                                                                          
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index                                                                                                                                                                                           
generating indices... genindex done
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in build/dirhtml.

Build finished. The HTML pages are in build/dirhtml.

from sphinx-wavedrom.

amykyta3 avatar amykyta3 commented on June 10, 2024

@wallento - Confirmed your fix works and generated output looks correct.

from sphinx-wavedrom.

jannismain avatar jannismain commented on June 10, 2024

can confirm it is working on my end as well...

from sphinx-wavedrom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.