-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
TypeError: Can't instantiate abstract class DynamicRinohDistribution with... #389
Comments
On Linux:
|
I tried this outside the virtual environment .venv on Linux and and I get this:
This started happening to me when I use Poetry to update dependencies for my project (in the .venv). So this is "caused" by a newer dependency. Let me try to run this down. I can make PDF with these things, and witoout the stuff in my .venv. Annoying but I can at least make PDF now if I carefully keep my global site-packages as is. |
I also ran into this issue, after updating all dependencies in the venv of my project to their latest versions. Downgrading to rinohtype 0.5.3 solved the issue for me, though I haven't investigated why yet. I'm running Python 3.8.10. It's a small project. Here's a pip freeze:
Updating to rinohtype 0.5.4 from here triggers the error Edit: additionally tried updating to Python 3.11.1, and that runs the newest rinohtype version without any problems. I'll stick with that solution for now. |
I cloned the alpyca repository and did a
I was able to reproduce the issue by installing importlib-metadata. I'm afraid that its API changed again 😢 If you're running Python 3.9+, I think you should be able to uninstall it from your virtualenv. Related: sphinx-doc/sphinx#10157 |
Hi ! running into this aswell. Shouldn't we pin Line 90 in 370b5a5
For lost readers, I fixed my build by adding
in its requirements.txt |
I'm hesitatant to set version constraints on dependencies, since it could cause conflicts with other packages requiring a newer version in the future. I added NotImplementedError-throwing implementations for those abstract methods to avoid the crash. |
@BobDenny (in response to your removed comments) Great to read that you've been able to get around the problem! I wasn't very explicit in my last comment, but this problem was fixed in rinohtype and could have saved you some trouble. The fix is not yet available in a release, but it's easy enough to install the current development version (as described in the README): pip install https://github.com/brechtm/rinohtype/archive/refs/heads/master.zip P.S. There's no need to remove your comments. They could help other souls running into this issue :-) |
@calve nailed it. I had to revert importlib-metadata to a older version, and make a note to myself to avoid ever updating it to 6..x. I'm not big on development/experimental stuff. I'll watch for a production version. Thank you for the help. |
You shouldn't be too hesitant to run the development version. At this point, there's not much difference between the releases and the development version. They are more or less just development snapshots at arbitrary points in time. |
Is my understanding correct that "pip install rinohtype" is broken until the fix is released? |
@aut0 Yes, that is correct. And thank you for the reminder, I really should make a new release! :-) |
@aut0 Version 0.5.5 has finally landed! |
Is there an existing issue for this?
Sphinx or rinoh output
Source files
https://github.com/ASCOMInitiative/alpyca
Clone this, open shell into the virtual environment, type make html. By the way this identical message happens on Linux, so youj can clone it to a Linux machine though in my report it is Windows. Only the path changes, the substance of the error is identical.
Also I did install 0.5.5 from your GitHub as recommended above.
Versions
The text was updated successfully, but these errors were encountered: