So I have gui2py installed on my machine, running the latest version of Phoenix with Python 3.3. Both seem to be working fine. The problem is, when I try to start the Visual Tools editor, with the command that the site said to use:
Quick Start: Try the sample application in this directory, running:
python sample.pyw Also, you can start the visual GUI designer with:
python -m gui.tools.designer
Which tosses me the error:
ImportError: No module named 'wx.gizmos'
When the previous line in the console is:
File "C:\Python33\lib\site-packges\gui\tools\inspector.py", line 13, in <module>
import wx.gizmos as gizmos
Can anybody help me get this running? It is supposed to work with Phoenix and everything!
Applications built with gui2py will work on Python 3, but the designer itself will not run on py3k right now because some features are still not ported to wxPhoenix (mainly, property grid and some addons like wx.gizmos are missing or not yet finished in the upcoming version, but wx core developers stated that they will be ported).
Also, if you run your app with prior wxPython versions (for example, wx 2.8), some features also are not available and they will be degraded gracefully ("simulated").
The recommended environment to develop gui2py applications is using Python 2.7 and wxPython 2.9.4.0+.
Then, you can test your app in the other wx and python versions.
You can see the compatibility notes in the main project page: https://code.google.com/p/gui2py/
Related
Installation vscode
I'm running Arch Linux (Manjaro) and installed vscode with:
sudo pacman -S code
but then a simple .NET core program resulted in
--------------------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (clrdbg) with Visual Studio
Code, Visual Studio or Visual Studio for Mac software to help you develop and
test your applications.
--------------------------------------------------------------------------------
It seems like the official Microsoft build should be obtained via the snap store:
sudo snap install code --classic
And the program looks normal. I can install plug-ins, create a new file et cetera.
Problem
However, I cannot open any files or projects. Doing so results in vscode crashing. I read that code --disable-gpu could solve this problem, but doesn't do so for me.
Any ideas
what may cause this crash?
or how to get the pacman vscode working?
Logs
$ code --verbose
Gtk-Message: 22:59:19.805: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:59:19.805: Failed to load module "canberra-gtk-module"
(code:33833): GdkPixbuf-WARNING **: 22:59:19.817: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
[33863:1104/225919.911481:ERROR:appcenter_api.cc(52)] expecting appcenter url prefix
[main 2020-11-04T21:59:19.960Z] Sending env to running instance...
[main 2020-11-04T21:59:20.041Z] Sent env to running instance. Terminating...
[main 2020-11-04T21:59:20.041Z] Lifecycle#kill()
where the recommended gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache results in bash: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache: No such file or directory
I'm running Arch Linux (Manjaro) and installed vscode with:
sudo pacman -S code
but then a simple .NET core program resulted in
--------------------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (clrdbg) with Visual Studio
Code, Visual Studio or Visual Studio for Mac software to help you develop and
test your applications.
--------------------------------------------------------------------------------
I had the same issue trying to get the debugger to work and I spent hours on finding the reason for this. What I found out is that the debugger only works with officially signed Microsoft binaries of VSCode. So you have to make a distinction here:
The package code contains the open source version of visual studio code, a build wich anyone can make using the provided sources by Microsoft. The program which you get here is therefore not signed by MS!
The package visual-studio-code-bin provided by the AUR contains a officially signed version by MS. If you use this package, the debugger works as expected.
I do not know wether snap - which I personally never used at all - provides this kind of package, so I can not tell anything about that, but using the said package from the user repository solved the problem for me reliably.
Try this one (which I installed just yesterday under the recent manjaro distribution and it worked fine) and see if this solves your problem with opening files and folders.
Running: Ubuntu 16.04 and Python 3.5.2
So I ran a script which I found here: https://github.com/rferrazz/pyqt4topyqt5
in order to convert one of my projects built in PyQt4 into a PyQt5 project.
I ran the script and the conversion was made just fine with no errors. Essentially, everywhere QtGui() was used was changed to QtWidgets(). The only problem, when I try to run the new PyQt5 project I get the following error:
ImportError: /usr/local/lib/python3.5/dist-packages/PyQt5/QtGui.so: undefined symbol: PySlice_AdjustIndices
I am not positive but it seemed to me this would be a version error of some kind, which brings me to my questions. Is there a method of updating Python from 3.5 to the newest version release which I believe is 3.7 from the command prompt? Also, is the ImportError I got a version control issue like I believe it to be?
The solution to this problem ended up being a version problem from what I can tell. I installed py3.7 from source using pyenv, drove the script with that interpreter through PyCharm and was able to run it.
I have many python 3.5 scripts to handle my business affairs. All of these run perfect from IDLE and from the bash shell. When I create OSX Automator apps they all run well except the included reportlab functions do not work. I have also attempted to create the app with py2app but this fails to find the qt4 and reportlab libraries and fails. Any suggestions?
Whenever I restart pycharm it starts with Querying skeleton update process in the background even when I have not changed/modified or updated any of my python libraries. I am using Anaconda 5.0 as my default and only python version installed on the system.
Due to this process it takes too long for pycharm to respond initially after launching the application.
Is there any setting to not run this update when there are no changes made to the python library or will I have to disable it.
Are there any settings or changes that I am missing?
I also have attached the log file generated.
EDIT:
Issue is still same with the 2017.3.1, 2018 version of Pycharm.
From the log I wonder if the problem is not related to permissions with which you run PyCharm vs. the ones you installed it with.
Not found pregenerated skeletons at C:\Program Files\JetBrains\PyCharm
2017.2.3\skeletons\skeletons-win-401-python-3.6.2.zip
I do not have this problem and the file above exists in my install of PyCharm (version PyCharm Community Edition 2018.1.1) installed at roughly the same location has the file in: C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.1\skeletons\skeletons-win-401-python-3.6.2.zip
In your case PyCharm attempted to read the collected skeletons from your profile folder and it seems it failed and continued regenerating them:
2017-09-30 20:30:59,302 [ 282598] INFO -
ns.python.sdk.PythonSdkUpdater - Binary skeletons directory for SDK
Python 3.6.2 (C:\ProgramData\Anaconda3\python.exe)
(C:\ProgramData\Anaconda3\python.exe)):
C:/Users/sjain/.PyCharm2017.2/system/python_stubs/-313451744
2017-09-30 20:30:59,318 [ 282614] INFO -
ns.python.sdk.PythonSdkUpdater - User skeletons directory for SDK
Python 3.6.2 (C:\ProgramData\Anaconda3\python.exe)
(C:\ProgramData\Anaconda3\python.exe)): C:/Program
Files/JetBrains/PyCharm 2017.2.3/helpers/python-skeletons
Please attempt to run as Administrator to see if the behaviour is different. If it is then it is likely related to permissions.
The issue has been known for a while (since 2011) but no solution was offered.
to any one having this problem :
disable antivirus and run it administrator mode and it's solved , i tired million thing and this is the only thing worked for me .
my version 2022.1.2 and good luck everyone
I am using Windows 8.
Python version 2.7.3 have been installed on my computer together with another software.
Now I have installed python 3.3.5 and i want to use this version from now.
But everytime I run Python IDLE it runs version 2.7.3.
Even if I go to C:\Python33\Lib\idlelib\idle.pyw and run idle.pyw it runs with the 2.7.3 version.
I thought that every python version install its own IDLE so I am quiet confused here.
When I run Hello world program from the console it runs using the version 3.3.5 I have checked that.
So what I need to do is to run IDLE using 3.3.5 version
Anybody knows what to do?
Each installation of Python comes with its own respective version if IDLE. I suggest you explore your Python installation folder, and find the version of IDLE you're looking for and create a shortcut to it, or add it to your environment variable list, so you can invoke a specific version from the command line.