Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash Report - jupyter_client (old) version is incompatible #1451

Closed
zeromancer91 opened this issue Apr 8, 2021 · 7 comments
Closed

Crash Report - jupyter_client (old) version is incompatible #1451

zeromancer91 opened this issue Apr 8, 2021 · 7 comments
Labels

Comments

@zeromancer91
Copy link

mu.log
REMEMBER TO ATTACH YOUR LOG FILE

Version: 1.1.0.beta.3
Locale: en_US
Platform: Linux 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l

Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/mu/modes/python3.py", line 109, in start_kernel
    self.repl_kernel_manager.start_kernel()
  File "/home/pi/.local/lib/python3.7/site-packages/mu/modes/python3.py", line 42, in start_kernel
    kernel_cmd, kw = self.pre_start_kernel(**kw)
AttributeError: 'MuKernelManager' object has no attribute 'pre_start_kernel'

@carlosperate
Copy link
Member

Thanks for the report @zeromancer91, could you provide a bit more info about your system? Like version and platform of your Linux distribution.
Looks like you might be running this from a Raspberry Pi, what installation instructions did you follow?
Could you also copy/paste the output of this terminal command?

python3 -m pip list

Thanks again!

@carlosperate
Copy link
Member

Hi @zeromancer91, just a friendly reminder if you could provide the info and run the command from my previous message?
It would really help us debug this issue to ensure it gets fixed in future releases.

Thanks!

@zeromancer91
Copy link
Author

zeromancer91 commented Apr 29, 2021 via email

@carlosperate
Copy link
Member

Thanks @zeromancer91! This looks related to issue #1516 and PR #1517.

The easiest way to fix this would be to update the jupyter_client package to a newer version. However, since the reason you have an old version is because some other application in your computer is using it, there is a risk that updating it could cause issues in that other application.

You can install Mu in a virtual environment, this isolates the Mu installation, so that its dependencies are not combined with the system packages.
The main inconvenience from using a virtual environment is that it has to be "installed" somewhere (a folder where all the dependencies are stored), and then every time you want to use Mu you'll have to "activate" it.

These are the steps:

  1. In a terminal, navigate to a directory where you want to install the virtual environment
  2. Run this to create the virtual environment in a folder named mu-venv: virtualenv --python=python3 mu-venv
    • If you are using a Raspberry Pi then it needs to be virtualenv --python=python3 mu-venv --system-site-packages instead (this adds the extra --system-site-packages flag)
  3. Run this to activate it: source mu-venv/bin/activate
  4. Run this to install Mu in the virtual environment: pip install mu-editor==1.1.0b4
  5. Run Mu from the virtual environment: mu-editor

Every time you want to run Mu you'd have to do steps 1, 3, and 5 (2 and 4 are only required to install it).

Alternatively I like to use the pipx tool: https://pipxproject.github.io/pipx/
If you install it you can then use pipx to automatically install Python applications in their own isolated virtual environment, and they can be run without manually activating the environment:

  • Install pipx
    • Update pip: python3 -m pip install --upgrade pip
    • Run: python3 -m pip install --user pipx
    • Run: python3 -m pipx ensurepath
  • After installation you might need to close all your terminals and open a new one (or maybe even reboot, the last command should print out information)
  • Now that is pipx is installed and configured you can use it to install Mu: pipx install mu-editor==1.1.0b4
    • If you are using a Raspberry Pi this command should be pipx install mu-editor==1.1.0b4 --system-site-packages instead
  • And you can run Mu: mu-editor

@carlosperate carlosperate changed the title Crash Report Crash Report - jupyter_client (old) version is incompatible May 4, 2021
@carlosperate
Copy link
Member

Hi @zeromancer91, I was wondering if you managed to resolve this issue?

@carlosperate
Copy link
Member

Hi @zeromancer91,

We've updated the jupyter requirements in the latest betas. Would you be able to check if beta.5 works for you and let us know the result?
https://github.com/mu-editor/mu/releases/tag/1.1.0-beta.5

Thanks!

@carlosperate
Copy link
Member

I believe this problem should be resolved in beta.5 so I'll close this issue due to lack of activity.

However, if you are still experiencing this problem with the latest beta please reopen it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants