Comments (8)
Apparently Python 10 moved Mapping. The solution is here:
from sphinx-wavedrom.
Thanks, looks easy to solve an will pick it up asap.
from sphinx-wavedrom.
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.
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.
Is not that easy to solve, but I am still at it, hope to land it this week.
from sphinx-wavedrom.
@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.
@wallento - Confirmed your fix works and generated output looks correct.
from sphinx-wavedrom.
can confirm it is working on my end as well...
from sphinx-wavedrom.
Related Issues (20)
- Make the wavedrom link configurable HOT 10
- Support for bit fields HOT 4
- Followup of #12: Fix wavedrom build in CI HOT 1
- No tag with id="pmx" found HOT 3
- Graph is not drawing without name HOT 2
- Unable to install: Issues in installing cairo dependency HOT 4
- Plugin does not work in combination with hieroglyph HOT 2
- Latest Wavedrom release (v2.0.0) broken with Sphinx v3.0 HOT 6
- Can you adjust the scale of live-rendered waveforms? HOT 7
- Add support for the wavedrom CLI HOT 8
- Consider adding the sphinx-extension GitHub topic HOT 1
- Release HOT 2
- Fall back to wavedrompy, or give more helpful error message HOT 4
- Question: What is the 'xcffib' dependency used for HOT 5
- Can this extension be marked parallel read and/or write safe? HOT 4
- wavedrom not working with make latexpdf HOT 6
- Relative paths for wavedrom-cli HOT 2
- Feature request - support .yaml files as well as .json files for input HOT 2
- Projects with sphinxcontrib.wavedrom extension fail to build on Mac with M2 chip HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sphinx-wavedrom.