Error when running trident.verify()

49 views
Skip to first unread message

Daniel DeFelippis

unread,
Apr 2, 2020, 3:23:35 PM4/2/20
to trident-project-users
Hello,

I'm trying to run the development version of trident with the development version of yt on a cluster. I've set up an anaconda environment for python 3 and installed both trident and yt. However, when I try to verify the trident installation with trident.verify(), I get the following error:

"UnitParseError: Could not find unit symbol 'unitary' in the provided symbols."

This same setup (trident+yt dev versions, anaconda python 3) works on my laptop, so it's unclear to me what's not working. What would you suggest I do to fix this? 

Thank you,
Daniel DeFelippis

Cameron Hummels

unread,
Apr 2, 2020, 3:32:57 PM4/2/20
to Daniel DeFelippis, trident-project-users
Hi Daniel,

In order to use the dev version of Trident, you currently need the yt-4.0 branch of yt.  This is in the process of being merged into the dev branch of yt, but it has not yet occurred.  I will admit that our installation instructions on the trident docs are not up to date, after some recent updates, but what you will want to do is this:

$ git clone https://github.com/yt-project/yt.git
$ cd yt
$ git checkout yt-4.0
$ git pull
$ pip install -e .
$ cd ..

I think that will address the issues you are having.


Cameron

--
You received this message because you are subscribed to the Google Groups "trident-project-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trident-project-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trident-project-users/1039862a-7083-4a62-b028-38214c2dd543%40googlegroups.com.


--
Cameron Hummels
Computational Astrophysicist
California Institute of Technology

Daniel DeFelippis

unread,
Apr 2, 2020, 3:39:45 PM4/2/20
to Cameron Hummels, trident-project-users
Hi Cameron,

Sorry, I should have been clearer, I am currently using yt-4.0 on both my laptop and the cluster. 

Daniel

Cameron Hummels

unread,
Apr 2, 2020, 3:49:34 PM4/2/20
to Daniel DeFelippis, trident-project-users
I have not heard of this problem before.  So we need a few more pieces of information.

What OS are you running on both systems, but namely, your laptop?

Can you get the specific versions of things by:

$ python
>>> import yt; print(yt.__version__)
>>> import trident; print(triden.__version__)

Can you give us the full traceback of the error you receive when running trident.verify()?

Cameron

Daniel DeFelippis

unread,
Apr 2, 2020, 4:13:28 PM4/2/20
to Cameron Hummels, trident-project-users
Hi Cameron,

My laptop is a Mac running OS X 10.10 and Python 3.6, and the cluster is linux and has Python 3.7 (I installed the newest stable version of anaconda on each system available at the time).

On both systems, I'm using yt version 4.0.dev0 and trident version 1.3.dev1. 

Attached is the full traceback of the error I get on the cluster as a text file (trident_verify_failure.txt), as well as the output I get when I successfully run the same thing on my laptop (trident_verify_success.txt).

Thank you,
Daniel
trident_verify_success.txt
trident_verify_failure.txt

Stephanie Tonnesen

unread,
Apr 2, 2020, 4:47:32 PM4/2/20
to d.defe...@columbia.edu, Cameron Hummels, trident-project-users
I think if you are using rusty you might be able to force python 3.6. Might be worth trying!

--
--
Dr. Stephanie Tonnesen
Associate Research Scientist
CCA, Flatiron Institute
New York, NY

sto...@gmail.com

Cameron Hummels

unread,
Apr 2, 2020, 4:55:37 PM4/2/20
to Stephanie Tonnesen, Daniel DeFelippis, trident-project-users
I don't *think* it's a python version, thing, but that might be a good way of eliminating that source of a problem.  Thanks for the suggestion, Stephanie.

It looks like it might be something with the version of unyt that you're using.  Can you give the different versions of `unyt` on those systems?  I think there has been some amount of development going on with that recently: ``import unyt; print(unyt.__version__)``

Cameron

Daniel DeFelippis

unread,
Apr 2, 2020, 5:35:24 PM4/2/20
to Cameron Hummels, Stephanie Tonnesen, trident-project-users
Hi Cameron,

The newer version of anaconda indeed came with a newer version of unyt (v2.7.0 for python 3.7, v2.3.1 for python 3.6). Switching from unyt v2.7.0 --> v2.3.1 on the cluster appears to fix the problem and allows the trident verification to run successfully. 

Thanks!

Daniel

Cameron Hummels

unread,
Apr 2, 2020, 5:45:50 PM4/2/20
to Daniel DeFelippis, Stephanie Tonnesen, trident-project-users
That's great!  And also a really valuable lesson for us that the new version of unyt 2.7.0 breaks trident.  Thank you for the info!  

Good luck with the code, and let us know if you have any other questions.

Cameron

Cameron Hummels

unread,
May 3, 2020, 7:45:50 PM5/3/20
to Daniel DeFelippis, Stephanie Tonnesen, trident-project-users
As a followup on this, it appears that there is now a new version of unyt, 2.7.1, which no longer causes the problems you encountered in 2.7.0.

Cameron
Reply all
Reply to author
Forward
0 new messages