I download photofitt exactly as instructed,but here is still something wrong with the versions:
AttributeError Traceback (most recent call last)
Cell In[2], line 5
3 import pandas as pd
4 import photofitt
----> 5 from photofitt import display
6 from photofitt.analysis import extract_activity, cumulative_activity, estimate_proportional_deviations
7 from photofitt.utils import power_conversion, numerical_dose, stats
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/photofitt/display/init.py:2
1 from .mosaics import build_mosaics
----> 2 from .plots import smooth_curves, conditions_with_aggregates, conditions, size_change_wrt_peak, one_condition,
3 distributions, mitosis, info_wrt_peak, vertical_distributions, violinplots_horizontal,
4 regressionfit, dual_boxplots, cellsize_distributions, unsynchro_tracking, cell_size_dynamics
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/photofitt/display/plots.py:2
1 import numpy as np
----> 2 import seaborn as sns
3 import matplotlib
4 import matplotlib.pyplot as plt
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/seaborn/init.py:2
1 # Import seaborn objects
----> 2 from .rcmod import * # noqa: F401,F403
3 from .utils import * # noqa: F401,F403
4 from .palettes import * # noqa: F401,F403
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/seaborn/rcmod.py:5
3 import matplotlib as mpl
4 from cycler import cycler
----> 5 from . import palettes
8 all = ["set_theme", "set", "reset_defaults", "reset_orig",
9 "axes_style", "set_style", "plotting_context", "set_context",
10 "set_palette"]
13 _style_keys = [
14
15 "axes.facecolor",
(...)
50
51 ]
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/seaborn/palettes.py:9
5 import matplotlib as mpl
7 from .external import husl
----> 9 from .utils import desaturate, get_color_cycle
10 from .colors import xkcd_rgb, crayons
11 from ._compat import get_colormap
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/seaborn/utils.py:14
12 import matplotlib as mpl
13 from matplotlib.colors import to_rgb
---> 14 import matplotlib.pyplot as plt
15 from matplotlib.cbook import normalize_kwargs
17 from .external.version import Version
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/matplotlib/pyplot.py:2230
2228 dict.setitem(rcParams, "backend", rcsetup._auto_backend_sentinel)
2229 # Set up the backend.
-> 2230 switch_backend(rcParams["backend"])
2232 # Just to be safe. Interactive mode can be turned on without
2233 # calling plt.ion() so register it again here.
2234 # This is safe because multiple calls to install_repl_displayhook
2235 # are no-ops and the registered function respect mpl.is_interactive()
2236 # to determine if they should trigger a draw.
2237 install_repl_displayhook()
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/matplotlib/pyplot.py:267, in switch_backend(newbackend)
260 # Backends are implemented as modules, but "inherit" default method
261 # implementations from backend_bases._Backend. This is achieved by
262 # creating a "class" that inherits from backend_bases._Backend and whose
263 # body is filled with the module's globals.
265 backend_name = cbook._backend_module_name(newbackend)
--> 267 class backend_mod(matplotlib.backend_bases._Backend):
268 locals().update(vars(importlib.import_module(backend_name)))
270 required_framework = _get_required_interactive_framework(backend_mod)
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/matplotlib/pyplot.py:268, in switch_backend..backend_mod()
267 class backend_mod(matplotlib.backend_bases._Backend):
--> 268 locals().update(vars(importlib.import_module(backend_name)))
File ~/miniforge3/envs/photofitt/lib/python3.10/importlib/init.py:126, in import_module(name, package)
124 break
125 level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/matplotlib_inline/init.py:1
----> 1 from . import backend_inline, config # noqa
3 version = "0.2.1"
5 # we can't ''.join(...) otherwise finding the version number at build time requires
6 # import which introduces IPython and matplotlib at build time, and thus circular
7 # dependencies.
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/matplotlib_inline/backend_inline.py:236
231 ip.events.unregister("post_run_cell", configure_once)
233 ip.events.register("post_run_cell", configure_once)
--> 236 _enable_matplotlib_integration()
239 def _fetch_figure_metadata(fig):
240 """Get some metadata to help with displaying a figure."""
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/matplotlib_inline/backend_inline.py:218, in _enable_matplotlib_integration()
216 backend = matplotlib.get_backend(auto_select=False)
217 else:
--> 218 backend = matplotlib.rcParams._get("backend")
220 if ip and backend in ("inline", "module://matplotlib_inline.backend_inline"):
221 from IPython.core.pylabtools import activate_matplotlib
AttributeError: 'RcParams' object has no attribute '_get'
I download photofitt exactly as instructed,but here is still something wrong with the versions:
AttributeError Traceback (most recent call last)
Cell In[2], line 5
3 import pandas as pd
4 import photofitt
----> 5 from photofitt import display
6 from photofitt.analysis import extract_activity, cumulative_activity, estimate_proportional_deviations
7 from photofitt.utils import power_conversion, numerical_dose, stats
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/photofitt/display/init.py:2
1 from .mosaics import build_mosaics
----> 2 from .plots import smooth_curves, conditions_with_aggregates, conditions, size_change_wrt_peak, one_condition,
3 distributions, mitosis, info_wrt_peak, vertical_distributions, violinplots_horizontal,
4 regressionfit, dual_boxplots, cellsize_distributions, unsynchro_tracking, cell_size_dynamics
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/photofitt/display/plots.py:2
1 import numpy as np
----> 2 import seaborn as sns
3 import matplotlib
4 import matplotlib.pyplot as plt
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/seaborn/init.py:2
1 # Import seaborn objects
----> 2 from .rcmod import * # noqa: F401,F403
3 from .utils import * # noqa: F401,F403
4 from .palettes import * # noqa: F401,F403
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/seaborn/rcmod.py:5
3 import matplotlib as mpl
4 from cycler import cycler
----> 5 from . import palettes
8 all = ["set_theme", "set", "reset_defaults", "reset_orig",
9 "axes_style", "set_style", "plotting_context", "set_context",
10 "set_palette"]
13 _style_keys = [
14
15 "axes.facecolor",
(...)
50
51 ]
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/seaborn/palettes.py:9
5 import matplotlib as mpl
7 from .external import husl
----> 9 from .utils import desaturate, get_color_cycle
10 from .colors import xkcd_rgb, crayons
11 from ._compat import get_colormap
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/seaborn/utils.py:14
12 import matplotlib as mpl
13 from matplotlib.colors import to_rgb
---> 14 import matplotlib.pyplot as plt
15 from matplotlib.cbook import normalize_kwargs
17 from .external.version import Version
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/matplotlib/pyplot.py:2230
2228 dict.setitem(rcParams, "backend", rcsetup._auto_backend_sentinel)
2229 # Set up the backend.
-> 2230 switch_backend(rcParams["backend"])
2232 # Just to be safe. Interactive mode can be turned on without
2233 # calling
plt.ion()so register it again here.2234 # This is safe because multiple calls to
install_repl_displayhook2235 # are no-ops and the registered function respect
mpl.is_interactive()2236 # to determine if they should trigger a draw.
2237 install_repl_displayhook()
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/matplotlib/pyplot.py:267, in switch_backend(newbackend)
260 # Backends are implemented as modules, but "inherit" default method
261 # implementations from backend_bases._Backend. This is achieved by
262 # creating a "class" that inherits from backend_bases._Backend and whose
263 # body is filled with the module's globals.
265 backend_name = cbook._backend_module_name(newbackend)
--> 267 class backend_mod(matplotlib.backend_bases._Backend):
268 locals().update(vars(importlib.import_module(backend_name)))
270 required_framework = _get_required_interactive_framework(backend_mod)
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/matplotlib/pyplot.py:268, in switch_backend..backend_mod()
267 class backend_mod(matplotlib.backend_bases._Backend):
--> 268 locals().update(vars(importlib.import_module(backend_name)))
File ~/miniforge3/envs/photofitt/lib/python3.10/importlib/init.py:126, in import_module(name, package)
124 break
125 level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/matplotlib_inline/init.py:1
----> 1 from . import backend_inline, config # noqa
3 version = "0.2.1"
5 # we can't ''.join(...) otherwise finding the version number at build time requires
6 # import which introduces IPython and matplotlib at build time, and thus circular
7 # dependencies.
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/matplotlib_inline/backend_inline.py:236
231 ip.events.unregister("post_run_cell", configure_once)
233 ip.events.register("post_run_cell", configure_once)
--> 236 _enable_matplotlib_integration()
239 def _fetch_figure_metadata(fig):
240 """Get some metadata to help with displaying a figure."""
File ~/miniforge3/envs/photofitt/lib/python3.10/site-packages/matplotlib_inline/backend_inline.py:218, in _enable_matplotlib_integration()
216 backend = matplotlib.get_backend(auto_select=False)
217 else:
--> 218 backend = matplotlib.rcParams._get("backend")
220 if ip and backend in ("inline", "module://matplotlib_inline.backend_inline"):
221 from IPython.core.pylabtools import activate_matplotlib
AttributeError: 'RcParams' object has no attribute '_get'