[chimerax-users] Dependency trouble
Zach Pearson
zjp at cgl.ucsf.edu
Fri Apr 8 09:56:14 PDT 2022
Hi William,
If you have ChimeraX’s source code (www.github.com/RBVI/ChimeraX <http://www.github.com/RBVI/ChimeraX>) you can copy the Qt folder at prereqs/qtshim/Qt into your virtual environment’s site-packages directory. This should allow for at least some partial support from the language server PyCharm runs.
— Zach
> On Apr 8, 2022, at 09:36, Anthony James Schaefer via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>
> Hello,
>
> Regular expressions are QRegularExpression in Qt.QtCore now. I think there's a ticket that listed some of the differences between Qt5 and Qt6, but I can't seem to find it.
>
> I don't use pycharm, so I'm not sure if there is a solution for that. Also not sure about adding PyQt5 to the dependencies.
>
> Best,
>
> Tony
> From: William Hofsøy <2wswer at gmail.com <mailto:2wswer at gmail.com>>
> Sent: Friday, April 8, 2022 12:17 PM
> To: Anthony James Schaefer <tony.schaefer at uga.edu <mailto:tony.schaefer at uga.edu>>
> Cc: chimerax-users at cgl.ucsf.edu <mailto:chimerax-users at cgl.ucsf.edu> <chimerax-users at cgl.ucsf.edu <mailto:chimerax-users at cgl.ucsf.edu>>
> Subject: Re: [chimerax-users] Dependency trouble
>
> [EXTERNAL SENDER - PROCEED CAUTIOUSLY]
>
> Hi again,
> I am indeed running a daily build on that computer.
> I tried your suggestion and it works partially but there are some issues.
> For instance I am getting:
> cannot import name 'QRegExp' from 'Qt.QtCore'
>
> And I am also not sure how to set this up with pycharm as there is no module actually named just Qt. Which means I am getting red squiggles all over and it breaks the autocomplete.
> I am also curious as to why adding PyQt5 to the dependencies doesn't work.
>
> fre. 8. apr. 2022 kl. 17:26 skrev Anthony James Schaefer <tony.schaefer at uga.edu <mailto:tony.schaefer at uga.edu>>:
> Is the other computer running a ChimeraX daily build? They are looking to switch to PyQt6 in one of the next versions. A ChimeraX developer would have more details on that.
>
> Try changing your PyQt5 imports to just "Qt" (e.g. from Qt.QtWidgets import QPushButton). ChimeraX uses a shim to make things less dependent on the version of the Python Qt wrapper.
>
> Best,
>
> Tony
> From: ChimeraX-users <chimerax-users-bounces at cgl.ucsf.edu <mailto:chimerax-users-bounces at cgl.ucsf.edu>> on behalf of William Hofsøy via ChimeraX-users <chimerax-users at cgl.ucsf.edu <mailto:chimerax-users at cgl.ucsf.edu>>
> Sent: Friday, April 8, 2022 7:53 AM
> To: chimerax-users at cgl.ucsf.edu <mailto:chimerax-users at cgl.ucsf.edu> <chimerax-users at cgl.ucsf.edu <mailto:chimerax-users at cgl.ucsf.edu>>
> Subject: [chimerax-users] Dependency trouble
>
> [EXTERNAL SENDER - PROCEED CAUTIOUSLY]
>
> Hi,
> I was attempting to install my chimerax bundle on a different computer and encountered the error:
> No module named 'PyQt5'
>
> So I added this line to the bundle_info.xml under the Dependencies tag:
> <Dependency name="PyQt5"/>
>
> But I still get the same error?
>
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/attachments/20220408/2504079e/attachment.html>
More information about the ChimeraX-users
mailing list