[Qml/Python] Using pip packages with Clickable
-
Hello.
I'm starting with UT app development in Python and QML and encountered a problem using pip packages.
Whenever I want to use manually installed pip packages, using any of its functions yields an AttributeError e.g.:
PySide2.__version__AttributeError: module 'PySide2' has no attribute '__version__'which returns a PySide2 version, when entered using python3 command line in terminal.
In Python/QML project, I used sys to embed the PySide2 package:
import sys sys.path.append('lib/python3.8/site-packages') import PySide2dir(PySide2)returns[__doc__,__loader__,__name__,__package__,__path__,__spec__]so the
__version__seems inaccessible.What could be the reason of it?
I'm relatively new user in UT app development and I'd like to sorry for any possible non-compliances.
I'm using Docker container qtcreator ide.
-
are the packages shipped with the click, or on the device - if installed on the root of the device maybe the click would need to be unconfined?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login