Skip to content

Import Error #100

Description

@mcekwonu

Describe the bug
pymcmcstat version >= 1.9.0, 1.9.1 failed to import pi from scipy when import pymcmcstat is called.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'python IDE'
  2. import pymcmcstat
  3. See error: Traceback (most recent call last):
    File "", line 1, in
    File "/home/drmce/.drmce_venv/lib/python3.11/site-packages/pymcmcstat/init.py", line 3, in
    from mcmcplot import mcmcplot # noqa, flake8 issue
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/drmce/.drmce_venv/lib/python3.11/site-packages/mcmcplot/mcmcplot.py", line 9, in
    from . import mcmatplot as _mcmpl
    File "/home/drmce/.drmce_venv/lib/python3.11/site-packages/mcmcplot/mcmatplot.py", line 13, in
    from .utilities import generate_names, make_x_grid
    File "/home/drmce/.drmce_venv/lib/python3.11/site-packages/mcmcplot/utilities.py", line 9, in
    from scipy import pi, sin, cos
    ImportError: cannot import name 'pi' from 'scipy' (/home/drmce/.drmce_venv/lib/python3.11/site-packages/scipy/init.py)

Expected behavior
import pymcmcstat.

Desktop (please complete the following information):

  • OS: Ubuntu 24.04
  • Version 24.04

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions