Closed mattkeanny closed 1 year ago
Hi @mattkeanny, thank you very much for reporting this.
Could you confirm which version of ConfigUpdater
do you have installed in your environment?
Is there any chance that updating ConfigUpdater
to its latest version prevents the error from happening?
If the version of ConfigUpdater
is already >=3.0 and the error is still happening, could you please share with us a minimal reproducer? Unfortunately, I cannot replicate the error in my Ubuntu 20.04.5 LTS machine with the following experiment:
cd /tmp
rm -rf /tmp/testenv
virtualenv -p python3.10 /tmp/testenv
/tmp/testenv/bin/python -m pip install -U pip
/tmp/testenv/bin/python -m pip install 'pyscaffold==4.2.3' 'pyscaffoldext-markdown==0.5'
rm -rf /tmp/myproj
/tmp/testenv/bin/putup myproj --markdown
# done! 🐍 🌟 ✨
# myproj
# ├── AUTHORS.md
# ├── CHANGELOG.md
# ├── CONTRIBUTING.md
# ├── LICENSE.txt
# ├── README.md
# ├── docs
# │ ├── Makefile
# │ ├── _static
# │ ├── authors.md
# │ ├── changelog.md
# │ ├── conf.py
# │ ├── contributing.md
# │ ├── index.md
# │ ├── license.md
# │ ├── readme.md
# │ └── requirements.txt
# ├── pyproject.toml
# ├── setup.cfg
# ├── setup.py
# ├── src
# │ └── myproj
# │ ├── __init__.py
# │ └── skeleton.py
# ├── tests
# │ ├── conftest.py
# │ └── test_skeleton.py
# └── tox.ini
Technical side note:
pyscaffoldext-markdown==0.5
has a dependency on pyscaffold>=4.1rc1,<5.0a0
pyscaffold>=4.1
has a dependency on configupdater>=3.0,<4
ConfigUpdater>=3.0
, Option.__init__
only has 1 positional argument (key
), both value
and container
are optional and set by default to None
.In theory, updating pyscaffold
and pyscaffoldext-markdown
would result in an update of ConfigUpdater
to version 3.0 or later, which should not cause the error we are seeing in the traceback.
Installed version of ConfigUpdater is 3.1.1 Can I help dig further?
I must say I am not running in a virtual env. Will try that.
Can I help dig further?
If you could share with us a minimal example (top-to-bottom) like the one I am showing in https://github.com/pyscaffold/pyscaffoldext-markdown/issues/55#issuecomment-1262520506 that results in the error you are experiencing, that would be super helpful.
when executing as you suggested in #55, the extension works flawless. Guess I have to track it down elsewhere. Will post in case I found the root cause. Thanks for your help.
issue solved: I suspect I had a mess of incompatible dependencies, not clear how.
Solved it by
pip uninstall -y pyscaffold pyscaffoldext-markdown ConfigUpdater
pip install --user --upgrade pyscaffold pyscaffoldext-markdown
Thanks again for the help.
Thank you very much for confirming @mattkeanny.
For the time being I will close this issue, but if you find something else, please let me know and I can re-open it.
Description of your problem
Please provide a minimal, self-contained, and reproducible example.
Please provide the full traceback.
Please provide any additional information below. When I downgrade pyscaffoldext-markdown to 0.4.1 all works fine:
Versions and main components