Closed Raj-Kumar-Mishra closed 3 years ago
Hello! Thank you for including the snippet of code with your issue. If the issue occurs with this particular snippet of code, I think that the problem is not with ttkthemes
.
Rather, it seems to me that you have named your test file ttkthemes.py
. This will cause the from ttkthemes import ThemedStyle
to import ThemedStyle
from your snippet file. As this file is not done initializing (after all, it is still working on imports), this would be a circular import.
If you have named your file ttkthemes.py
, try renaming it to, for example, scratch.py
or snippet.py
. If this is not the case, then I do not know how to reproduce the issue with the current code and further investigation will be necessary.
hello, my code is-
issue-
ImportError: cannot import name 'ThemedStyle' from partially initialized module 'ttkthemes' (most likely due to a circular import) (C:\Users\mishra\ttkthemes.py)
I am using python3.8.3 and latest version of ttkthemesplease help me. Thank u!