Since wxWidgets 3.0.2 was released, I get the following warning whenever I import wxPython Phoenix:
C:\Python34\lib\site-packages\wx\core.py:22: UserWarning: wxPython/wxWidgets release number mismatch
warnings.warn(“wxPython/wxWidgets release number mismatch”)
Although it’s just a warning and not an error, it prevents pythonw.exe from being able to run a Python script that uses Phoenix.
– Timothy
<ps16thypresenceisfullnessofjoy <at> gmail.com> writes:
Since wxWidgets 3.0.2 was released, I get the following warning whenever I
import wxPython Phoenix: C:\Python34\lib\site-packages\wx\core.py:22:
UserWarning: wxPython/wxWidgets release number mismatch
warnings.warn("wxPython/wxWidgets release number mismatch")Although it's
just a warning and not an error, it prevents pythonw.exe from being able to
run a Python script that uses Phoenix.-- Timothy
The same happened to me. The likely reason is that since wx.widgets 3.0.2
was released Phoenix has been using wx.widgets 3.0.3 but the Phoenix release
number has not yet been updated, hence the mismatch. You can edit the
VERSION_STRING and the RELEASE_NUMBER in __version.py__ in the wx folder.
This removes the warning.
···
Thanks, Mike. I guessed the same reason, but wasn’t aware of the workaround.
I have the same warning.
I cannot find a file called version.py. I do have a file called version.py in the wx folder with the following content:
“”"Provides an object representing the current ‘version’ or ‘release’
of Py as a whole. Individual classes, such as the shell, filling and
interpreter, each have a revision property based on the CVS Revision.“”"
author = “Patrick K. O’Brien pobrien@orbtech.com”
VERSION = ‘0.9.8’
Is it this file that should be modified? If yes, to what, exactly? If no, what else can I do?
When importing wx my computer says
Warning (from warnings module):
File “C:\Python34\lib\site-packages\wx\core.py”, line 22
warnings.warn(“wxPython/wxWidgets release number mismatch”)
UserWarning: wxPython/wxWidgets release number mismatch
and when I include the command
print(wx.version())
the answer is
3.0.2.dev78166 msw (phoenix)
Poul Riis
···
Den onsdag den 29. oktober 2014 01.36.11 UTC+1 skrev ps16thypresence...@gmail.com:
Since wxWidgets 3.0.2 was released, I get the following warning whenever I import wxPython Phoenix:
C:\Python34\lib\site-packages\wx\core.py:22: UserWarning: wxPython/wxWidgets release number mismatch
warnings.warn(“wxPython/wxWidgets release number mismatch”)
Although it’s just a warning and not an error, it prevents pythonw.exe from being able to run a Python script that uses Phoenix.
– Timothy
It looks like you’re using an old version of Phoenix. This issue was fixed over a month ago, so upgrading to the latest version (“pip install -U --pre -f Index of /Phoenix/snapshot-builds wxPython_Phoenix”) should solve your problem.
The version.py file should be in PythonXY/Lib/site-packages/wx. The file wx/py/version.py is part of the PyCrust package, which is bundled with and written in wxPython but is a completely separate set of programs.
···
On Saturday, January 3, 2015 5:29:21 AM UTC-5, Poul Riis wrote:
I have the same warning.
I cannot find a file called version.py. I do have a file called version.py in the wx folder with the following content:
“”"Provides an object representing the current ‘version’ or ‘release’
of Py as a whole. Individual classes, such as the shell, filling and
interpreter, each have a revision property based on the CVS Revision.“”"
author = “Patrick K. O’Brien pob...@orbtech.com”
VERSION = ‘0.9.8’
Is it this file that should be modified? If yes, to what, exactly? If no, what else can I do?
When importing wx my computer says
Warning (from warnings module):
File “C:\Python34\lib\site-packages\wx\core.py”, line 22
warnings.warn(“wxPython/wxWidgets release number mismatch”)
UserWarning: wxPython/wxWidgets release number mismatch
and when I include the command
print(wx.version())
the answer is
3.0.2.dev78166 msw (phoenix)
Poul Riis
Den onsdag den 29. oktober 2014 01.36.11 UTC+1 skrev ps16thypresence...@gmail.com:
Since wxWidgets 3.0.2 was released, I get the following warning whenever I import wxPython Phoenix:
C:\Python34\lib\site-packages\wx\core.py:22: UserWarning: wxPython/wxWidgets release number mismatch
warnings.warn(“wxPython/wxWidgets release number mismatch”)
Although it’s just a warning and not an error, it prevents pythonw.exe from being able to run a Python script that uses Phoenix.
– Timothy