Hello, I tried to install yt from the install script on Ubuntu. I changed a couple of things in the script: INST_YT_SOURCE = 1 INST_SCIPY = 1 INST_ASTROPY = 1 Everything installed successfully until the message "Building yt from source", where an error occurred, copied below: *Installing sympyInstalling netcdf4Building yt from sourceSetting YT_DIR=/home/rabatinb/yt-conda/src/yt-git******************************************** FAILURE REPORT:********************************************EXECUTING: /home/rabatinb/yt-conda/bin/git -C /home/rabatinb/yt-conda/src/yt-git checkout mainAlready on 'main'Your branch is up to date with 'origin/main'.Traceback (most recent call last): File "/home/rabatinb/yt-conda/src/yt-git/setup.py", line 8, in <module> from setupext import ( File "/home/rabatinb/yt-conda/src/yt-git/setupext.py", line 16, in <module> import ewah_bool_utilsModuleNotFoundError: No module named 'ewah_bool_utils'****************************************************************************************Failure. Check /home/rabatinb/yt-conda/yt_install.log. The last 10 lines are above.* What could be the issue and how can I fix this? Thank you, Branislav Rabatin.
Hi, The install script hasn’t been updated in a while, so it’s currently in a non functional state. Modern installation methods are now recommended, depending on what your needs are: 1) to install a stable version of yt from PyPI with hard-dependencies only: python -m pip install yt 2) to also install all optional dependencies, use: python -m pip install 'yt[full]’ 3) to install (not editable) from source: python -m pip install git:https://github.com/yt-project/yt@main 4) from source, in editable mode, first clone the GitHub repo, then python -m pip install —editable . 5) finally, if you want to install a stable version under conda conda install --channel conda-forge yt For context, what’s happening here is that `ewah-bool-utils` became a build dependency (as well as a runtime dependency) in yt 4.2.0, and the install script hasn’t been updated to reflect that.
On 14 Aug 2023, at 17:21, Braňo Rabatin <rabatin.b@gmail.com> wrote:
Hello,
I tried to install yt from the install script on Ubuntu. I changed a couple of things in the script:
INST_YT_SOURCE = 1 INST_SCIPY = 1 INST_ASTROPY = 1
Everything installed successfully until the message "Building yt from source", where an error occurred, copied below: Installing sympy Installing netcdf4 Building yt from source Setting YT_DIR=/home/rabatinb/yt-conda/src/yt-git ******************************************** FAILURE REPORT: ******************************************** EXECUTING: /home/rabatinb/yt-conda/bin/git -C /home/rabatinb/yt-conda/src/yt-git checkout main Already on 'main' Your branch is up to date with 'origin/main'. Traceback (most recent call last): File "/home/rabatinb/yt-conda/src/yt-git/setup.py", line 8, in <module> from setupext import ( File "/home/rabatinb/yt-conda/src/yt-git/setupext.py", line 16, in <module> import ewah_bool_utils ModuleNotFoundError: No module named 'ewah_bool_utils'
******************************************** ******************************************** Failure. Check /home/rabatinb/yt-conda/yt_install.log. The last 10 lines are above.
What could be the issue and how can I fix this?
Thank you,
Branislav Rabatin.
participants (2)
-
Braňo Rabatin
-
Clément Robert