Werner was saying his wx.select worked, but when I tried his method (passing True to the select call after the string) it bugged out giving me this:
I went through the code and found this line (line 273 for me) wasn’t passing the True variable:
score = pkg.Score(_wxPackageInfo(ver), optionsRequired)
when changed to:
score = pkg.Score(_wxPackageInfo(ver, optionsRequired), optionsRequired)
my wxversion.select(‘wx-3.0.1-msw-classic’, True) code started to work!
See also:
https://github.com/wxWidgets/wxPython/blob/master/wxversion/wxversion.py#L273
*Note my directory structure was
myProj\ThirdParty\lib\wx-3.0.1-msw-classic\wx
myProj\ThirdParty\lib\wx-3.0.1-msw-classic\doc
and myProj\ThirdParty\lib\ was already present in sys.path on calling wxversion.select.
my wxversion is pretty old, dated 7.15.2011
I have:
score = pkg.Score(_wxPackageInfo(ver), optionsRequired)
so, I don’t think that explains it.
I think I have seen the exception “ValueError: invalid literal for
int() with base 10: ‘wx’” before too, but I had some wx folder
incorrectly named, e.g. “wx-3.0.wx-msw-phoenix” would do it.
Werner
···
Hi,
On 7/21/2014 20:21, Nathan McCorkle wrote:
Werner was saying his wx.select worked, but when I
tried his method (passing True to the select call after the
string) it bugged out giving me this:
I went through the code and found this line (line 273 for
me) wasn’t passing the True variable:
score =
pkg.Score(_wxPackageInfo(ver), optionsRequired)
when changed to:
score =
pkg.Score(_wxPackageInfo(ver, optionsRequired),
optionsRequired)
my wxversion.select('wx-3.0.1-msw-classic', True) code
started to work!
See also:
*Note my directory structure was
myProj\ThirdParty\lib\wx-3.0.1-msw-classic\wx
myProj\ThirdParty\lib\wx-3.0.1-msw-classic\doc
and myProj\ThirdParty\lib\ was already present in sys.path
on calling wxversion.select.
https://github.com/wxWidgets/wxPython/blob/master/wxversion/wxversion.py#L273