Re: a new Linux install solution for Visual Python

pataphor <[email protected]> Mon, 14 Oct 2013 13:20:00 +0200
Newsgroups gmane.comp.python.visualpython.user
Message-ID <[email protected]>
On 10/12/2013 06:12 PM, Bruce Sherwood wrote:
> It doesn't really matter whether you write to me or to the old mailing
> list, since we're probably the only people viewing that mailing list.

As long as the mailing list stays synced with gmane it matters a lot, 
since I can now just point other people to the gmane website or their 
nntp server.

> I guess I muddied the waters by trying wxPython 2.9.5, which I think you
> had mentioned. Like 2.9.4, it does require a patch, with I've included in
> the VPython repository. See the updated INSTALL.txt file:
>
> https://github.com/BruceSherwood/vpython-wx/blob/master/INSTALL.txt

Thank you for uploading the patch and updating the install instructions.

I've had some small success that I can mention. The 2.9.5.0 installation 
process failed at first because of the traceback I mentioned in my 
earlier post. After adapting the code around:

File "/home/xxxx/src/wxPython-src-2.9.5.0/build/tools/builder.py", line 
134, in install

to make it read like this:

  def install(self, dir=None, projectFile=None, options=[]):
         if self.isAvailable():
             args = [self.getProgramPath()]
             args.extend(self.getProjectFileArg(projectFile))
             args.append("install")
             if options:
                 args.extend(options)
             result = runInDir(args, dir)
             return result

         return 1

The command:

sudo python2.7 build-wxpython.py --build_dir=../bld --install

Now successfully compiles and installs wxPython 2.9.5.0 on my system.
(Note: all I did was to add the "if options" clause)

It also seems necessary to reboot the system after this, which made me 
discover only later, after I accidentally had to reboot the system 
because of an unrelated issue, that the install had actually succeeded!

I can now even choose which wx version I start wxPython with, using 
wxversion.

There is also some small progress with the window drawing, in that I can 
now also get the windrow to start drawing things if I only move it, 
instead of having to resize it as I mentioned earlier. This works for 
both wx version 2.9.4 and 2.9.5, which makes me wonder whether I could 
have overlooked that earlier.

Unfortunately the opacity problem is still the same for me in vPython 
6.5 compiled with wxpython 2.9.5.0

I have tried to find better graphics drivers for my system but haven't 
been successful. There is some small hope that Ubuntu 13 would enable me 
to update the driver.

> I used 2.9.5 partly because it's now the version available at wxpython.org,
> and I wanted to make sure VPython works with it. On 64-bit Ubuntu 12.04 I
> didn't see your bug with 2.9.4 and I don't see it with 2.9.5. No one else
> has reported your bug (which doesn't prove that they wouldn't see the bug
> if they tried your example, of course).

Since I managed to compile 2.9.5.0 for a 32 bit Ubuntu 12.04, maybe some 
people having the same traceback as me but with a different graphics 
card could still benefit from my failure.

> I don't know anything about gmane but would be happy to make the
> connection. How would I do that?

Currently the mailing list is already synced to gmane, so please do 
nothing.

After looking into the wxpython mailing list situation, while trying to 
sign up, I discovered that in order to sign up one has to go through 
Google groups, which is a catch 22 situation for me since I don't want 
to use Google groups.

P.





------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk