-
Notifications
You must be signed in to change notification settings - Fork 41
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
[Bug] Mirage stuck on loading screen #268
Comments
Seems like a rebuild of mirage is needed. If that fixes it for you please report it to the maintainer of the AUR package so they can increase the |
I just did a |
I've already attempted to rebuild Mirage, did it again just now and the error is persisting |
@proudmuslim-dev I think you are missing the point in latest post by @DrRac27: Some dependency of Mirage (not Mirage itself) might need recompiling. |
I have the same error on debian, building from source or with the official package: From source: ~ 18:20:27 | Got library name: "/usr/lib/x86_64-linux-gnu/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so"
~ 18:20:28 | "PyOtherSide error: Traceback (most recent call last):\n\n File \"/home/zapashcanon/dev/py/mirage/src/backend/qml_bridge.py\", line 28, in <module>\n from .pyotherside_events import CoroutineDone, LoopException\n\n File \"/home/zapashcanon/dev/py/mirage/src/backend/pyotherside_events.py\", line 10, in <module>\n from .utils import serialize_value_for_qml\n\n File \"/home/zapashcanon/dev/py/mirage/src/backend/utils.py\", line 32, in <module>\n from nio.crypto import AsyncDataT as File\n\n File \"/home/zapashcanon/.local/lib/python3.9/site-packages/nio/__init__.py\", line 2, in <module>\n from .client import *\n\n File \"/home/zapashcanon/.local/lib/python3.9/site-packages/nio/client/__init__.py\", line 6, in <module>\n from .async_client import AsyncClient, AsyncClientConfig, DataProvider\n\n File \"/home/zapashcanon/.local/lib/python3.9/site-packages/nio/client/async_client.py\", line 47, in <module>\n from aiohttp import (\n\n File \"/usr/lib/python3/dist-packages/aiohttp/__init__.py\", line 6, in <module>\n from .client import (\n\n File \"/usr/lib/python3/dist-packages/aiohttp/client.py\", line 35, in <module>\n from . import hdrs, http, payload\n\n File \"/usr/lib/python3/dist-packages/aiohttp/http.py\", line 7, in <module>\n from .http_parser import (\n\n File \"/usr/lib/python3/dist-packages/aiohttp/http_parser.py\", line 15, in <module>\n from .helpers import NO_EXTENSIONS, BaseTimerContext\n\n File \"/usr/lib/python3/dist-packages/aiohttp/helpers.py\", line 667, in <module>\n class CeilTimeout(async_timeout.timeout):\n\nTypeError: function() argument 'code' must be code, not str\n"
! 18:20:28 | Unhandled PyOtherSide error: Cannot import module: backend.qml_bridge (Traceback (most recent call last):
File "/home/zapashcanon/dev/py/mirage/src/backend/qml_bridge.py", line 28, in <module>
from .pyotherside_events import CoroutineDone, LoopException
File "/home/zapashcanon/dev/py/mirage/src/backend/pyotherside_events.py", line 10, in <module>
from .utils import serialize_value_for_qml
File "/home/zapashcanon/dev/py/mirage/src/backend/utils.py", line 32, in <module>
from nio.crypto import AsyncDataT as File
File "/home/zapashcanon/.local/lib/python3.9/site-packages/nio/__init__.py", line 2, in <module>
from .client import *
File "/home/zapashcanon/.local/lib/python3.9/site-packages/nio/client/__init__.py", line 6, in <module>
from .async_client import AsyncClient, AsyncClientConfig, DataProvider
File "/home/zapashcanon/.local/lib/python3.9/site-packages/nio/client/async_client.py", line 47, in <module>
from aiohttp import (
File "/usr/lib/python3/dist-packages/aiohttp/__init__.py", line 6, in <module>
from .client import (
File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 35, in <module>
from . import hdrs, http, payload
File "/usr/lib/python3/dist-packages/aiohttp/http.py", line 7, in <module>
from .http_parser import (
File "/usr/lib/python3/dist-packages/aiohttp/http_parser.py", line 15, in <module>
from .helpers import NO_EXTENSIONS, BaseTimerContext
File "/usr/lib/python3/dist-packages/aiohttp/helpers.py", line 667, in <module>
class CeilTimeout(async_timeout.timeout):
TypeError: function() argument 'code' must be code, not str
)
~ 18:20:28 | "PyOtherSide error: Traceback (most recent call last):\n\n File \"<string>\", line 1, in <module>\n\nNameError: name 'BRIDGE' is not defined\n"
! 18:20:28 | Unhandled PyOtherSide error: Function not found: 'BRIDGE.call_backend_coro' (Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'BRIDGE' is not defined Official package: matrix-mirage
~ 18:21:35 | Got library name: "/usr/lib/x86_64-linux-gnu/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so"
~ 18:21:36 | "PyOtherSide error: Traceback (most recent call last):\n\n File \"qrc:/src/backend/qml_bridge.py\", line 28, in <module>\n from .pyotherside_events import CoroutineDone, LoopException\n\n File \"qrc:/src/backend/pyotherside_events.py\", line 10, in <module>\n from .utils import serialize_value_for_qml\n\n File \"qrc:/src/backend/utils.py\", line 32, in <module>\n from nio.crypto import AsyncDataT as File\n\n File \"/home/zapashcanon/.local/lib/python3.9/site-packages/nio/__init__.py\", line 2, in <module>\n from .client import *\n\n File \"/home/zapashcanon/.local/lib/python3.9/site-packages/nio/client/__init__.py\", line 6, in <module>\n from .async_client import AsyncClient, AsyncClientConfig, DataProvider\n\n File \"/home/zapashcanon/.local/lib/python3.9/site-packages/nio/client/async_client.py\", line 47, in <module>\n from aiohttp import (\n\n File \"/usr/lib/python3/dist-packages/aiohttp/__init__.py\", line 6, in <module>\n from .client import (\n\n File \"/usr/lib/python3/dist-packages/aiohttp/client.py\", line 35, in <module>\n from . import hdrs, http, payload\n\n File \"/usr/lib/python3/dist-packages/aiohttp/http.py\", line 7, in <module>\n from .http_parser import (\n\n File \"/usr/lib/python3/dist-packages/aiohttp/http_parser.py\", line 15, in <module>\n from .helpers import NO_EXTENSIONS, BaseTimerContext\n\n File \"/usr/lib/python3/dist-packages/aiohttp/helpers.py\", line 667, in <module>\n class CeilTimeout(async_timeout.timeout):\n\nTypeError: function() argument 'code' must be code, not str\n"
! 18:21:36 | Unhandled PyOtherSide error: Cannot import module: backend.qml_bridge (Traceback (most recent call last):
File "qrc:/src/backend/qml_bridge.py", line 28, in <module>
from .pyotherside_events import CoroutineDone, LoopException
File "qrc:/src/backend/pyotherside_events.py", line 10, in <module>
from .utils import serialize_value_for_qml
File "qrc:/src/backend/utils.py", line 32, in <module>
from nio.crypto import AsyncDataT as File
File "/home/zapashcanon/.local/lib/python3.9/site-packages/nio/__init__.py", line 2, in <module>
from .client import *
File "/home/zapashcanon/.local/lib/python3.9/site-packages/nio/client/__init__.py", line 6, in <module>
from .async_client import AsyncClient, AsyncClientConfig, DataProvider
File "/home/zapashcanon/.local/lib/python3.9/site-packages/nio/client/async_client.py", line 47, in <module>
from aiohttp import (
File "/usr/lib/python3/dist-packages/aiohttp/__init__.py", line 6, in <module>
from .client import (
File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 35, in <module>
from . import hdrs, http, payload
File "/usr/lib/python3/dist-packages/aiohttp/http.py", line 7, in <module>
from .http_parser import (
File "/usr/lib/python3/dist-packages/aiohttp/http_parser.py", line 15, in <module>
from .helpers import NO_EXTENSIONS, BaseTimerContext
File "/usr/lib/python3/dist-packages/aiohttp/helpers.py", line 667, in <module>
class CeilTimeout(async_timeout.timeout):
TypeError: function() argument 'code' must be code, not str
)
~ 18:21:36 | "PyOtherSide error: Traceback (most recent call last):\n\n File \"<string>\", line 1, in <module>\n\nNameError: name 'BRIDGE' is not defined\n"
! 18:21:36 | Unhandled PyOtherSide error: Function not found: 'BRIDGE.call_backend_coro' (Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'BRIDGE' is not defined |
Probably helpful if you can share if you mean Debian stable (bullseye), testing (bookworm), or unstable (sid), and which exact version of the official package. |
Also (depending on what exactly you are doing) it might help to ensure all build-dependencies for the package is installed - e.g. using |
I'm on debian unstable, version |
@zapashcanon did you see my follow-up post? |
Sorry. After installing build deps, I keep having the exact same error with both methods (mirage package from Debian and mirage built from source). (And I don't see why it would have changed something ?) |
If some libraries were missing then that would affect the build - I am not sure how such failure would look like, so I simply suggested to make sure it was all there. It seems your build uses a mixture of system-provided libraries and libraries below |
There's no build failure, it's a runtime error: it fails when I start mirage. If I delete everything in rm -rf ~/.local/lib/python3.9
matrix-mirage
~ 13:42:52 | Got library name: "/usr/lib/x86_64-linux-gnu/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so"
~ 13:42:53 | "PyOtherSide error: Traceback (most recent call last):\n\n File \"qrc:/src/backend/qml_bridge.py\", line 28, in <module>\n from .pyotherside_events import CoroutineDone, LoopException\n\n File \"qrc:/src/backend/pyotherside_events.py\", line 10, in <module>\n from .utils import serialize_value_for_qml\n\n File \"qrc:/src/backend/utils.py\", line 32, in <module>\n from nio.crypto import AsyncDataT as File\n\n File \"/usr/lib/python3/dist-packages/nio/__init__.py\", line 2, in <module>\n from .client import *\n\n File \"/usr/lib/python3/dist-packages/nio/client/__init__.py\", line 6, in <module>\n from .async_client import AsyncClient, AsyncClientConfig, DataProvider\n\n File \"/usr/lib/python3/dist-packages/nio/client/async_client.py\", line 47, in <module>\n from aiohttp import (\n\n File \"/usr/lib/python3/dist-packages/aiohttp/__init__.py\", line 6, in <module>\n from .client import (\n\n File \"/usr/lib/python3/dist-packages/aiohttp/client.py\", line 35, in <module>\n from . import hdrs, http, payload\n\n File \"/usr/lib/python3/dist-packages/aiohttp/http.py\", line 7, in <module>\n from .http_parser import (\n\n File \"/usr/lib/python3/dist-packages/aiohttp/http_parser.py\", line 15, in <module>\n from .helpers import NO_EXTENSIONS, BaseTimerContext\n\n File \"/usr/lib/python3/dist-packages/aiohttp/helpers.py\", line 667, in <module>\n class CeilTimeout(async_timeout.timeout):\n\nTypeError: function() argument 'code' must be code, not str\n"
! 13:42:53 | Unhandled PyOtherSide error: Cannot import module: backend.qml_bridge (Traceback (most recent call last):
File "qrc:/src/backend/qml_bridge.py", line 28, in <module>
from .pyotherside_events import CoroutineDone, LoopException
File "qrc:/src/backend/pyotherside_events.py", line 10, in <module>
from .utils import serialize_value_for_qml
File "qrc:/src/backend/utils.py", line 32, in <module>
from nio.crypto import AsyncDataT as File
File "/usr/lib/python3/dist-packages/nio/__init__.py", line 2, in <module>
from .client import *
File "/usr/lib/python3/dist-packages/nio/client/__init__.py", line 6, in <module>
from .async_client import AsyncClient, AsyncClientConfig, DataProvider
File "/usr/lib/python3/dist-packages/nio/client/async_client.py", line 47, in <module>
from aiohttp import (
File "/usr/lib/python3/dist-packages/aiohttp/__init__.py", line 6, in <module>
from .client import (
File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 35, in <module>
from . import hdrs, http, payload
File "/usr/lib/python3/dist-packages/aiohttp/http.py", line 7, in <module>
from .http_parser import (
File "/usr/lib/python3/dist-packages/aiohttp/http_parser.py", line 15, in <module>
from .helpers import NO_EXTENSIONS, BaseTimerContext
File "/usr/lib/python3/dist-packages/aiohttp/helpers.py", line 667, in <module>
class CeilTimeout(async_timeout.timeout):
TypeError: function() argument 'code' must be code, not str
)
~ 13:42:53 | "PyOtherSide error: Traceback (most recent call last):\n\n File \"<string>\", line 1, in <module>\n\nNameError: name 'BRIDGE' is not defined\n"
! 13:42:53 | Unhandled PyOtherSide error: Function not found: 'BRIDGE.call_backend_coro' (Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'BRIDGE' is not defined
) |
Ah, I misunderstood the nature of the issue. My points remain, though - the mixture og Qt and Python means that some of the same kinds of issues may occur either at build time or at runtime. Sorry, I cannot help more here. If this issue occurs using no custom-downloaded or custom-built code, only using the official Debian package, then please report that as an issue in Debian using the command-line tool |
As I said, the same issue arise when using only the official debian package, see my last paste which makes no mention of |
You don't need to report it with Debian if you don't want to. I use the Debian package (and maintain it as well) and I cannot reproduce the issue reported here. In case that's any help to you and/or to the upstream developers. |
I don't understand why but, upgrading to the latest debian package ( |
The issue came back and persists since a month. :/ |
Is the error the same? |
The second half of it yes :
|
You have the wrong version of |
I have the But anyway, it's stuck because of the second part:
And I have no idea how to fix this. :/ |
Quoting Maze (2022-01-10 15:40:57)
You have the wrong version of `mistune`. Try uninstalling the `mistune` python package and installing version 0.8.4-4.
On Debian, you can get it with `apt install python3-mistune`
More accurately, on Debian *testing* you can simply install the python3-mistune package - the very issue you experience (if it was done with Debian packaged Mirage) indicates that you use Debian unstable. More info on this issue in Debian here: https://bugs.debian.org/1001591
|
Bridge is not defined because qml_bridge was not imported because |
@MRAAGH thanks, I believed the two errors where unrelated, thanks. No, I'm just using unstable and the bug pointed by @jonassmedegaard is the one responsible for it. Thanks. :) |
Description
Describe your issue in details, provide error logs or screenshots if possible.
Your environment
matrix-mirage-git
AUR packageSteps to reproduce
Expected behavior
Mirage should open as intended
Actual behavior
Mirage is stuck on the loading screen
Log
I attempted to install libffi from source, and the issue persisted.
The text was updated successfully, but these errors were encountered: