
Hello, I have installed yt successfully and then I tried to install 'trident' using the following command pip install trident But when I issued import trident, I got the following error: It seems that it is complaining that loader does not exist in yt.
import trident /usr/lib/python3.8/_collections_abc.py:666: MatplotlibDeprecationWarning: The global colormaps dictionary is no longer considered public API. self[key] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/pc/.local/lib/python3.8/site-packages/trident/__init__.py", line 63, in <module> from trident.ray_generator import \ File "/home/pc/.local/lib/python3.8/site-packages/trident/ray_generator.py", line 14, in <module> from trident.light_ray import \ File "/home/pc/.local/lib/python3.8/site-packages/trident/light_ray.py", line 19, in <module> from yt_astro_analysis.cosmological_observation.cosmology_splice import \ File "/home/pc/yt_astro_analysis/yt_astro_analysis/cosmological_observation/cosmology_splice.py", line 19, in <module> from yt.loaders import \ ModuleNotFoundError: No module named 'yt.loaders'
I would be grateful if some one could provide some help on this. Best regards, Hassan

Hi Hassan, (I'm cc'ing this to the trident users mailing list, since this is appropriate for that mailing list too.) Right now things are a bit complicated because the development versions of yt and trident both have some backwards-incompatible changes with respect to the stable versions of yt and trident. One of those changes is how datasets are loaded, using the `load` command. The `load` command resides in yt.mods for the stable version of yt, but in yt.loaders for the development version of yt. What this means is that if you're using stable versions of trident, yt_astro_analysis, and yt, they all work together because they look for `load` in yt.mods; and if you're using the development versions of trident, yt_astro_analysis, and yt, they all work together because they look for `load` in yt.loaders. But if you mix stable and development between those codes, you'll get a conflict like what you see here. How did you install yt and trident? Did you pip install them both? It sort of looks like you installed the development version of Trident and the stable version of yt. Cameron On Mon, Feb 22, 2021 at 1:14 PM <h.fathie@gmail.com> wrote:
Hello,
I have installed yt successfully and then I tried to install 'trident' using the following command
pip install trident
But when I issued import trident, I got the following error: It seems that it is complaining that loader does not exist in yt.
import trident /usr/lib/python3.8/_collections_abc.py:666: MatplotlibDeprecationWarning: The global colormaps dictionary is no longer considered public API. self[key] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/pc/.local/lib/python3.8/site-packages/trident/__init__.py", line 63, in <module> from trident.ray_generator import \ File "/home/pc/.local/lib/python3.8/site-packages/trident/ray_generator.py", line 14, in <module> from trident.light_ray import \ File "/home/pc/.local/lib/python3.8/site-packages/trident/light_ray.py", line 19, in <module> from yt_astro_analysis.cosmological_observation.cosmology_splice import \ File "/home/pc/yt_astro_analysis/yt_astro_analysis/cosmological_observation/cosmology_splice.py", line 19, in <module> from yt.loaders import \ ModuleNotFoundError: No module named 'yt.loaders'
I would be grateful if some one could provide some help on this. Best regards, Hassan _______________________________________________ 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: chummels@gmail.com
-- Cameron Hummels Computational Astrophysicist California Institute of Technology http://chummels.org

Dear Cameron, Thank you very much for your helpful reply. As you mentioned, yt was installed in the development version while trident was installed by pip After installing both of them by pip the problem was solved. Many thanks. Best regards, Hassan

Glad to hear that the problem was resolved for you! When yt-4.0 is officially released, we'll follow it with a release of Trident and these sort of problems will go away. Cameron On Tue, Feb 23, 2021 at 2:47 AM <h.fathie@gmail.com> wrote:
Dear Cameron,
Thank you very much for your helpful reply.
As you mentioned, yt was installed in the development version while trident was installed by pip After installing both of them by pip the problem was solved.
Many thanks. Best regards, Hassan _______________________________________________ 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: chummels@gmail.com
-- Cameron Hummels Computational Astrophysicist California Institute of Technology http://chummels.org
participants (2)
-
Cameron Hummels
-
h.fathie@gmail.com