Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: markcolls on November 27, 2020, 10:59:36 PM



Title: Need help getting past error during JoinMarket installation in Debian 10
Post by: markcolls on November 27, 2020, 10:59:36 PM
[SOLVED]: PROBLEM HAS NOW BEEN SOLVED. VISIT https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/737 FOR THE SOLUTION.

I am getting the following error when I run the JM GUI (python joinmarket-qt.py):

Code:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. 
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

I have been searching for a solution for days. I have tried every possible solution I found via google and nothing has worked. Please help me.

I'm on a fresh copy of Debian 10.


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: NotATether on November 28, 2020, 06:44:34 AM
Try running apt-get install libqt5gui5

If that doesn't work, open a terminal and type export QT_DEBUG_PLUGINS=1 and then run the program from the terminal. This won't fix the problem but it will print debug output, please paste it here.


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: markcolls on November 28, 2020, 07:52:10 AM
Try running apt-get install libqt5gui5

If that doesn't work, open a terminal and type export QT_DEBUG_PLUGINS=1 and then run the program from the terminal. His won't fix the problem but it will print debug output, please paste it here.

I installed libqt5gui5, but still got same error. I ran export QT_DEBUG_PLUGINS=1 but there was no output printed on the terminal.


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: TryNinja on November 28, 2020, 07:55:47 AM
I ran export QT_DEBUG_PLUGINS=1 but there was no output printed on the terminal.
You should run the command and then the JM GUI in the same terminal, did you do that?


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: markcolls on November 28, 2020, 08:51:19 AM
I ran export QT_DEBUG_PLUGINS=1 but there was no output printed on the terminal.
You should run the command and then the JM GUI in the same terminal, did you do that?

I did. Still nothing.

https://i.imgur.com/FLFYJxD.png



Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: NotATether on November 28, 2020, 09:27:26 AM
I ran export QT_DEBUG_PLUGINS=1 but there was no output printed on the terminal.
You should run the command and then the JM GUI in the same terminal, did you do that?

I did. Still nothing.

https://i.imgur.com/FLFYJxD.png



You forgot to type export before the command. It should be: export QT_DEBUG_PLUGINS=1

By exporting a variable, you are making it visible to child processes.

What this is supposed to do is print debugging information about the shared library that has failed to load and thus causing the plugin error. It should print output similar to this:

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() looking at "/home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so.debug"
"The shared library was not found."
         not a plugin
QFactoryLoader::QFactoryLoader() checking directory path "/home/inso/build-untitled-Desktop_Qt_5_15_0_GCC_64bit-Debug/platforms" ...
Cannot load library /home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden)
QLibraryPrivate::loadPlugin failed on "/home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

The bold parts are the key information we need to find. If we know the library we can install it with apt.

In your case, the problem may or may not be libxcb-icccm, that's why I'm asking for debug output first.


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: markcolls on November 28, 2020, 09:56:38 AM
I ran export QT_DEBUG_PLUGINS=1 but there was no output printed on the terminal.
You should run the command and then the JM GUI in the same terminal, did you do that?

I did. Still nothing.



You forgot to type export before the command. It should be: export QT_DEBUG_PLUGINS=1

By exporting a variable, you are making it visible to child processes.

What this is supposed to do is print debugging information about the shared library that has failed to load and thus causing the plugin error. It should print output similar to this:

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() looking at "/home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so.debug"
"The shared library was not found."
         not a plugin
QFactoryLoader::QFactoryLoader() checking directory path "/home/inso/build-untitled-Desktop_Qt_5_15_0_GCC_64bit-Debug/platforms" ...
Cannot load library /home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden)
QLibraryPrivate::loadPlugin failed on "/home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

The bold parts are the key information we need to find. If we know the library we can install it with apt.

In your case, the problem may or may not be libxcb-icccm, that's why I'm asking for debug output first.


Here is the output:

https://pastebin.com/raw/PN4NM4Aj


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: TryNinja on November 28, 2020, 10:16:31 AM
Here is the output:

https://pastebin.com/raw/PN4NM4Aj
Try running "apt-get install libxcb-util1" on your terminal.


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: NotATether on November 28, 2020, 10:18:15 AM
Here is the output:

