STILL: PyCharm can not resolve PyGObject 3.0, but code runs fine - python

This question has been asked before [here]. At the time, it was a bug, and a feature has been requested, later on it was fixed and supposedly it should work.
but in my case it still isn't.
I have been trying and googling for about a week, yet still, I couldn't get it to work
My system is:
Arch Linux
Pycharm 3.1.1 Build #PC-133.881
Python 3.3.4
pygobject 3.10.2
Is there something I'm missing or is it a bug ??

It seems to be a new bug in PyCharm. Forcing skeleton generation should resolve the problem until you run the program, but at least in my case is not working.
Follow PY-13505 for more info.

The generation of the Gtk.py stub by PyCharm fails because of default IDE file size limit. I changed the config value "idea.max.intellisense.filesize" in idea.properties from 2500 to 10000. The stub generation takes some time but finishes now.
I think this might solve your issue developing Gtk3 applications with PyCharm to get features like autocompletion and integrated API-documentation.
This was also my answer to a very similar question: PyCharm - autocomplete for Gtk3 magically stops working

Related

VS Code Pylance works slow with much delay

When I try to use the autocomplete using Pylance it is stuck there for some time
and After Some time like 3 ~ 5 seconds the pop up with auto-complete shows up
Python Language Server is already set to Pylance
What I've tried so far.
Reinstall Python Extension.
Reinstall VS Code
Restarted Python Language Server
Reset VS Code
Reinstall Pylance.
But None of the above seems to work
It works well on my computer, how do you open this python file?
Try moving your code to its own folder and opening that up instead of opening up some big folder that contains a lot of files. This does show a performance hole where large workspaces take a while to load.
You can refer to this page for more details.
Its works without problem on my computer, try Clean Uninstall Python and VSC
maybe you have some incorrect setting that slows down your computer or VSC performance

IntelliSense tooltip always shows the same three top hits (even w/o relation)

I am using VS Code for Python development. But with any Python file I edit, I always experience the same issue: the IntelliSense tooltip always shows the same 2-3 suggestions on top, regardless of what I am writing. Here are some examples:
I am using the Microsoft Python language server and IntelliCode, but I experienced the same issue also before enabling IntelliCode. Do you have any ideas what might cause this behaviour?
For the records:
As it turned out and discussed in this GitHub issue thread the problem comes from the "Python Extended" extension for VS Code. Uninstalling it solved the issue for me.

PyCharm, python framework builds, and Mac OSX

I have been fighting with PyCharm on my OSX machine for a while, trying to understand why it can't find some things in mpl_toolkits. I have pretty well decided that the problem is that something went wrong with the matplotlib build in the default python interpreter that PyCharm uses. This is a Mac "framework" build located in /System/Library/Frameworks/Python.framework.
I have tried to solve this in two ways. First, I made sure that I had another working python interpreter -- able to deal with mpl_toolkits with no problem -- and then pointed PyCharm to it instead of to the default interpreter. When I do that, PyCharm can't even use matplotlib, let alone mpl_toolkits, because -- as it tells me -- I am not using a "framework build". Second, I tried to monkey with the default build and re-build matlotlib within it. Can't do it because the system won't let me touch it even if I am running under sudo.
So, I either need to
create my own "framework build" of python or
figure out how to get around the system prohibitions and re-install matplotlib in the existing "framework build".
I have looked around on the internet and can't find much on how to do 1. Can't find anything on how to do 2, and it seems kind of dangerous anyway.
Does anyone know how to do either of these?
Anyone have another approach that might work?

editor showing errors with Aptana Studio 3 after update

I have used Aptana Studio 3 for the programming of python for quite a while and never had problems. But after the update today (the version now is 3.5.0.201401092130-09012014213131), the editor stopped recognizing a lot of code (it marks functions like len, int, float and even things like None or True as errors).
I still can run all my programs without any problems so i figured that this must be an issue with an editor. Any ideas what the problem might be?
Not really a solution, but this workaround worked for me. After reverting to a previous version (3.4.1 in my case), the behavior I described above still persisted. But after I switched between the PyDev and the Web perspective a couple times, the editor went back to the normal behavior (the perspective switching didn't do the trick for version 3.5).
When I talk about version reverting, I don't mean the build in option (I tried it, but it just showed an error). I deleted the Aptana Studio 3 installation folder and downloaded the 3.4.1 version from this website.

Python game design without Pygame

This topic is in response to a problem I've been having getting Pygame to be set up correctly on my computer. I have Windows 7, Python 3.3 and "64-bit" Windows (now I know what a bit and a byte are, but I don't really understand the implications of having a "64-bit" computer) I'm proficient in Python but know nothing about binaries, dependencies, registries or other such internal/system-level structures; not that I'm not interested, but at the moment most of what goes on is essentially "over my head".
But anyway, with that said, the problem I've been experiencing is basically that I can't install pygame. I've been over several versions of the same question (on Stack Overflow and other places on the web), and I've attempted to install pygame countless times. Sometimes it seems to work fine until I attempt to use it (the installation appears to have been successful but Python gives me errors when I try to use pygame), or I get something about Python 3.3 not being in my "registry" (which from what I read appears to be another OS-level/internal structure for those who understand "the base code of the universe"). They could actually develop a series of tutorials on just the installation process. :)
But all joking aside, I am at a loss here and considering just giving up on pygame. So my question would be, is there any way to use what's already installed (Python's libraries etc.) to develop games? If not, do you know of any alternatives that don't require the same level of experience to install? I've Googled around but everything I've found about game design in Python leads back to pygame. Thanks in advance.
To save yourself pain, just use 32bit python, and 32bit pygame. If you mix 32 and 64 bit, it will not run correctly. That's probably the problem you're having.
Since you have python 3.3, you would use https://bitbucket.org/pygame/pygame/downloads/pygame-1.9.2a0.win32-py3.3.msi
You shouldn't have to edit the registry or your environmentvariables unless something goes wrong.
As mentioned previously, tkinter would offer a solution. For example, this was created in tkinter (http://www.youtube.com/watch?v=RHxLkNryOzI)
The pygame downloads page hasn't been updated for a while and is incompatible with python 3.x. Newer versions of pygame can be downloaded here.
I'd personally use pygame as there's audio support as well but tkinter could be used.

Categories

Resources