You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for this great library that I recently discovered!
When installing the latest version 0.20 using pip with Python 3.8, I got the following Traceback during import:
Python 3.8.10 (default, Mar 17 2025, 19:35:05)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import schemdraw
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/bohre/workspace/ui_docs/venv/python3/lib/python3.8/site-packages/schemdraw/__init__.py", line 1, in <module>
from .schemdraw import Drawing, use, config, theme, debug
File "/home/bohre/workspace/ui_docs/venv/python3/lib/python3.8/site-packages/schemdraw/schemdraw.py", line 11, in <module>
from .elements import Element, Container
File "/home/bohre/workspace/ui_docs/venv/python3/lib/python3.8/site-packages/schemdraw/elements/__init__.py", line 1, in <module>
from .elements import Element, ElementDrawing, Element2Term
File "/home/bohre/workspace/ui_docs/venv/python3/lib/python3.8/site-packages/schemdraw/elements/elements.py", line 17, in <module>
from ..style import validate_color, validate_linestyle
File "/home/bohre/workspace/ui_docs/venv/python3/lib/python3.8/site-packages/schemdraw/style.py", line 225, in <module>
def validate_color(color: Union[str, bool, tuple[int,int,int], None]) -> None:
TypeError: 'type' object is not subscriptable
>>>
I assume that this is due to usage of features introduced in later Python versions. It would be helpful to either tag it as requiring Python 3.9(?), or possibly rewrite it to work with Python 3.8 if that is still a design goal (I would be delighted if that was the case).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
First of all, thanks for this great library that I recently discovered!
When installing the latest version 0.20 using pip with Python 3.8, I got the following Traceback during import:
I assume that this is due to usage of features introduced in later Python versions. It would be helpful to either tag it as requiring Python 3.9(?), or possibly rewrite it to work with Python 3.8 if that is still a design goal (I would be delighted if that was the case).
BTW 0.19 works well with Python 3.8.
Beta Was this translation helpful? Give feedback.
All reactions