![](https://secure.gravatar.com/avatar/a51c97994ca0fa25424d428cd5e32801.jpg?s=120&d=mm&r=g)
Hello All, I was having an issue with the yt.create_profile command, and I wanted to see if updating yt would help fix the issue. However, when I updated my anaconda yt installation to yt 3.6.1, I am now having this issue every time I try to load yt: --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-1-3f99c158a398> in <module> ----> 1 import yt 2 import numpy as np 3 from yt import YTQuantity 4 5 import glob ~/anaconda3/lib/python3.7/site-packages/yt/__init__.py in <module> 61 display_ytarray 62 ---> 63 from yt.fields.api import \ 64 field_plugins, \ 65 DerivedField, \ ~/anaconda3/lib/python3.7/site-packages/yt/fields/api.py in <module> 17 field_plugins 18 ---> 19 from . import angular_momentum 20 from . import astro_fields 21 from . import cosmology_fields ~/anaconda3/lib/python3.7/site-packages/yt/fields/angular_momentum.py in <module> 24 register_field_plugin 25 ---> 26 from .vector_operations import \ 27 create_magnitude_field 28 ~/anaconda3/lib/python3.7/site-packages/yt/fields/vector_operations.py in <module> 30 handle_mks_cgs 31 ---> 32 from yt.geometry.geometry_handler import \ 33 is_curvilinear 34 ~/anaconda3/lib/python3.7/site-packages/yt/geometry/geometry_handler.py in <module> 27 from yt.utilities.io_handler import io_registry 28 from yt.utilities.logger import ytLogger as mylog ---> 29 from yt.utilities.parallel_tools.parallel_analysis_interface import \ 30 ParallelAnalysisInterface, parallel_root_only 31 from yt.utilities.exceptions import YTFieldNotFound ~/anaconda3/lib/python3.7/site-packages/yt/utilities/parallel_tools/parallel_analysis_interface.py in <module> 28 29 from yt.config import ytcfg ---> 30 from yt.data_objects.image_array import ImageArray 31 import yt.utilities.logger 32 from yt.utilities.lib.quad_tree import \ ~/anaconda3/lib/python3.7/site-packages/yt/data_objects/image_array.py in <module> 16 from yt.config import \ 17 ytcfg ---> 18 from yt.visualization.image_writer import write_bitmap, write_image 19 from yt.units.yt_array import YTArray 20 ~/anaconda3/lib/python3.7/site-packages/yt/visualization/image_writer.py in <module> 24 from yt.units.yt_array import YTQuantity 25 from yt.utilities.exceptions import YTNotInsideNotebook ---> 26 from .color_maps import mcm 27 from . import _colormap_data as cmd 28 import yt.utilities.lib.image_utilities as au ~/anaconda3/lib/python3.7/site-packages/yt/visualization/color_maps.py in <module> 162 } 163 --> 164 add_colormap("cubehelix", _cubehelix_data) 165 166 # The turbo colormap, by Anton Mikhailov. ~/anaconda3/lib/python3.7/site-packages/yt/visualization/color_maps.py in add_colormap(name, cdict) 50 mcm.__dict__[name] = cdict 51 try: # API compatibility ---> 52 mcm.register_cmap(name, yt_colormaps[name]) 53 except AttributeError: 54 pass ~/anaconda3/lib/python3.7/site-packages/matplotlib/cm.py in register_cmap(name, cmap, override_builtin) 147 if not override_builtin and name in __builtin_cmaps: 148 msg = f"Trying to re-register the builtin cmap {name!r}." --> 149 raise ValueError(msg) 150 else: 151 msg = f"Trying to register the cmap {name!r} which already exists." ValueError: Trying to re-register the builtin cmap 'cubehelix'. I was wondering if anyone else had experienced a similar issue?
![](https://secure.gravatar.com/avatar/b279d746f54e2cd6062e8279a767c4bc.jpg?s=120&d=mm&r=g)
Hi Sean, Ah, this is a recent issue -- you can a) pull from the most recent yt, which no longer registers its own cubehelix, b) downgrade matplotlib to pre-3.4, or c) (maybe the easiest?) edit ~/anaconda3/lib/python3.7/site-packages/yt/visualization/color_maps.py and change line 53 to be: except (AttributeError, ValueError): instead of just AttributeError. -Matt On Thu, Apr 22, 2021 at 6:46 PM Sean Larkin via yt-users <yt-users@python.org> wrote:
Hello All,
I was having an issue with the yt.create_profile command, and I wanted to see if updating yt would help fix the issue. However, when I updated my anaconda yt installation to yt 3.6.1, I am now having this issue every time I try to load yt:
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-1-3f99c158a398> in <module> ----> 1 import yt 2 import numpy as np 3 from yt import YTQuantity 4 5 import glob
~/anaconda3/lib/python3.7/site-packages/yt/__init__.py in <module> 61 display_ytarray 62 ---> 63 from yt.fields.api import \ 64 field_plugins, \ 65 DerivedField, \
~/anaconda3/lib/python3.7/site-packages/yt/fields/api.py in <module> 17 field_plugins 18 ---> 19 from . import angular_momentum 20 from . import astro_fields 21 from . import cosmology_fields
~/anaconda3/lib/python3.7/site-packages/yt/fields/angular_momentum.py in <module> 24 register_field_plugin 25 ---> 26 from .vector_operations import \ 27 create_magnitude_field 28
~/anaconda3/lib/python3.7/site-packages/yt/fields/vector_operations.py in <module> 30 handle_mks_cgs 31 ---> 32 from yt.geometry.geometry_handler import \ 33 is_curvilinear 34
~/anaconda3/lib/python3.7/site-packages/yt/geometry/geometry_handler.py in <module> 27 from yt.utilities.io_handler import io_registry 28 from yt.utilities.logger import ytLogger as mylog ---> 29 from yt.utilities.parallel_tools.parallel_analysis_interface import \ 30 ParallelAnalysisInterface, parallel_root_only 31 from yt.utilities.exceptions import YTFieldNotFound
~/anaconda3/lib/python3.7/site-packages/yt/utilities/parallel_tools/parallel_analysis_interface.py in <module> 28 29 from yt.config import ytcfg ---> 30 from yt.data_objects.image_array import ImageArray 31 import yt.utilities.logger 32 from yt.utilities.lib.quad_tree import \
~/anaconda3/lib/python3.7/site-packages/yt/data_objects/image_array.py in <module> 16 from yt.config import \ 17 ytcfg ---> 18 from yt.visualization.image_writer import write_bitmap, write_image 19 from yt.units.yt_array import YTArray 20
~/anaconda3/lib/python3.7/site-packages/yt/visualization/image_writer.py in <module> 24 from yt.units.yt_array import YTQuantity 25 from yt.utilities.exceptions import YTNotInsideNotebook ---> 26 from .color_maps import mcm 27 from . import _colormap_data as cmd 28 import yt.utilities.lib.image_utilities as au
~/anaconda3/lib/python3.7/site-packages/yt/visualization/color_maps.py in <module> 162 } 163 --> 164 add_colormap("cubehelix", _cubehelix_data) 165 166 # The turbo colormap, by Anton Mikhailov.
~/anaconda3/lib/python3.7/site-packages/yt/visualization/color_maps.py in add_colormap(name, cdict) 50 mcm.__dict__[name] = cdict 51 try: # API compatibility ---> 52 mcm.register_cmap(name, yt_colormaps[name]) 53 except AttributeError: 54 pass
~/anaconda3/lib/python3.7/site-packages/matplotlib/cm.py in register_cmap(name, cmap, override_builtin) 147 if not override_builtin and name in __builtin_cmaps: 148 msg = f"Trying to re-register the builtin cmap {name!r}." --> 149 raise ValueError(msg) 150 else: 151 msg = f"Trying to register the cmap {name!r} which already exists."
ValueError: Trying to re-register the builtin cmap 'cubehelix'.
I was wondering if anyone else had experienced a similar issue? _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: matthewturk@gmail.com
![](https://secure.gravatar.com/avatar/36aac47b1dba0a8c32112b2db045a3dc.jpg?s=120&d=mm&r=g)
Hello all, I'm also having this problem after updating some of the packages which yt depends on (on both MacOS and Ubuntu 20.04), and would be curious how to fix it. Take care, Andrew On 4/22/21 4:45 PM, Sean Larkin via yt-users wrote:
Hello All,
I was having an issue with the yt.create_profile command, and I wanted to see if updating yt would help fix the issue. However, when I updated my anaconda yt installation to yt 3.6.1, I am now having this issue every time I try to load yt:
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-1-3f99c158a398> in <module> ----> 1 import yt 2 import numpy as np 3 from yt import YTQuantity 4 5 import glob
~/anaconda3/lib/python3.7/site-packages/yt/__init__.py in <module> 61 display_ytarray 62 ---> 63 from yt.fields.api import \ 64 field_plugins, \ 65 DerivedField, \
~/anaconda3/lib/python3.7/site-packages/yt/fields/api.py in <module> 17 field_plugins 18 ---> 19 from . import angular_momentum 20 from . import astro_fields 21 from . import cosmology_fields
~/anaconda3/lib/python3.7/site-packages/yt/fields/angular_momentum.py in <module> 24 register_field_plugin 25 ---> 26 from .vector_operations import \ 27 create_magnitude_field 28
~/anaconda3/lib/python3.7/site-packages/yt/fields/vector_operations.py in <module> 30 handle_mks_cgs 31 ---> 32 from yt.geometry.geometry_handler import \ 33 is_curvilinear 34
~/anaconda3/lib/python3.7/site-packages/yt/geometry/geometry_handler.py in <module> 27 from yt.utilities.io_handler import io_registry 28 from yt.utilities.logger import ytLogger as mylog ---> 29 from yt.utilities.parallel_tools.parallel_analysis_interface import \ 30 ParallelAnalysisInterface, parallel_root_only 31 from yt.utilities.exceptions import YTFieldNotFound
~/anaconda3/lib/python3.7/site-packages/yt/utilities/parallel_tools/parallel_analysis_interface.py in <module> 28 29 from yt.config import ytcfg ---> 30 from yt.data_objects.image_array import ImageArray 31 import yt.utilities.logger 32 from yt.utilities.lib.quad_tree import \
~/anaconda3/lib/python3.7/site-packages/yt/data_objects/image_array.py in <module> 16 from yt.config import \ 17 ytcfg ---> 18 from yt.visualization.image_writer import write_bitmap, write_image 19 from yt.units.yt_array import YTArray 20
~/anaconda3/lib/python3.7/site-packages/yt/visualization/image_writer.py in <module> 24 from yt.units.yt_array import YTQuantity 25 from yt.utilities.exceptions import YTNotInsideNotebook ---> 26 from .color_maps import mcm 27 from . import _colormap_data as cmd 28 import yt.utilities.lib.image_utilities as au
~/anaconda3/lib/python3.7/site-packages/yt/visualization/color_maps.py in <module> 162 } 163 --> 164 add_colormap("cubehelix", _cubehelix_data) 165 166 # The turbo colormap, by Anton Mikhailov.
~/anaconda3/lib/python3.7/site-packages/yt/visualization/color_maps.py in add_colormap(name, cdict) 50 mcm.__dict__[name] = cdict 51 try: # API compatibility ---> 52 mcm.register_cmap(name, yt_colormaps[name]) 53 except AttributeError: 54 pass
~/anaconda3/lib/python3.7/site-packages/matplotlib/cm.py in register_cmap(name, cmap, override_builtin) 147 if not override_builtin and name in __builtin_cmaps: 148 msg = f"Trying to re-register the builtin cmap {name!r}." --> 149 raise ValueError(msg) 150 else: 151 msg = f"Trying to register the cmap {name!r} which already exists."
ValueError: Trying to re-register the builtin cmap 'cubehelix'.
I was wondering if anyone else had experienced a similar issue? _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: awsteiner@utk.edu
![](https://secure.gravatar.com/avatar/36aac47b1dba0a8c32112b2db045a3dc.jpg?s=120&d=mm&r=g)
Hello again, Nevermind. Sorry. I see now this is the issue https://github.com/yt-project/yt/pull/3149 . Do matplotlib updates seem to cause problems for yt often? Take care, Andrew On 4/25/21 8:53 PM, Steiner, Andrew (Andrew W. Steiner) via yt-users wrote:
Hello all,
I'm also having this problem after updating some of the packages which yt depends on (on both MacOS and Ubuntu 20.04), and would be curious how to fix it.
Take care, Andrew
On 4/22/21 4:45 PM, Sean Larkin via yt-users wrote:
Hello All,
I was having an issue with the yt.create_profile command, and I wanted to see if updating yt would help fix the issue. However, when I updated my anaconda yt installation to yt 3.6.1, I am now having this issue every time I try to load yt:
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-1-3f99c158a398> in <module> ----> 1 import yt 2 import numpy as np 3 from yt import YTQuantity 4 5 import glob
~/anaconda3/lib/python3.7/site-packages/yt/__init__.py in <module> 61 display_ytarray 62 ---> 63 from yt.fields.api import \ 64 field_plugins, \ 65 DerivedField, \
~/anaconda3/lib/python3.7/site-packages/yt/fields/api.py in <module> 17 field_plugins 18 ---> 19 from . import angular_momentum 20 from . import astro_fields 21 from . import cosmology_fields
~/anaconda3/lib/python3.7/site-packages/yt/fields/angular_momentum.py in <module> 24 register_field_plugin 25 ---> 26 from .vector_operations import \ 27 create_magnitude_field 28
~/anaconda3/lib/python3.7/site-packages/yt/fields/vector_operations.py in <module> 30 handle_mks_cgs 31 ---> 32 from yt.geometry.geometry_handler import \ 33 is_curvilinear 34
~/anaconda3/lib/python3.7/site-packages/yt/geometry/geometry_handler.py in <module> 27 from yt.utilities.io_handler import io_registry 28 from yt.utilities.logger import ytLogger as mylog ---> 29 from yt.utilities.parallel_tools.parallel_analysis_interface import \ 30 ParallelAnalysisInterface, parallel_root_only 31 from yt.utilities.exceptions import YTFieldNotFound
~/anaconda3/lib/python3.7/site-packages/yt/utilities/parallel_tools/parallel_analysis_interface.py in <module> 28 29 from yt.config import ytcfg ---> 30 from yt.data_objects.image_array import ImageArray 31 import yt.utilities.logger 32 from yt.utilities.lib.quad_tree import \
~/anaconda3/lib/python3.7/site-packages/yt/data_objects/image_array.py in <module> 16 from yt.config import \ 17 ytcfg ---> 18 from yt.visualization.image_writer import write_bitmap, write_image 19 from yt.units.yt_array import YTArray 20
~/anaconda3/lib/python3.7/site-packages/yt/visualization/image_writer.py in <module> 24 from yt.units.yt_array import YTQuantity 25 from yt.utilities.exceptions import YTNotInsideNotebook ---> 26 from .color_maps import mcm 27 from . import _colormap_data as cmd 28 import yt.utilities.lib.image_utilities as au
~/anaconda3/lib/python3.7/site-packages/yt/visualization/color_maps.py in <module> 162 } 163 --> 164 add_colormap("cubehelix", _cubehelix_data) 165 166 # The turbo colormap, by Anton Mikhailov.
~/anaconda3/lib/python3.7/site-packages/yt/visualization/color_maps.py in add_colormap(name, cdict) 50 mcm.__dict__[name] = cdict 51 try: # API compatibility ---> 52 mcm.register_cmap(name, yt_colormaps[name]) 53 except AttributeError: 54 pass
~/anaconda3/lib/python3.7/site-packages/matplotlib/cm.py in register_cmap(name, cmap, override_builtin) 147 if not override_builtin and name in __builtin_cmaps: 148 msg = f"Trying to re-register the builtin cmap {name!r}." --> 149 raise ValueError(msg) 150 else: 151 msg = f"Trying to register the cmap {name!r} which already exists."
ValueError: Trying to re-register the builtin cmap 'cubehelix'.
I was wondering if anyone else had experienced a similar issue? _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: awsteiner@utk.edu
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: awsteiner@utk.edu
![](https://secure.gravatar.com/avatar/b279d746f54e2cd6062e8279a767c4bc.jpg?s=120&d=mm&r=g)
Hi Andrew, Nope, not usually -- and Clément Robert has been really good about fixing them recently, and keeping an eye on upcoming changes that we need to be aware of. -Matt On Sun, Apr 25, 2021 at 11:09 PM Steiner, Andrew (Andrew W. Steiner) via yt-users <yt-users@python.org> wrote:
Hello again,
Nevermind. Sorry. I see now this is the issue https://github.com/yt-project/yt/pull/3149 . Do matplotlib updates seem to cause problems for yt often?
Take care, Andrew
On 4/25/21 8:53 PM, Steiner, Andrew (Andrew W. Steiner) via yt-users wrote:
Hello all,
I'm also having this problem after updating some of the packages which yt depends on (on both MacOS and Ubuntu 20.04), and would be curious how to fix it.
Take care, Andrew
On 4/22/21 4:45 PM, Sean Larkin via yt-users wrote:
Hello All,
I was having an issue with the yt.create_profile command, and I wanted to see if updating yt would help fix the issue. However, when I updated my anaconda yt installation to yt 3.6.1, I am now having this issue every time I try to load yt:
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-1-3f99c158a398> in <module> ----> 1 import yt 2 import numpy as np 3 from yt import YTQuantity 4 5 import glob
~/anaconda3/lib/python3.7/site-packages/yt/__init__.py in <module> 61 display_ytarray 62 ---> 63 from yt.fields.api import \ 64 field_plugins, \ 65 DerivedField, \
~/anaconda3/lib/python3.7/site-packages/yt/fields/api.py in <module> 17 field_plugins 18 ---> 19 from . import angular_momentum 20 from . import astro_fields 21 from . import cosmology_fields
~/anaconda3/lib/python3.7/site-packages/yt/fields/angular_momentum.py in <module> 24 register_field_plugin 25 ---> 26 from .vector_operations import \ 27 create_magnitude_field 28
~/anaconda3/lib/python3.7/site-packages/yt/fields/vector_operations.py in <module> 30 handle_mks_cgs 31 ---> 32 from yt.geometry.geometry_handler import \ 33 is_curvilinear 34
~/anaconda3/lib/python3.7/site-packages/yt/geometry/geometry_handler.py in <module> 27 from yt.utilities.io_handler import io_registry 28 from yt.utilities.logger import ytLogger as mylog ---> 29 from yt.utilities.parallel_tools.parallel_analysis_interface import \ 30 ParallelAnalysisInterface, parallel_root_only 31 from yt.utilities.exceptions import YTFieldNotFound
~/anaconda3/lib/python3.7/site-packages/yt/utilities/parallel_tools/parallel_analysis_interface.py in <module> 28 29 from yt.config import ytcfg ---> 30 from yt.data_objects.image_array import ImageArray 31 import yt.utilities.logger 32 from yt.utilities.lib.quad_tree import \
~/anaconda3/lib/python3.7/site-packages/yt/data_objects/image_array.py in <module> 16 from yt.config import \ 17 ytcfg ---> 18 from yt.visualization.image_writer import write_bitmap, write_image 19 from yt.units.yt_array import YTArray 20
~/anaconda3/lib/python3.7/site-packages/yt/visualization/image_writer.py in <module> 24 from yt.units.yt_array import YTQuantity 25 from yt.utilities.exceptions import YTNotInsideNotebook ---> 26 from .color_maps import mcm 27 from . import _colormap_data as cmd 28 import yt.utilities.lib.image_utilities as au
~/anaconda3/lib/python3.7/site-packages/yt/visualization/color_maps.py in <module> 162 } 163 --> 164 add_colormap("cubehelix", _cubehelix_data) 165 166 # The turbo colormap, by Anton Mikhailov.
~/anaconda3/lib/python3.7/site-packages/yt/visualization/color_maps.py in add_colormap(name, cdict) 50 mcm.__dict__[name] = cdict 51 try: # API compatibility ---> 52 mcm.register_cmap(name, yt_colormaps[name]) 53 except AttributeError: 54 pass
~/anaconda3/lib/python3.7/site-packages/matplotlib/cm.py in register_cmap(name, cmap, override_builtin) 147 if not override_builtin and name in __builtin_cmaps: 148 msg = f"Trying to re-register the builtin cmap {name!r}." --> 149 raise ValueError(msg) 150 else: 151 msg = f"Trying to register the cmap {name!r} which already exists."
ValueError: Trying to re-register the builtin cmap 'cubehelix'.
I was wondering if anyone else had experienced a similar issue? _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: awsteiner@utk.edu
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: awsteiner@utk.edu
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: matthewturk@gmail.com
participants (3)
-
Matthew Turk
-
sflarkin@ucsc.edu
-
Steiner, Andrew (Andrew W. Steiner)