Ridog / MidJourney_WebWrapper

Takes the discord out of Midjourney
Creative Commons Zero v1.0 Universal
3 stars 0 forks source link

Error running program #1

Open caeken opened 1 year ago

caeken commented 1 year ago

An error occurred while running the program, prompting the following message:

Traceback (most recent call last): File "main.py", line 2, in from flask_app import start_flask_app, stop_flask_app File "/usr/src/app/flask_app.py", line 2, in from flask_socketio import SocketIO, send File "/usr/local/lib/python3.4/site-packages/flask_socketio/init.py", line 21, in import socketio File "/usr/local/lib/python3.4/site-packages/socketio/init.py", line 3, in from .client import Client File "/usr/local/lib/python3.4/site-packages/socketio/client.py", line 7, in import engineio File "/usr/local/lib/python3.4/site-packages/engineio/init.py", line 3, in from .client import Client File "/usr/local/lib/python3.4/site-packages/engineio/client.py", line 2, in from json import JSONDecodeError ImportError: cannot import name 'JSONDecodeError'

I have tried many methods but failed to solve the problem. What is the reason?

Ridog commented 1 year ago

Hey sorry! All this code is super early alpha I haven't really prepped it for release. It looks like you are using python 3.4. I developed this with 3.11 so try updating your python installation and then see if it works.