Pyside in Sublime Text 3

215 views
Skip to first unread message

kiteh

unread,
Sep 8, 2018, 12:44:49 AM9/8/18
to Python Programming for Autodesk Maya
Hello,

I am currently using Sublime Text 3. Managed to get the 'python' module working by installing in the latest 3.7.0 but I have issues getting PySide module to work.

I chanced upon 'Pyside' under the Package Control, installed it with no issues.
However as soon as I tried to import in as a module 'from PySide import QtGui' I keep getting the error that no PySide found.

Am I missing something here?

Am trying to create PyQt Gui creation to do some testings/ learning.. Using windows 10, python 3.7..

Justin Israel

unread,
Sep 8, 2018, 12:56:34 AM9/8/18
to python_in...@googlegroups.com
If you are going to use Python 3 then you probably want to use PySide2/Qt5

In your sublime python setting or your per-project settings, you have to make sure your pythonpath is set correctly. If you are installing packages to your system python location, then you will probably already be picking them up correctly simply by pointing at that python executable in your Sublime settings. 

Justin 

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/d800b6a9-5373-49f6-8236-4281c8e55ba3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcus Ottosson

unread,
Sep 8, 2018, 4:46:46 AM9/8/18
to python_in...@googlegroups.com

I chanced upon ‘Pyside’ under the Package Control, installed it with no issues.

This doesn’t actually install PySide, but rather “support” for PySide. That is, hotkeys and conversion tools.

You’d need to install PySide for the version of Python you use with Sublime, if that’s 3.7 then you’re probably limited to PySide2 or PyQt5, as I don’t think there is a PySide(1) for it.

$ c:\python37\python.exe -m pip install PySide2

And then configure your Sublime Text to call on that version of Python when you run.


kiteh

unread,
Sep 8, 2018, 3:57:53 PM9/8/18
to Python Programming for Autodesk Maya
Hi Justin,

Noted on that, as you have mentioned, I have installed PyQt and currently both modules are working for me.

Trying to get myself famarilize with PyQt :D


Hi Marcus,

Thanks for the info. Had thought that installing that PySide I saw equates to installing the actual PySide itself.

It seems that getting PySide to install in Windows 10 is tricky, based on what I have read online.. But even so, I have just got PyQt installed Nd working, guess I will stick to that and learn it.


Thank you all!

Reply all
Reply to author
Forward
0 new messages