csdms / help-desk

The CSDMS Help Desk. Ask questions. Get answers (about CSDMS products and services).
MIT License
6 stars 1 forks source link

not able to import pymt #202

Closed ansine closed 1 year ago

ansine commented 1 year ago

I have gone through the install procedure on the webpage several times (copying commands directly off the webpage), but still get the error "no module named "pymt""

It may absolutely be a beginners mistake, but I am not able to figure how what I am doing wrong.

(base) Maria@MacBook-Pro-6 ~ % $ mamba install pymt -c conda-forge zsh: command not found: $ (base) Maria@MacBook-Pro-6 ~ % mamba install pymt -c conda-forge

              __    __    __    __
             /  \  /  \  /  \  /  \
            /    \/    \/    \/    \

███████████████/ /██/ /██/ /██/ /████████████████████████ / / \ / \ / \ / \ _ / / _/ _/ _/ \ o _, / _/ ___/ ` |/ ███╗ ███╗ █████╗ ███╗ ███╗██████╗ █████╗ ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗ ██╔████╔██║███████║██╔████╔██║██████╔╝███████║ ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║ ██║ ╚═╝ ██║██║ ██║██║ ╚═╝ ██║██████╔╝██║ ██║ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝

    mamba (0.4.2) supported by @QuantStack

    GitHub:  https://github.com/QuantStack/mamba
    Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████

pkgs/main/osx-64 [====================] (00m:00s) No change pkgs/r/osx-64 [====================] (00m:00s) No change pkgs/main/noarch [====================] (00m:00s) No change pkgs/r/noarch [====================] (00m:00s) No change conda-forge/noarch [====================] (00m:02s) Done conda-forge/osx-64 [====================] (00m:06s) Done

Looking for: ['pymt']

Transaction

Prefix: /Users/Maria/opt/anaconda3

Updating specs:

────────────────────────────────────────────────────────────────────────────────────────

Confirm changes: [Y/n] Y Finished anaconda (00m:00s) 35 KB 122 KB/s [> ] (00m:00s) 36 KB / 948 KB (112.88 KB/s) Finished jpeg (00m:00s) 226 KB 510 KB/s [====================] (00m:00s) Decompressing... Finished affine (00m:00s) 18 KB 38 KB/s [====================] (00m:00s) Decompressing... Finished h5py (00m:00s) 948 KB 2 MB/srtran [=> ] (00m:00s) 35 KB / 158 KB ( 72.71 KB/s) Finished cem (00m:00s) 110 KB 209 KB/s [====================] (00m:00s) Decompressing... Finished libgfortran (00m:00s) 158 KB 287 KB/s Finished geos (00m:00s) 1 MB 2 MB/s [==> ] (00m:00s) 611 KB / 2 MB (783.74 KB/s) Finished hdf5 (00m:00s) 3 MB 3 MB/s [====================] (00m:00s) Waiting... Finished libblas (00m:00s) 12 KB 11 KB/s [====================] (00m:00s) Waiting... Finished child (00m:00s) 2 MB 2 MB/s [====================] (00m:00s) Waiting... Finished hdf4 (00m:00s) 885 KB 809 KB/s [> ] (00m:00s) 2 MB / 33 MB ( 1.03 MB/s) Finished liblapack (00m:00s) 11 KB 9 KB/srtran5 [====================] (00m:00s) Decompressing... Finished libgfortran5 (00m:00s) 2 MB 1 MB/srtran5 [====================] (00m:00s) Decompressing... Finished platformdirs (00m:00s) 17 KB 12 KB/scdf [====================] (00m:00s) Waiting... Finished libnetcdf (00m:00s) 1 MB 932 KB/scdf [====================] (00m:00s) Decompressing... Finished pathtools (00m:00s) 8 KB 6 KB/sols [====================] (00m:00s) Decompressing... Finished pymt_permamodel (00m:00s) 11 KB 8 KB/sermamodel [====================] (00m:00s) Decompressing... Finished netcdf-fortran (00m:00s) 710 KB 417 KB/s-fortran [====================] (00m:00s) Decompressing... Finished pymt_child (00m:00s) 59 KB 34 KB/s [====================] (00m:00s) Decompressing... Finished pyshp (00m:00s) 941 KB 544 KB/s [====================] (00m:00s) Decompressing... Finished scripting (00m:00s) 13 KB 7 KB/s [====================] (00m:00s) Waiting... Finished pymt (00m:00s) 138 KB 72 KB/s [====================] (00m:00s) Decompressing... Finished shapely (00m:00s) 386 KB 179 KB/sy [====================] (00m:00s) Decompressing... Finished udunits2 (00m:00s) 156 KB 71 KB/s [> ] (00m:00s) 189 KB / 5 MB ( 88.18 KB/s) Finished binaryornot (00m:00s) 370 KB 156 KB/s [> ] (00m:00s) 573 KB / 5 MB (249.88 KB/s) Finished cftime (00m:00s) 221 KB 87 KB/s [> ] (00m:00s) 845 KB / 5 MB (345.88 KB/s) Finished hydrotrend (00m:00s) 220 KB 80 KB/s [=> ] (00m:00s) 2 MB / 5 MB (576.16 KB/s) Finished esmpy (00m:00s) 173 KB 63 KB/s [=> ] (00m:00s) 2 MB / 5 MB (576.16 KB/s) Finished libcblas (00m:00s) 11 KB 4 KB/s [==> ] (00m:00s) 2 MB / 5 MB (813.72 KB/s) Finished netcdf4 (00m:00s) 430 KB 111 KB/s [===> ] (00m:01s) 3 MB / 5 MB (859.06 KB/s) Finished pooch (00m:00s) 50 KB 12 KB/s [====> ] (00m:02s) 4 MB / 5 MB (940.69 KB/s) Finished pymt_hydrotrend (00m:00s) 112 KB 22 KB/s [====>] (00m:03s) 5 MB / 5 MB (1003.87 KB/s) Finished numpy (00m:03s) 5 MB 1 MB/s [====================] (00m:03s) Decompressing... Finished snappy (00m:00s) 34 KB 6 KB/ses [====> ] (00m:03s) 1 MB / 2 MB (227.85 KB/s) Finished esmf (00m:08s) 33 MB 6 MB/ses [====================] (00m:07s) Waiting... Finished _anaconda_depends (00m:04s) 6 KB 1 KB/sm9 [====================] (00m:06s) Waiting... Finished richdem (00m:03s) 579 KB 104 KB/sm9 [====================] (00m:06s) Waiting... Finished openssl (00m:04s) 2 MB 300 KB/sm9 [====================] (00m:06s) Waiting... Finished pymt_cem (00m:03s) 126 KB 21 KB/sm9 [====================] (00m:06s) Waiting... Finished gimli.units (00m:03s) 96 KB 16 KB/sm9 [====================] (00m:06s) Waiting... Finished pytables (00m:07s) 2 MB 270 KB/sm9 [====================] (00m:06s) Waiting... Finished libglib (00m:03s) 3 MB 454 KB/sb [====================] (00m:03s) Decompressing... Finished model_metadata (00m:03s) 22 KB 3 KB/s [====================] (00m:03s) Waiting... Finished deprecated (00m:03s) 12 KB 2 KB/s [====================] (00m:03s) Waiting... Finished pymt_sedflux (00m:03s) 194 KB 28 KB/s [====================] (00m:03s) Waiting... Finished libllvm9 (00m:08s) 19 MB 3 MB/s [====================] (00m:03s) Waiting... Finished xarray (00m:04s) 704 KB 97 KB/sx [====================] (00m:05s) Waiting... Finished bmipy (00m:04s) 11 KB 1 KB/sx [====================] (00m:05s) Decompressing... Finished sedflux (00m:05s) 4 MB 502 KB/sx [====================] (00m:05s) Decompressing... Finished permamodel (00m:05s) 8 MB 975 KB/sodel [====================] (00m:05s) Decompressing... Finished landlab (00m:05s) 2 MB 264 KB/sb [====================] (00m:05s) Decompressing... Finished scipy (00m:07s) 21 MB 2 MB/s Preparing transaction: done Verifying transaction: done Executing transaction: done (base) Maria@MacBook-Pro-6 ~ % mamba create -n pymt python=3

              __    __    __    __
             /  \  /  \  /  \  /  \
            /    \/    \/    \/    \

███████████████/ /██/ /██/ /██/ /████████████████████████ / / \ / \ / \ / \ _ / / _/ _/ _/ \ o _, / _/ ___/ ` |/ ███╗ ███╗ █████╗ ███╗ ███╗██████╗ █████╗ ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗ ██╔████╔██║███████║██╔████╔██║██████╔╝███████║ ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║ ██║ ╚═╝ ██║██║ ██║██║ ╚═╝ ██║██████╔╝██║ ██║ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝

    mamba (0.4.2) supported by @QuantStack

    GitHub:  https://github.com/QuantStack/mamba
    Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████

