Skip to content

Linux version issues #1

@alejorojas2

Description

@alejorojas2

Hi Yuan,

Thank you for helping us to use mlstez on linux. However, I ran into some issues:

  • I installed QT library and pyQT version 5.0, but it did not work when executing the MainWindow.py. So, I had to downgrade to pyQT 4 and its respective libraries and I was able to make it work.
  • Once I was able to run it using python MainWindow.py, I noticed that BioPython was required, so I got that covered.
  • I am working on a machine where I have to ssh to work on and I did using ssh -X xxx@xxx so I can get the GUI going, because I guess that is the way that you suggested to use it. However, I got an error because of the multithreading or at least htat is my guess:
QObject::setParent: Cannot set parent, new parent is in a different thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
python: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Aborted (core dumped)

However, tried a patch, putting some code to fix the multithread issue in MainWindow.py

import ctypes
import sys
if sys.platform.startswith('linux'):
        try:
                x11 = ctypes.cdll.LoadLibrary('libX11.so')
                x11.XInitThreads()
        except:
                print "Warning: failed to XInitThreads()"

And I get it to run, it odes the first step lookig for barcodes and primers. However, when it gets to the consensus part, it throws another error:

image

I have not been able to get past that. Do you have any suggestions?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions