question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

importing starry but get an error on attribute 'geweke'

See original GitHub issue
>>> import starry
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/wang.12220/opt/anaconda3/lib/python3.6/site-packages/starry/__init__.py", line 17, in <module>
    from . import kepler, linalg, maps
  File "/Users/wang.12220/opt/anaconda3/lib/python3.6/site-packages/starry/kepler.py", line 4, in <module>
    from .maps import MapBase, RVBase, ReflectedBase
  File "/Users/wang.12220/opt/anaconda3/lib/python3.6/site-packages/starry/maps.py", line 4, in <module>
    from ._core import OpsYlm, OpsLD, OpsReflected, OpsRV, math
  File "/Users/wang.12220/opt/anaconda3/lib/python3.6/site-packages/starry/_core/__init__.py", line 2, in <module>
    from . import core, ops, utils, math
  File "/Users/wang.12220/opt/anaconda3/lib/python3.6/site-packages/starry/_core/core.py", line 31, in <module>
    import exoplanet
  File "/Users/wang.12220/opt/anaconda3/lib/python3.6/site-packages/exoplanet/__init__.py", line 12, in <module>
    from . import distributions, interp, orbits
  File "/Users/wang.12220/opt/anaconda3/lib/python3.6/site-packages/exoplanet/distributions/__init__.py", line 16, in <module>
    from . import eccentricity
  File "/Users/wang.12220/opt/anaconda3/lib/python3.6/site-packages/exoplanet/distributions/eccentricity.py", line 7, in <module>
    import pymc3 as pm
  File "/Users/wang.12220/opt/anaconda3/lib/python3.6/site-packages/pymc3/__init__.py", line 64, in <module>
    from .stats import *
  File "/Users/wang.12220/opt/anaconda3/lib/python3.6/site-packages/pymc3/stats/__init__.py", line 47, in <module>
    geweke = map_args(az.geweke)
AttributeError: module 'arviz' has no attribute 'geweke'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
dfmcommented, Mar 19, 2021

This is a PyMC3 issue (old versions of PyMC are not compatible with new versions of ArviZ), not a starry issue! You’ll need to update PyMC3 or downgrade arviz (this is probably the easier approach). @rodluger can probably suggest which would be best. To downgrade ArviZ, use:

python -m pip uninstall arviz
python -m pip install "arviz<0.11"
0reactions
wj198414commented, Mar 30, 2021

Thank you so much!

On Tue, Mar 30, 2021 at 2:26 PM Rodrigo Luger @.***> wrote:

Closed #275 https://github.com/rodluger/starry/issues/275.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rodluger/starry/issues/275#event-4529572031, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBPRTRYNBTBPD5ECVR47N3TGIJT7ANCNFSM4ZPM7WIA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: module 'arviz' has no attribute 'geweke'
More specifically, when trying to import pymc3, I get the following error “AttributeError: module 'arviz' has no attribute 'geweke'”.
Read more >
Cannot import pymc3 module due to geweke - Stack Overflow
It looks like the issue is related to the version of python (3.6) you are using and a dependant library pyMC use called...
Read more >
An error occurred during the data import. Details
Requirement is to update the TypeCode attribute for multiple records through import. An error occurred during the data import.
Read more >
Import Problems - Plytix Help Center
In this article, we will highlight some of the most common errors we encounter and how to fix them. Corrupted File. Funky Characters....
Read more >
Reference Guide to exceptions or errors when importing
This guide is designed to include the most common exceptions or errors a user may receive when importing through the Raiser's Edge.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found