WARNING: A conda environment already exists at '/Users/Maria/opt/anaconda3/envs/pymt' Remove existing environment (y/[n])? y

pkgs/main/osx-64 [====================] (00m:00s) No change pkgs/r/osx-64 [====================] (00m:00s) No change pkgs/main/noarch [====================] (00m:00s) No change pkgs/r/noarch [====================] (00m:00s) No change

Looking for: ['python=3']

Transaction

Prefix: /Users/Maria/opt/anaconda3/envs/pymt

Updating specs:

─────────────────────────────────────────────────────────────────────────────

Confirm changes: [Y/n] Y Preparing transaction: done Verifying transaction: done Executing transaction: done #

To activate this environment, use

#

$ conda activate pymt

#

To deactivate an active environment, use

#

$ conda deactivate

(base) Maria@MacBook-Pro-6 ~ % conda activate pymt (pymt) Maria@MacBook-Pro-6 ~ % mamba install pymt

              __    __    __    __
             /  \  /  \  /  \  /  \
            /    \/    \/    \/    \

███████████████/ /██/ /██/ /██/ /████████████████████████ / / \ / \ / \ / \ _ / / _/ _/ _/ \ o _, / _/ ___/ ` |/ ███╗ ███╗ █████╗ ███╗ ███╗██████╗ █████╗ ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗ ██╔████╔██║███████║██╔████╔██║██████╔╝███████║ ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║ ██║ ╚═╝ ██║██║ ██║██║ ╚═╝ ██║██████╔╝██║ ██║ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝

    mamba (0.4.2) supported by @QuantStack

    GitHub:  https://github.com/QuantStack/mamba
    Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████

pkgs/main/osx-64 [====================] (00m:00s) No change pkgs/main/noarch [====================] (00m:00s) No change pkgs/r/osx-64 [====================] (00m:00s) No change pkgs/r/noarch [====================] (00m:00s) No change

Looking for: ['pymt']

Encountered problems while solving. Problem: nothing provides requested pymt

(pymt) Maria@MacBook-Pro-6 ~ % mamba install pymt

              __    __    __    __
             /  \  /  \  /  \  /  \
            /    \/    \/    \/    \

███████████████/ /██/ /██/ /██/ /████████████████████████ / / \ / \ / \ / \ _ / / _/ _/ _/ \ o _, / _/ ___/ ` |/ ███╗ ███╗ █████╗ ███╗ ███╗██████╗ █████╗ ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗ ██╔████╔██║███████║██╔████╔██║██████╔╝███████║ ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║ ██║ ╚═╝ ██║██║ ██║██║ ╚═╝ ██║██████╔╝██║ ██║ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝

    mamba (0.4.2) supported by @QuantStack

    GitHub:  https://github.com/QuantStack/mamba
    Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████

pkgs/r/osx-64 [====================] (00m:00s) No change pkgs/main/osx-64 [====================] (00m:00s) No change pkgs/r/noarch [====================] (00m:00s) No change pkgs/main/noarch [====================] (00m:00s) No change

Looking for: ['pymt']

Encountered problems while solving. Problem: nothing provides requested pymt

(pymt) Maria@MacBook-Pro-6 ~ % python Python 3.11.0 (main, Mar 1 2023, 12:49:28) [Clang 14.0.6 ] on darwin Type "help", "copyright", "credits" or "license" for more information.

import pymt Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'pymt'

mdpiper commented 1 year ago

You've actually got it--you installed pymt into your base environment with your first call to mamba. If you're currently in an environment, deactivate it to return to the base environment.

In the future, you should need just two commands to create and activate an environment with pymt:

mamba create -n pymt python=3.9 pymt
conda activate pymt

P.S. Thanks for pasting in the output of the commands--it made it much easier for me to diagnose what went wrong.