Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation issue in Jupyter notebook #16

Open
mdredyanahmed opened this issue Apr 1, 2021 · 6 comments
Open

installation issue in Jupyter notebook #16

mdredyanahmed opened this issue Apr 1, 2021 · 6 comments

Comments

@mdredyanahmed
Copy link

I tried to install via this command in jupyter notebook in MacBook Pro m1:
conda install -c mcgibbon atmos

but the output is showing this: Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  • atmos -> python[version='2.6.|2.7.|3.3.|3.4.']

Your python: python=3.8

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

Note: you may need to restart the kernel to use updated packages.

even pip install atmos
isn't working too.

If I write import atmos, it's not being imported too.
What should I do in this regard to install and run atmos?

@mcgibbon
Copy link
Contributor

mcgibbon commented Apr 2, 2021

The conda release is very old. I would recommend installing via pip. Here are some questions that can help me help you:

Is it an error on install, or on import? If the install works fine, what is the output of python -c "import atmos"?

Are you running it in a conda environment, venv, or your system?

What are the outputs of which pip and which python?

Can you give me any more details about the error?

@mdredyanahmed
Copy link
Author

I tried this in Jupyter notebook. Neither the installation nor the import is working . Even they are unable to recognize atmos.
I am running in anaconda . I launched the jupyter notebook via anaconda.

pip 20.2.4 version
python 3.8
Kindly help me to install atmos in jupyter notebook or locally in MacBook Pro M1.

@mcgibbon
Copy link
Contributor

mcgibbon commented Apr 5, 2021

I'd be happy to help. I need more information about your issue. When you say they "aren't working", can you please give me full details, whether that is a screenshot of your error or a copy-paste of the error messages/output from the command and full details about the command(s) you're running?

Specifically, let's try to debug the pip installation. When you say "even pip install atmos isn't working too", what does that mean exactly?

What are the outputs of which pip and which python on your machine?

@mcgibbon
Copy link
Contributor

mcgibbon commented Apr 5, 2021

I think I found the issue with the pip installation. The setup file depended on pip features which have been removed. You should be able to install a fixed version with pip install git+https://github.com/atmos-python/atmos.git@cb6d5591e92da8382520a02eb5a9986b7c6e2390 (which should work). Please copy paste or screenshot the full output if it does not work.

Here is the output I get, on a fresh conda install created with conda create -n atmos python=3.8, on my Macbook Pro:

(base) mcgibbon ~/python/atmos (fix/setup) $ conda activate atmos
(atmos) mcgibbon ~/python/atmos (fix/setup) $ pip install git+https://github.com/atmos-python/atmos.git@cb6d5591e92da8382520a02eb5a9986b7c6e2390
Collecting git+https://github.com/atmos-python/atmos.git@cb6d5591e92da8382520a02eb5a9986b7c6e2390
  Cloning https://github.com/atmos-python/atmos.git (to revision cb6d5591e92da8382520a02eb5a9986b7c6e2390) to /private/var/folders/gc/ysk5llb56xx55fdvfdlhmh0c0000gn/T/pip-req-build-7l9bwe9w
  Running command git clone -q https://github.com/atmos-python/atmos.git /private/var/folders/gc/ysk5llb56xx55fdvfdlhmh0c0000gn/T/pip-req-build-7l9bwe9w
  Running command git rev-parse -q --verify 'sha^cb6d5591e92da8382520a02eb5a9986b7c6e2390'
  Running command git fetch -q https://github.com/atmos-python/atmos.git cb6d5591e92da8382520a02eb5a9986b7c6e2390
  Running command git checkout -q cb6d5591e92da8382520a02eb5a9986b7c6e2390
Collecting six>=1.9.0
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting numexpr>=2.3.0
  Using cached numexpr-2.7.3-cp38-cp38-macosx_10_9_x86_64.whl (99 kB)
Collecting numpy>=1.6
  Using cached numpy-1.20.2-cp38-cp38-macosx_10_9_x86_64.whl (16.0 MB)
Collecting nose>=1.3
  Using cached nose-1.3.7-py3-none-any.whl (154 kB)
Requirement already satisfied: setuptools>=15.0 in /Users/mcgibbon/anaconda3/envs/atmos/lib/python3.8/site-packages (from atmos==0.2.5) (52.0.0.post20210125)
Collecting pint>=0.6
  Using cached Pint-0.17-py2.py3-none-any.whl (204 kB)
Collecting packaging
  Using cached packaging-20.9-py2.py3-none-any.whl (40 kB)
Collecting pyparsing>=2.0.2
  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Building wheels for collected packages: atmos
  Building wheel for atmos (setup.py) ... done
  Created wheel for atmos: filename=atmos-0.2.5-py3-none-any.whl size=29882 sha256=8da18ec16a7e801d3e2ea73945c7ff870f0d2dfe481dabf092ec0ca3bd6b4e1b
  Stored in directory: /Users/mcgibbon/Library/Caches/pip/wheels/61/ae/9e/cfb257b9cba221072daa49c89e3320eb24eff9589f85503a70
Successfully built atmos
Installing collected packages: pyparsing, packaging, numpy, six, pint, numexpr, nose, atmos
Successfully installed atmos-0.2.5 nose-1.3.7 numexpr-2.7.3 numpy-1.20.2 packaging-20.9 pint-0.17 pyparsing-2.4.7 six-1.15.0
(atmos) mcgibbon ~/python/atmos (fix/setup) $ python
Python 3.8.8 (default, Feb 24 2021, 13:46:16)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import atmos

If this works for you, I'll merge it in to the main branch.

@mdredyanahmed
Copy link
Author

pip install atmosc finally worked for me in anaconda based terminal

@mcgibbon
Copy link
Contributor

pip install atmosc finally worked for me in anaconda based terminal

Was this with the fixed version of the code, or with the previous version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants