brightway-lca / brightway-live

🖥️🌿 Browser-based JupyterHub for Brightway (built on WASM, either based on emscripten-forge or on Pyodide)
https://live.brightway.dev
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

No Packages from `environment.yml` are installed? #18

Closed michaelweinold closed 1 year ago

michaelweinold commented 1 year ago
  __  _____ _   _ ___
  \ \/ / _ \ | | / __|
   >  <  __/ |_| \__ \
  /_/\_\___|\__,_|___/
​
  xeus-python: a Jupyter kernel for Python
  Python 3.10.2

import peewee

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
/tmp/xpython_42/3073019139.py in <cell line: 1>()
----> 1 import peewee

ModuleNotFoundError: No module named 'peewee'
michaelweinold commented 1 year ago

...resolved with https://github.com/brightway-lca/brightway-hub/issues/17. Maybe if some packages are not found (bw2io=0.9.dev21 from conda-forge), none are installed? Also, JupyterLite seems to work best in Chrome for now.

The issue seems to persist, even in the clean testing repo I created: jl_xeus_test.

  __  _____ _   _ ___
  \ \/ / _ \ | | / __|
   >  <  __/ |_| \__ \
  /_/\_\___|\__,_|___/
​
  xeus-python: a Jupyter kernel for Python
  Python 3.10.2

import peewee

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 1
----> 1 import peewee

ModuleNotFoundError: No module named 'peewee'
michaelweinold commented 1 year ago

This is a major blocker (with little hope of resolution without help from the Executablebooks/QuantStack team). Some ideas to escalate the issue:

michaelweinold commented 1 year ago

...evidently resolved in empack=3.1.2. conda-forge feedstock updated currently pending action of the regro-cf-autotick-bot. Install currently still only finds 3.1.1:

                                             __
            __  ______ ___  ____ _____ ___  / /_  ____ _
           / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
          / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
         / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
        /_/

  Transaction

    Prefix: /home/runner/micromamba-root/envs/build-env

    Updating specs:

     - python=3.11
     - jupyter_server=2.7.1
     - jupyterlite-core=0.1.1
     - jupyterlite-xeus-python=0.9.3

    Package                              Version  Build               Channel                   Size
  ────────────────────────────────────────────────────────────────────────────────────────────────────
    Install:
  ────────────────────────────────────────────────────────────────────────────────────────────────────
    empack                         3.1.1        pyhd8ed1ab_0        conda-forge