Ask any question about QuantStack projects: xtensor, xeus, voila, Jupyter widgets, mamba
Hi all, I'm trying to use micromamba inside a Dockerfile and am having difficulty. The file:
FROM ubuntu:18.04
RUN apt-get update && apt-get install --yes wget
RUN wget -q -O - https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba && \
./bin/micromamba shell init --shell bash --prefix ~/micromamba && \
echo "micromamba activate" >> ~/.bashrc
RUN micromamba install --name base --yes numpy -c conda-forge
and the result of building:
Step 4/4 : RUN micromamba install --name base --yes numpy -c conda-forge
---> Running in 792a0331ab4c
__
__ ______ ___ ____ _____ ___ / /_ ____ _
/ / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
/ /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
/ .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
/_/
WARNING 'root_prefix' set with default value: /root/micromamba
ERROR Could not use default 'root_prefix': /root/micromamba
ERROR Directory exists, is not empty and not a conda prefix.
The command '/bin/sh -c micromamba install --name base --yes numpy -c conda-forge' returned a non-zero code: 1
micromamba
mamba
/usr/include/xtl/xvariant_impl.hpp:1287:35: error: wrong number of template arguments (1, should be at least 2)
1287 | case B + 29: return MPARK_DISPATCH(B + 29);
| ^~~~~~~~~~~~~~
/usr/include/xtl/xvariant_impl.hpp:1198:16: note: provided for ‘template<bool B, class R, class ... ITs> struct mpark::detail::visitation::base::dispatcher’
1198 | struct dispatcher;
| ^~~~~~~~~~
/usr/include/xtl/xvariant_impl.hpp:1287:35: error: expected ‘;’ before ‘)’ token
1287 | case B + 29: return MPARK_DISPATCH(B + 29);
| ^~~~~~~~~~~~~~
/usr/include/xtl/xvariant_impl.hpp:1287:35: error: expected primary-expression before ‘)’ token
/usr/include/xtl/xvariant_impl.hpp:1288:35: error: wrong number of template arguments (1, should be at least 2)
1288 | case B + 30: return MPARK_DISPATCH(B + 30);
| ^~~~~~~~~~~~~~
/usr/include/xtl/xvariant_impl.hpp:1198:16: note: provided for ‘template<bool B, class R, class ... ITs> struct mpark::detail::visitation::base::dispatcher’
1198 | struct dispatcher;
| ^~~~~~~~~~
/usr/include/xtl/xvariant_impl.hpp:1288:35: error: expected ‘;’ before ‘)’ token
1288 | case B + 30: return MPARK_DISPATCH(B + 30);
location /
directly to voila apps while voila app is running locally on my machine, it works. But when I am redirecting it for location /notebook1
, I am not able to access the app. I the browser it shows it is loading and kernel is started but gets a 404 in accessing some static files ( ). I am a little new to nginx as well as voila. Any advice or suggestion regarding this would be of great help for me! Here is the nginx.conf file (https://pastebin.com/pHy6pgsU), and here is the voila.json file ( https://pastebin.com/gfx0gE8H), for now have been testing it just for one notebook if it works i will just add for the other two notebooks too with different ports. Here are the error message log I get when I try to open the voila through nginx reverse proxy (https://pastebin.com/C0h7f61S)
base_url
for Voila
(https://github.com/voila-dashboards/voila/blob/b78337b592107fc4824e110d2e311f7a35070f6e/voila/app.py#L152)
voila ... --base_url=/notebook1/
pyvectorize
? I was wondering if there could still be a way around it, e.g., using a lightweight wrapper calling xtensor’s xvectorize
?