xnd-project / numba-xnd

Integrating xnd into numba
https://xnd.io/
5 stars 1 forks source link

Lauching mybinder fails #14

Closed andersy005 closed 6 years ago

andersy005 commented 6 years ago

There seems to be an issue with https://github.com/Quansight/numba-xnd/blob/master/structinfo_config.py#L16 on mybinder.

and here is the output from mybinder build logs

Using /srv/conda/lib/python3.6/site-packages
Finished processing dependencies for numba==0+unknown
Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    import structinfo_config as xinfo_config
  File "/home/jovyan/structinfo_config.py", line 16, in <module>
    PREFIX = os.environ["CONDA_PREFIX"]
  File "/srv/conda/lib/python3.6/os.py", line 669, in __getitem__
    raise KeyError(key) from None
KeyError: 'CONDA_PREFIX'
saulshanabrook commented 6 years ago

Yeah I had seen those errors... I will get that working.

On Tue, Aug 14, 2018 at 5:23 PM Anderson Banihirwe notifications@github.com wrote:

There seems to be an issue with https://github.com/Quansight/numba-xnd/blob/master/structinfo_config.py#L16 on mybinder.

and here is the output from mybinder build logs

Using /srv/conda/lib/python3.6/site-packages Finished processing dependencies for numba==0+unknown Traceback (most recent call last): File "setup.py", line 7, in import structinfo_config as xinfo_config File "/home/jovyan/structinfo_config.py", line 16, in PREFIX = os.environ["CONDA_PREFIX"] File "/srv/conda/lib/python3.6/os.py", line 669, in getitem raise KeyError(key) from NoneKeyError: 'CONDA_PREFIX'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Quansight/numba-xnd/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/ABIZTGSKeJldraTwCNXW5Y_oq5GWO_Dyks5uQutjgaJpZM4V8px2 .

andersy005 commented 6 years ago

It looks like mybinder doesn't create the specified environment in environment.yml. It just updates the root environment using environment.yml

Step 30/39 : RUN conda env update -n root -f "environment.yml" && conda clean -tipsy && conda list -n root

I believe this explains why $CONDA_PREFIX environment variable is not set.

saulshanabrook commented 6 years ago

Interesting... If you know of any fixes, they would be much appreaciated.

On Tue, Aug 14, 2018 at 6:00 PM Anderson Banihirwe notifications@github.com wrote:

It looks like mybinder doesn't create the specified environment in environment.yml. It just updates the root environment using environment.yml

Step 30/39 : RUN conda env update -n root -f "environment.yml" && conda clean -tipsy && conda list -n root

I believe this explains why $CONDA_PREFIX environment variable is not set.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Quansight/numba-xnd/issues/14#issuecomment-412923911, or mute the thread https://github.com/notifications/unsubscribe-auth/ABIZTFJcZBEgwJ4MvNWuhhDj-Wb4faviks5uQvQhgaJpZM4V8px2 .

andersy005 commented 6 years ago

I am going to look into it. I will submit a PR once I know how to fix the issue

saulshanabrook commented 6 years ago

Thank you, much appreciated.

On Tue, Aug 14, 2018 at 6:52 PM Anderson Banihirwe notifications@github.com wrote:

I am going to look into it. I will submit a PR once I know how to fix the issue

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Quansight/numba-xnd/issues/14#issuecomment-412940818, or mute the thread https://github.com/notifications/unsubscribe-auth/ABIZTFOgJ1KeFfXyiyo9lF8hBvFuExxHks5uQwBKgaJpZM4V8px2 .