dominicprice / endplay

A suite of tools for generation and analysis of bridge deals. Read the documentation at https://endplay.readthedocs.io
MIT License
22 stars 5 forks source link

ImportError: cannot import name 'GenericAlias #42

Open LyonsDo opened 6 months ago

LyonsDo commented 6 months ago

I was getting "poetry build -f wheel PyProjectException [tool.poetry] section not found in C:/Bridge/endplay/pyproject.toml at c:\python39\lib\site-packages\poetry\core\pyproject\toml.py:56 in poetry_config" which made sense because there wan't one.. Dropping back from Python 3.11 to 3.9 fixed that.

But now I get "ImportError: cannot import name 'GenericAlias' from partially initialized module 'types' (most likely due to a circular import) (C:\Bridge\endplay\src\endplay\types__init__.py)" and I'm not sure how to resolve that.

Windows 11 using a pipx build if that's relevant.

dominicprice commented 6 months ago

Hi, hmm seems like there might be some version mismatching going on. Are you attempting to build from source?

I will boot up my windows machine and see if I can reproduce this error.

LyonsDo commented 6 months ago

No just the PyPi wheels. Thanks for the quick reply,

On Sun, 10 Mar 2024 at 12:55, Dominic Price @.***> wrote:

Hi, hmm seems like there might be some version mismatching going on. Are you attempting to build from source?

I will boot up my windows machine and see if I can reproduce this error.

— Reply to this email directly, view it on GitHub https://github.com/dominicprice/endplay/issues/42#issuecomment-1987200102, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXO43VTFYCJHTFVQZZ756LYXRC2JAVCNFSM6AAAAABEOXILLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGIYDAMJQGI . You are receiving this because you authored the thread.Message ID: @.***>