Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

wxversion.select bug? I think I fixed it, but maybe I just have an old version?

17 views
Skip to first unread message

Nathan McCorkle

unread,
Jul 21, 2014, 2:21:56 PM7/21/14
to wxPyth...@googlegroups.com
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!




*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.

Werner

unread,
Jul 21, 2014, 4:19:09 PM7/21/14
to wxPyth...@googlegroups.com
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:
my wxversion is pretty old, dated 7.15.2011



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)
I have:
score = pkg.Score(_wxPackageInfo(ver), optionsRequired)

so, I don't think that explains it.



my wxversion.select('wx-3.0.1-msw-classic', True) code started to work!




*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.
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
Reply all
Reply to author
Forward
0 new messages