Sublime Forum

SublimeRope and PyQt4 autocomplete on Linux

#1

I have troubles properly setting up SublimeRope and PyQt4 autocomplete on CentOS 6.3 64bit. I’m using fresh SublimeText 64-bit install and SublimeRope installed from Package Control.
At first I didn’t have autocomplete even on python’s built-in modules like:

import os os.(I press autocomplete button but no os relevant autocomplete shows)
Then I added:

prefs.add('python_path', '/usr/lib64/python2.6') prefs.add('python_path', '/usr/lib64/python2.6/site-packages')
to my .ropeproject/config.py and it worked. I don’t know why that’s necessery as it worked out of the box on my Windows 7 box.
My problem is that PyQt4 still doesn’t have autocomplete. Any ideas?
Thanks

0 Likes

#2

There’s a project called Python IDE, it’s updated for ST2, github.com/JulianEberius/SublimePythonIDE

The readme shows that you should create a sublime-project that points to the python that has the PyQt4 files in its site-packages directory.
Then autocomplete should work.

Make sense?

I think this is also how SublimeRope works.

0 Likes