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

Install fails with some npm versions for some environment names #188

Open
michaelaye opened this issue Apr 9, 2019 · 3 comments
Open

Install fails with some npm versions for some environment names #188

michaelaye opened this issue Apr 9, 2019 · 3 comments

Comments

@michaelaye
Copy link

I'm currently have a problem that a previously working standard way of setting up my envs currently fails on the conda-forge site.

Here's a simple complete procedure that works on the defaults channel:

conda create -n test_defaults python=3.7 jupyterlab -c defaults
conda activate test_defaults
jupyter labextension install @jupyterlab/geojson-extension

The same done with conda-forge fails for me currently, on the yarn end it seems:

conda create -n test_forge python=3.7 jupyterlab -c defaults
conda activate test_forge
jupyter labextension install @jupyterlab/geojson-extension

ends with:

jupyterlab-geojson-extension-0.18.1.tgz
Node v11.13.0

> node /Users/klay6683/miniconda3/envs/py37/lib/python3.7/site-packages/jupyterlab/staging/yarn.js install
yarn install v1.9.4
info No lockfile found.
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
warning @jupyterlab/application > @jupyterlab/apputils > react > fbjs > core-js@1.2.7: core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
warning css-loader > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
[3/5] 🚚  Fetching packages...
[-------------------------------------------------------------------------------------------] 0/836(node:52671) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[4/5] 🔗  Linking dependencies...
warning "@jupyterlab/vdom-extension > @nteract/transform-vdom@1.1.1" has incorrect peer dependency "react@^15.6.1".
warning "@jupyterlab/vega4-extension > vega-embed > vega-themes@2.3.0" has unmet peer dependency "vega@*".
[5/5] 📃  Building fresh packages...
success Saved lockfile.
   Done in 63.38s.
> node /Users/klay6683/miniconda3/envs/py37/lib/python3.7/site-packages/jupyterlab/staging/yarn.js run build
yarn run v1.9.4
$ webpack
error Command failed with signal "SIGSEGV".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

My conda info:

     active environment : py37
    active env location : /Users/klay6683/miniconda3/envs/py37
            shell level : 4
       user config file : /Users/klay6683/.condarc
 populated config files : /Users/klay6683/.condarc
                          /Users/klay6683/miniconda3/envs/py37/.condarc
          conda version : 4.6.11
    conda-build version : not installed
         python version : 3.7.3.final.0
       base environment : /Users/klay6683/miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/osx-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/klay6683/miniconda3/pkgs
                          /Users/klay6683/.conda/pkgs
       envs directories : /Users/klay6683/miniconda3/envs
                          /Users/klay6683/.conda/envs
               platform : osx-64
             user-agent : conda/4.6.11 requests/2.21.0 CPython/3.7.3 Darwin/18.2.0 OSX/10.14.3
                UID:GID : 273771:2260
             netrc file : None
           offline mode : False

Let me know if I can run the install with some kind of debugging mode to get more info on the failure?

@michaelaye
Copy link
Author

ok, this just took a turn for the much more bizarre.

It's NOT the conda channel that makes the difference, it's the environment name!

This one works:

conda create -n test_defaults python=3.7 jupyterlab -c defaults
conda activate test_defaults
jupyter labextension install @jupyterlab/geojson-extension

This one fails:

conda create -n py37 python=3.7 jupyterlab -c defaults
conda activate py37
jupyter labextension install @jupyterlab/geojson-extension

Now trying different env names...

@michaelaye
Copy link
Author

These env names work:

  • py3
  • ve37
  • py36 (both using a python3.6 and py3.7 dist in that env name)
  • py37_1

Only one that fails so far is env name py37, how??

@michaelaye
Copy link
Author

michaelaye commented Apr 10, 2019

Ok, next variable is the version of the used npm. Using homebrew's node v11.13.0 for all above tests where it fails. Installing the older node v10.13 from the defaults channel, the install works, and using conda-forge's node 11.11 also works.

@michaelaye michaelaye changed the title Same install works on defaults, fails on conda-forge Install fails with some npm versions for some environment names Apr 11, 2019
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

1 participant