https://pastebin.com/raw/PN4NM4Aj
Try running "apt-get install libxcb-util1" on your terminal.

Debian Buster actually has that package under libxcb-util0

https://packages.debian.org/buster/libxcb-util0


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: markcolls on November 28, 2020, 10:31:27 AM
Here is the output:

https://pastebin.com/raw/PN4NM4Aj
Try running "apt-get install libxcb-util1" on your terminal.

It did it with libxcb-util0 as libxcb-util1 was not found. The same error persists.


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: NotATether on November 28, 2020, 10:54:10 AM
Here is the output:

https://pastebin.com/raw/PN4NM4Aj
Try running "apt-get install libxcb-util1" on your terminal.

It did it with libxcb-util0 as libxcb-util1 was not found. The same error persists.

Alright I found the ticket for this bug report: https://bugreports.qt.io/plugins/servlet/mobile#issue/QTBUG-84749

The bug report says you need to apt-get install libxcb-xinerama0 to fix the problem.

Hope this helps.


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: markcolls on November 28, 2020, 11:30:11 AM
Here is the output:

https://pastebin.com/raw/PN4NM4Aj
Try running "apt-get install libxcb-util1" on your terminal.

It did it with libxcb-util0 as libxcb-util1 was not found. The same error persists.

Alright I found the ticket for this bug report: https://bugreports.qt.io/plugins/servlet/mobile#issue/QTBUG-84749

The bug report says you need to apt-get install libxcb-xinerama0 to fix the problem.

Hope this helps.

LMAO. Mate, I tried that 2 days ago. At this point I have tried that like 30 times or so. I have tried every single thing you find on google. Nothing works.


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: NotATether on November 28, 2020, 11:57:42 AM
Here is the output:

https://pastebin.com/raw/PN4NM4Aj
Try running "apt-get install libxcb-util1" on your terminal.

It did it with libxcb-util0 as libxcb-util1 was not found. The same error persists.

Alright I found the ticket for this bug report: https://bugreports.qt.io/plugins/servlet/mobile#issue/QTBUG-84749

The bug report says you need to apt-get install libxcb-xinerama0 to fix the problem.

Hope this helps.

LMAO. Mate, I tried that 2 days ago. At this point I have tried that like 30 times or so. I have tried every single thing you find on google. Nothing works.

I think the reason why nothing's working is because JoinMarket is using the Qt provided by PySide2, which doesn't have any of these libxcb things we keep trying to install. They are all hitting the system Qt installation.

/home/user/joinmarket-clientserver/jmvenv/lib/python3.7/site-packages/PySide2/Qt/
^--- this is where libxcb and co. are supposed to be installed in but I'm not sure how to do that.


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: markcolls on November 28, 2020, 12:45:18 PM
Here is the output:

https://pastebin.com/raw/PN4NM4Aj
Try running "apt-get install libxcb-util1" on your terminal.

It did it with libxcb-util0 as libxcb-util1 was not found. The same error persists.

Alright I found the ticket for this bug report: https://bugreports.qt.io/plugins/servlet/mobile#issue/QTBUG-84749

The bug report says you need to apt-get install libxcb-xinerama0 to fix the problem.

Hope this helps.

LMAO. Mate, I tried that 2 days ago. At this point I have tried that like 30 times or so. I have tried every single thing you find on google. Nothing works.

I think the reason why nothing's working is because JoinMarket is using the Qt provided by PySide2, which doesn't have any of these libxcb things we keep trying to install. They are all hitting the system Qt installation.

/home/user/joinmarket-clientserver/jmvenv/lib/python3.7/site-packages/PySide2/Qt/
^--- this is where libxcb and co. are supposed to be installed in but I'm not sure how to do that.


libxcb is there. I checked the directory. In fact, the fact that it is there is consistent with the error message

Code:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

I think this problem is too big for me to fix. I have to give up I guess.


Title: Re: Need help getting past error during JoinMarket installation in Debian 10
Post by: markcolls on November 28, 2020, 11:13:38 PM
[SOLVED]: PROBLEM HAS NOW BEEN SOLVED. VISIT https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/737 FOR THE SOLUTION.