exoplanet-dev / exoplanet-dev/exoplanet

Why there are errors of 'ERROR tests/distributions_test.py - AttributeError: partially initialized module 'theano' has no attribute 'gof' (most likely due to a circular import)

Open
#348 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
239
Forks
57
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When I try to run the unit tests, there many errors like:

ERROR tests/distributions_test.py - AttributeError: partially initialized module 'theano' has no attribute 'gof' (most likely due to a circular import)
ERROR tests/estimators_test.py - AttributeError: partially initialized module 'theano' has no attribute 'gof' (most likely due to a circular import)
ERROR tests/interp_test.py - AttributeError: partially initialized module 'theano' has no attribute 'gof' (most likely due to a circular import)
ERROR tests/light_curves_test.py - AttributeError: partially initialized module 'theano' has no attribute 'gof' (most likely due to a circular import)
ERROR tests/orbits/keplerian_test.py - AttributeError: partially initialized module 'theano' has no attribute 'gof' (most likely due to a circular import)
ERROR tests/orbits/simple_test.py - AttributeError: partially initialized module 'theano' has no attribute 'gof' (most likely due to a circular import)
ERROR tests/orbits/ttv_test.py - AttributeError: partially initialized module 'theano' has no attribute 'gof' (most likely due to a circular import)
ERROR tests/units_test.py - AttributeError: partially initialized module 'theano' has no attribute 'gof' (most likely due to a circular import)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 9 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!**To

Reproduce**
This section should include a simple, standalone code snippet that demonstrates the issue.

**Expected behavior**
A clear and concise description of what you expected to happen.
How can I pass the tests?
**Your setup (please complete the following information):**
- Version of exoplanet: Successfully installed exoplanet-0.6.1.dev18+g6161d2b
- - Operating system: Mac
- Python version & installation method (pip, conda, etc.): python -m pip install -e .

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.