Carglglz/jupyter_upydevice_kernel

problems installing on raspberry pi

Mr-Zeno opened this issue · 4 comments

Hello,

After running the install it ends up with the following errors.

$ pip install jupyter-micropython-upydevice -r requirements.txt

  1. Using cached https://www.piwheels.org/simple/esptool/esptool-2.8-py3-none-any.whl (136 kB)
  2. ERROR: Could not find a version that satisfies the requirement mpy-cross (from upydev>=0.3.1->upydevice>=0.2.3->jupyter-micropython-upydevice) (from versions: none)
  3. ERROR: No matching distribution found for mpy-cross (from upydev>=0.3.1->upydevice>=0.2.3->jupyter-micropython-upydevice)

$ python -m mpy_kernel_upydevice.install
/usr/bin/python3.7: Error while finding module specification for 'mpy_kernel_upydevice.install' (ModuleNotFoundError: No module named 'mpy_kernel_upydevice')

Could you help me?

Thanks!

Hi @MrSalmony
I will fix this in the next release, but for now do this:

The requirements.txt file should include:
pyserial
dill
pexpect

  1. Install upydevice:
$ pip3 install upydevice -r requirements.txt

  1. Then install jupyter-micropython-upydevice
$ pip3 install jupyter-micropython-upydevice

  1. Finally install the kernel
$ python3 -m mpy_kernel_upydevice.install

👍

Hello @Carglglz

I have tried your suggestion, but still running on errors.
$ pip3 install jupyter-micropython-upydevice
ERROR: Could not find a version that satisfies the requirement mpy-cross (from upydev>=0.3.1->upydevice>=0.2.3->jupyter-micropython-upydevice) (from versions: none)
ERROR: No matching distribution found for mpy-cross (from upydev>=0.3.1->upydevice>=0.2.3->jupyter-micropython-upydevice)

$ python3 -m mpy_kernel_upydevice.install
/usr/bin/python3: Error while finding module specification for 'mpy_kernel_upydevice.install' (ModuleNotFoundError: No module named 'mpy_kernel_upydevice')

@MrSalmony

try this instead for jupyter-micropython-upydevice:

$  pip3 install jupyter-micropython-upydevice --no-dependencies

Hello @Carglglz ,

If following message is correct

$ python3 -m mpy_kernel_upydevice.install
Installing IPython kernel spec of micropython
/home/pi/.local/lib/python3.7/site-packages/mpy_kernel_upydevice/install.py:29: DeprecationWarning: replace is ignored. Installing a kernelspec always replaces an existing installation
  k.install_kernel_spec(td, 'Micropython-upydevice', user=user, replace=True, prefix=prefix)
...into /home/pi/.local/share/jupyter/kernels/micropython-upydevice

then is installation was successful. On Jupyter I see the MircoPython Kernel. Tomorrow I will test it further.