I don’t think I submitted that bug. But it’s good someone else did. But yes, PySide is the goto library being that I’m working with several 3D applications that utilize PySide (Maya, Modo, Nuke).
Hi, I’m still trying to find an answer to this. I’m starting to consider using other editors at this point since I use PySide all the time. I find a .cix file for PySide 1.1.1 but when I load it up to the API catalog nothing shows up for PySide.
Please help, I like Komodo and I would prefer not switching to Eclipse or something similar.
Oh, and I have transitioned to Komodo Edit 9.2.
One more note. This is the error I get when I try to load up the .cix firl for PySide which I found.
Traceback (most recent call last):
File "C:\Program Files (x86)\ActiveState Komodo Edit 9\lib\mozilla\components\koCatalogsTree.py", line 364, in run
shutil.copy(src_path, dst_path)
File "C:\Program Files (x86)\ActiveState Komodo Edit 9\lib\python\lib\shutil.py", line 119, in copy
copyfile(src, dst)
File "C:\Program Files (x86)\ActiveState Komodo Edit 9\lib\python\lib\shutil.py", line 69, in copyfile
raise Error("`%s` and `%s` are the same file" % (src, dst))
Error: `C:\Users\jberkheimer\AppData\Local\ActiveState\KomodoEdit\9.2\apicatalogs\PySide-1.1.1.cix` and `C:\Users\jberkheimer\AppData\Local\ActiveState\KomodoEdit\9.2\apicatalogs\PySide-1.1.1.cix` are the same file
Here ya go.
Note there is no open bug for PySide integration. The bug I referred to was on our old bug tracking system. If you want this tracked please report a bug on github.
@mitchell could you have a look at the cix file linked above and see if it could be made to work easily?
Hi,
Here’s what I did to get PySide completions:
- Download the referenced .cix file to a temporary directory.
- Open Komodo’s Code Intelligence preference and clicked “Add an API Catalog”.
- Select the .cix file in the temporary directory.
- Note that the file does not show up immediately in the view. This is a bug that will need to be looked into.
- Restart Komodo.
- Go back to Code Intelligence preference and PySide is now there in the tree view. Check it.
- Create a new Python file and added “import PySide” and then on a new line “PySide.” and I got a list of completions.
The cix file looks good.
@nathanr Thanks for the clarification.
@mitchell SO I went through these steps and restarted Komodo but PySide is still not showing up. I also checked my PySide install and I’m using version 1.2.2. Not sure if this matters or not.
I hope you can see the image clearly enough.
Could you see if anything shows up in your error log when you add the .cix file?
Also, please ensure you are running Komodo 9.2.
@nathanr The only time I get anything in the error log is if I select the .cix file from within the apicatalogs directory.
C:\Users\jberkheimer\AppData\Local\ActiveState\KomodoEdit\9.2\apicatalogs
If I select it from a directory from outside the komodo path I get nothing.
And yes, I am using 9.2.
What about at startup, after having selected the .cix file?
For a clean slate please delete the file from apicatalogs, shut down Komodo, edit your prefs.xml and remove any references to the file (make sure the XML structure remains valid), then start Komodo.
Cleaned everything out. Restarted…no errors. Redid the procedure…no errors. Restarted, no PySide API.
@nathanr - Just an update, one of the guys at the Foundry helped me get code completion to work by giving me core libraries used by modo dumped to a dummy package as stub files. I place those in a PySide directory into this directory:
C:\Program Files (x86)\ActiveState Komodo Edit 9\lib\python\Lib\
and then set that path as an additional import directory for Python in Komodo.
It worked beautifully…sometimes. It will randomly stop doing ANY autocompletion. and the only way to get it back is to restart. Not sure what is going on, but I wanted to update you on it.
Could you add that info to the github issue?
Note you should not be modifying any files inside the Komodo application directory. You can place those library files anywhere on your system and point Komodo to them, they do not need to be inside of the app directory.
For the cix file, could you see if it works with Komodo IDE?
Could you add that info to the github issue?
Is there an issue opened for this? I never opened one myself. If there is do you have a link?
Note you should not be modifying any files inside the Komodo application directory. You can place those library files anywhere on your system and point Komodo to them, they do not need to be inside of the app directory.
This was the place I was recommended to put it. I moved it to a custom location outside of the Komodo directory structure and it still working…intermittently. I can’t really tell what’s causing the auto-completion to stop working. After a while it just stops.
For the cix file, could you see if it works with Komodo IDE?
I downloaded IDE and tried it but it’s still not working.
I figured you did when I asked you to. Please file one. I’m asking you rather than doing it myself because when I do it myself you will not be receiving updates.
By who?
That’s odd, considering it worked for Mitchell. Are you following his steps to the letter or is there something different about your setup?
I figured you did when I asked you to. Please file one. I’m asking you rather than doing it myself because when I do it myself you will not be receiving updates.
Sorry about that, it did slip my mind. I went ahead and made one.
By who?
One of the developers from the Foundry who works on Modo. I was talking to them about code completion for Modo and brought up PySide. He’s the one who made the PySide file dump for me.
That’s odd, considering it worked for Mitchell. Are you following his steps to the letter or is there something different about your setup?
Yup, I followed the steps you posted above. The file gets placed in the apicatalog directory. But still nothing when I restart.
It’s very kind of him to help, but as he is not a Komodo developer and I am I think you should take my word over his …
Could it be that the Python version you use has something to do with it? Have you tried both Python and Python 3?
It’s very kind of him to help, but as he is not a Komodo developer and I am I think you should take my word over his … wink
Nathan, I’d be happy to take your word and help. But I’m in a production environment and I have to use every available resource that I can to get my work done in a timely manner. For now I have the Modo PySide dump in a custom location with Komodo pointing to it as an additional Python import directory. It does the trick but it is very unstable in that it seems to break autocompletion as a whole from time to time. If we can find a more official solution to this then I will definitely use that solution. But for the time being, I need to make use of this hack. But I’ll work with you as much as I can to get this resolved.
Could it be that the Python version you use has something to do with it? Have you tried both Python and Python 3?
I thought of this a while ago and did a full reinstall of Python on my machine. I can only use Python 2.7 due to it being standard in most CG software that we use. The only thing I can think of is to wipe all of my preference files and do a fresh install of Komodo. I’m kind of loath to do that though because I have a lot of customizations. But if we can’t get this solved I might take a shot at doing that.
You already said it works the same when putting it outside your app directory, so there is no reason to put it in your app directory and every reason not to. I don’t personally care whether you do so or not, it’s just a heads up. I will note that your trying to interpret what is being suggested to you and taking a spin on the suggestion does make room for human-error, and would suggest that at least for purposes of figuring out the problem you follow our suggestions to the letter, then once you know something works you can try to give it a spin of your own.
You can actually run Komodo with “temporary” settings, kinda like running your OS in safe mode. Try this: http://beta.docs.komodoide.com/Troubleshooting/How-do-I-Start-Komodo-with-Default-Settings