Carglglz / jupyter_upydevice_kernel

Jupyter MicroPython Kernel made with upydevice
https://pypi.org/project/jupyter-micropython-upydevice/
BSD 3-Clause "New" or "Revised" License
14 stars 2 forks source link

problems installing on raspberry pi #3

Open Mr-Zeno opened 3 years ago

Mr-Zeno commented 3 years ago

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!

Carglglz commented 3 years ago

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

2) Then install jupyter-micropython-upydevice

$ pip3 install jupyter-micropython-upydevice

3) Finally install the kernel

$ python3 -m mpy_kernel_upydevice.install

👍

Mr-Zeno commented 3 years ago

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')

Carglglz commented 3 years ago

@MrSalmony

try this instead for jupyter-micropython-upydevice:

$  pip3 install jupyter-micropython-upydevice --no-dependencies
Mr-Zeno commented 3 years ago

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.