Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Conversation

@brandonwillard
Copy link
Member

This PR is a quicker/smaller fix than #54.

@twiecki
Copy link
Contributor

twiecki commented Sep 29, 2020

How does this fix the circular import issue?

@michaelosthege
Copy link
Contributor

The CI tests look like the import problem appears just on Python 3.6

@brandonwillard
Copy link
Member Author

Yes, the problem definitely appears to be in Python 3.6 only. I've simply reverted the import changes in opt_uncanonicalize.py and that appears to work; however, the imports in this library are a complete mess and must be addressed ASAP (see #45).

@brandonwillard brandonwillard merged commit e7e92dc into aesara-devs:master Sep 29, 2020
@brandonwillard brandonwillard deleted the jax-import-quick-fix branch September 29, 2020 16:36
@twiecki
Copy link
Contributor

twiecki commented Sep 29, 2020

Nice!!

@XZLeo
Copy link

XZLeo commented Sep 7, 2023

I got the same error with python 3.10. I don't understand the answer above. Can someone explain to me how to fix it? Many thanks!

@allisonmcampbell
Copy link

I also got this error, now with python 3.11

@ObigerTo
Copy link

ObigerTo commented Oct 7, 2023

I also got the error with my python 3.12. Working in VSC and can't find the solution for it.
Is there a Code which solves the importing Problem?

@dalesmith8
Copy link

dalesmith8 commented Oct 24, 2023

Same error as above, with 3.11.5 - what is going on with this program? I'd really rather not switch back to Stan...

@StefanoDamato
Copy link

I am having the same error, using Python 3.9.18 and PyMC3 3.11.4

@brandonwillard
Copy link
Member Author

Sorry folks, Aesara is not affiliated with PyMC, so any errors you're having related to PyMC need to be addressed to that project.

Otherwise, feel free to open an issue for any problems related to the use of Aesara alone.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pymc3jax: AttributeError: partially initialized module 'theano' has no attribute 'compile' (most likely due to a circular import)

8 participants