mu-editor / crash-reports

0 stars 1 forks source link

MU-Editor does not start with python 3.81rc1 #619

Open JeanMichelGarcia opened 7 months ago

JeanMichelGarcia commented 7 months ago

mu.log REMEMBER TO ATTACH YOUR LOG FILE

Version: 1.2.0 Locale: fr_FR Platform: Windows 10 10.0.22000 AMD64

line 661, in ensure_and_create
    self.ensure()
  File "c:\program files\python38\lib\site-packages\mu\virtual_environment.py", line 701, in ensure
    self.ensure_key_modules()
  File "c:\program files\python38\lib\site-packages\mu\virtual_environment.py", line 806, in ensure_key_modules
    raise VirtualEnvironmentEnsureError(
mu.virtual_environment.VirtualEnvironmentEnsureError: Failed to import: flask
STDERR: Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\Users\jean-michel\AppData\Local\python\mu\mu_venv-38-20240216-214032\lib\site-packages\flask\__init__.py", line 7, in <module>
    from .app import Flask as Flask
  File "D:\Users\jean-michel\AppData\Local\python\mu\mu_venv-38-20240216-214032\lib\site-packages\flask\app.py", line 28, in <module>
    from . import cli
  File "D:\Users\jean-michel\AppData\Local\python\mu\mu_venv-38-20240216-214032\lib\site-packages\flask\cli.py", line 18, in <module>
    from .helpers import get_debug_flag
  File "D:\Users\jean-michel\AppData\Local\python\mu\mu_venv-38-20240216-214032\lib\site-packages\flask\helpers.py", line 16, in <module>
    from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (D:\Users\jean-michel\AppData\Local\python\mu\mu_venv-38-20240216-214032\lib\site-packages\werkzeug\urls.py)
carlosperate commented 7 months ago

Hi @JeanMichelGarcia, thanks for the report!

I think the issue is that Flask 2 needs Werkzeug 2, and by default it installed the latest (v3). We've added a fix to the codebase, but haven't made a release yet: https://github.com/mu-editor/mu/pull/2465

Would you be able to test the latest test installer to see if it fixes the issue for you?

You need to be logged into GitHub to be able to download the file: https://github.com/mu-editor/mu/actions/runs/7781737671

image
JeanMichelGarcia commented 7 months ago

Hi @carlosperate mu 1.2.2 for windows 64 is installing right The problem is the pip install still 1.2.0 and not running with the error i sent

carlosperate commented 7 months ago

mu 1.2.2 for windows 64 is installing right

Are you able to run Mu 1.2.2 after installing it? Or does it show the same error?

JeanMichelGarcia commented 7 months ago

It’s running when by windows installer installed !!

De : Carlos Pereira Atencio @.> Envoyé : lundi 4 mars 2024 11:56 À : mu-editor/crash-reports @.> Cc : JeanMichelGarcia @.>; Mention @.> Objet : Re: [mu-editor/crash-reports] MU-Editor does not start with python 3.81rc1 (Issue #619)

mu 1.2.2 for windows 64 is installing right

Are you able to run Mu 1.2.2 after installing it? Or does it show the same error?

— Reply to this email directly, view it on GitHub https://github.com/mu-editor/crash-reports/issues/619#issuecomment-1976311053 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AES3QGYT57DKHZNTYCBNYNDYWRHNHAVCNFSM6AAAAABDMUB4P2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZWGMYTCMBVGM . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AES3QG3DO6DYU5X7MO23PX3YWRHNHA5CNFSM6AAAAABDMUB4P2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTVZQOQ2.gif Message ID: @. @.> >

carlosperate commented 7 months ago

Thanks for confirming @JeanMichelGarcia, I'm glad the fix works for you.

Once we make the v1.2.2 release you should be able to pip install it as well.

In the meantime, you can probably pip install Mu via git url:

pip install git+https://github.com/mu-editor/mu.git
JeanMichelGarcia commented 7 months ago

Thanks for the tip. I will try asap

BR

De : Carlos Pereira Atencio @.> Envoyé : mardi 5 mars 2024 15:54 À : mu-editor/crash-reports @.> Cc : JeanMichelGarcia @.>; Mention @.> Objet : Re: [mu-editor/crash-reports] MU-Editor does not start with python 3.81rc1 (Issue #619)

Thanks for confirming @JeanMichelGarcia https://github.com/JeanMichelGarcia , I'm glad the fix works for you.

Once we make the v1.2.2 release you should be able to pip install it as well.

In the meantime, you can probably pip install Mu via git url:

pip install git+https://github.com/mu-editor/mu.git

— Reply to this email directly, view it on GitHub https://github.com/mu-editor/crash-reports/issues/619#issuecomment-1978953994 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AES3QG5FYS35JNDGFLEI7ADYWXMAJAVCNFSM6AAAAABDMUB4P2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZYHE2TGOJZGQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AES3QG3CRUAZSIBKCET5SHTYWXMAJA5CNFSM6AAAAABDMUB4P2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTV6RYQU.gif Message ID: @. @.> >