Lacking `particle_type` in yt 3.4.1 under Python 3.7

I recently installed Anaconda3 with Python 3.7, as well as the latest yt 3.4.1. But when I ran my code, calculating the center of mass and angular momentum, an error saying: count_values() got an unexpected keyword argument 'particle_type' came up. Is there anything I can do to fix it except installing an Anaconda with Python 3.6?

Hi, Unfortunately, I don't think so, no. I'd recommend installing yt 3.5, which should have this fixed. On Sun, Jul 28, 2019 at 2:56 AM Yi's Toy Repositories <kangyi@pku.edu.cn> wrote:
I recently installed Anaconda3 with Python 3.7, as well as the latest yt 3.4.1. But when I ran my code, calculating the center of mass and angular momentum, an error saying:
count_values() got an unexpected keyword argument 'particle_type'
came up.
Is there anything I can do to fix it except installing an Anaconda with Python 3.6? _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org

Hi Yi, Is there a reason you cannot use yt 3.5 with Python 3.7? This issue is fixed there. John
On Jul 28, 2019, at 8:45 PM, Yi Kang <kangyi@pku.edu.cn> wrote:
Sad to hear that. I shall switch back to Python 3.6. Thank you for your reply! _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org

But with Python 3.7, yt 3.4 is the latest. `conda update yt` told me this. Thanks for your reply!

This is not true. Try checking both the “defaults” and “condo-forge” channels.
On Jul 28, 2019, at 8:59 PM, Yi Kang <kangyi@pku.edu.cn> wrote:
But with Python 3.7, yt 3.4 is the latest. `conda update yt` told me this. Thanks for your reply! _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org

Sorry, I meant “conda-forge”: conda update -c conda-forge yt
On Jul 28, 2019, at 9:01 PM, John ZuHone <jzuhone@gmail.com> wrote:
This is not true. Try checking both the “defaults” and “condo-forge” channels.
On Jul 28, 2019, at 8:59 PM, Yi Kang <kangyi@pku.edu.cn> wrote:
But with Python 3.7, yt 3.4 is the latest. `conda update yt` told me this. Thanks for your reply! _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
participants (4)
-
John ZuHone
-
Matthew Turk
-
Yi Kang
-
Yi's Toy Repositories