Jul-14-2021, 02:47 PM
(This post was last modified: Jul-14-2021, 04:34 PM by Larz60+.
Edit Reason: fixed error tag
)
when I run the following holdem_calc.py program, I get the following error:
https://pypi.org/project/holdem-calc/
I am not sure what a circular import is. It seems to be the only way to eliminate this error. So what it it and how do I correct this error?
Any help appreciated. Thanks in advance.
Respectfully,
LZ
Error:\Downloads\holdem_calc-1.0.0\holdem_calc>python holdem_calc.py Ad Kd Qc Qs
Traceback (most recent call last):
File "holdem_calc.py", line 2, in <module>
from holdem_calc import holdem_functions, holdem_argparser
File "C:\Users\james\Downloads\holdem_calc-1.0.0\holdem_calc\holdem_calc.py", line 2, in <module>
from holdem_calc import holdem_functions, holdem_argparser
ImportError: cannot import name 'holdem_functions' from partially initialized module 'holdem_calc' (most likely due to a circular import) (C:\Users\james\Downloads\holdem_calc-1.0.0\holdem_calc\holdem_calc.py)
The program that I am trying to run can be found at this link:https://pypi.org/project/holdem-calc/
I am not sure what a circular import is. It seems to be the only way to eliminate this error. So what it it and how do I correct this error?
Any help appreciated. Thanks in advance.
Respectfully,
LZ