-
Notifications
You must be signed in to change notification settings - Fork 17
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
ImportError: cannot import name 'DocstringAttr' from 'docstring_parser.common' #162
Comments
Hi @magnussommarsjo , maybe it's best to uninstall |
Removing by simply Why I ending up with both is that I have another dependency on
|
Here is a minimal code sample that will recreate this issue using conda. conda create -n testenv python=3.9 -y
conda activate testenv
pip install kfp pydoclint
pydoclint . |
Could you run pydoclint in a separate environment? My earlier suggestion to uninstall There is unfortunately not a perfect fix for this situation. I prefer not to change the module name of the forked library (otherwise keeping up with the latest changes on the original repo would be difficult). And in the original repo, I reported a bug (Issue #81 there) but there was no response (which is why I had to fork it). |
Well I can run it in another environment. But that is not a great workflow for me or my team. This would basically mean that as soon as I need to commit and run "pre-commit" where my linting checks are run. I'll then need to temporarily switch environment and then back again when I need to run testing with pytest. I understand that this issue might be hard to fix. But anyhow I wanted to raise it so that you are aware of it. 😉 |
May I see your tox or pre-commit config? I've always been running pydoclint in a dedicated env in And btw I just found a workaround:
The key is to split up |
From time to time I run into the following issue
This is even though I have the
docstring_parser_fork
installed.$ pip list | grep docstring_parser docstring_parser 0.16 docstring_parser_fork 0.0.9
Is this due to that pydoclint is using the 'regular' version instead of the fork in this case?
The text was updated successfully, but these errors were encountered: