PS: this is true too not only with my code, but also with pyplot.py
···
On Sunday 12 June 2005 05:37 pm, Philippe C. Martin wrote:
Hi,
The problem is that it does not print - I'm on mdk 10.1.
1) after the "patch" the print work OK
2) printing from the preview still does not print
Regards,
Philippe
On Saturday 11 June 2005 08:27 pm, Robin Dunn wrote:
> What exactly is the problem? The unmodified code works fine for me on
> Mdk 10.2 (Mandriva) and wxPthon 2.6.1.0.
--
*************************************
Philippe C. Martin
SnakeCard, LLC
www.snakecard.com
+1 405 694 8098
*************************************
I just installed wxPthon 2.6.1.0 to try and see if my pyplot printing problem
was gone.
I get this error while trying to load the demo:
···
***************************************************
Traceback (most recent call last):
File "/home/philippe/downloaded/wxPython-src-2.6.1.0/wxPython/demo/demo.py",
line 3, in ?
import Main
File "/home/philippe/downloaded/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 32, in ?
import wx # This module uses the new wx namespace
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/__init__.py",
line 42, in ?
from wx._core import *
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py", line
4, in ?
import _core_
ImportError: /usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core_.so:
undefined symbol: wxEVT_SCROLL_CHANGED
***************************************************
I never uninstalled anything (2.6.0.0) - could that be the problem ?
Thanks,
Philippe
On Saturday 11 June 2005 08:27 pm, Robin Dunn wrote:
Philippe C. Martin wrote:
> Hi,
>
> I had to make this modification to PyPlot PlotCanvas.PrintOut to get it
> to print :
>
>
> pdd = wx.PrintDialogData(self.print_data)
> #pdd = wx.PrintDialogData()
> #pdd.SetPrintData(self.print_data)
>
>
>
> Is this the correct patch or is the PB somewhere else ?
>
>
> PS: I now have the same problem trying to launch printing from the
> preview (although the preview looks good)
>
> PPS: I'm on Linux (MDK 10.1 with wxPython 2.6.0)
What exactly is the problem? The unmodified code works fine for me on
Mdk 10.2 (Mandriva) and wxPthon 2.6.1.0.
--
*************************************
Philippe C. Martin
SnakeCard, LLC
www.snakecard.com
+1 405 694 8098
*************************************
I just installed wxPthon 2.6.1.0 to try and see if my pyplot printing problem was gone.
I get this error while trying to load the demo:
***************************************************
Traceback (most recent call last):
File "/home/philippe/downloaded/wxPython-src-2.6.1.0/wxPython/demo/demo.py", line 3, in ?
import Main
File "/home/philippe/downloaded/wxPython-src-2.6.1.0/wxPython/demo/Main.py", line 32, in ?
import wx # This module uses the new wx namespace
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/__init__.py", line 42, in ?
from wx._core import *
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py", line 4, in ?
import _core_
ImportError: /usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core_.so: undefined symbol: wxEVT_SCROLL_CHANGED
***************************************************
I never uninstalled anything (2.6.0.0) - could that be the problem ?
It's possible. That error sounds like a mismatch between the wx libs and the _core_.so extension module.
How did you install, via RPM or build it yourself? It's not likely that there would be problems like this with RPM because it removes the old files itself when doing an update, but I suppose there could have been a build error.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
the only modification I made was:
BUILD_GLCANVAS=False
in setup.py.
I tried to go back to 2.6.0 but I'm now stuck with the same problem !
Help !!
What should I be looking for ?
regards,
Philippe
···
On Wednesday 15 June 2005 09:23 pm, Robin Dunn wrote:
Philippe C. Martin wrote:
> Robin,
>
> I just installed wxPthon 2.6.1.0 to try and see if my pyplot printing
> problem was gone.
>
> I get this error while trying to load the demo:
>
> ***************************************************
> Traceback (most recent call last):
> File
> "/home/philippe/downloaded/wxPython-src-2.6.1.0/wxPython/demo/demo.py",
> line 3, in ?
> import Main
> File
> "/home/philippe/downloaded/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
> line 32, in ?
> import wx # This module uses the new wx namespace
> File
> "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/__init__.py", line
> 42, in ?
> from wx._core import *
> File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py",
> line 4, in ?
> import _core_
> ImportError:
> /usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core_.so: undefined
> symbol: wxEVT_SCROLL_CHANGED
> ***************************************************
>
> I never uninstalled anything (2.6.0.0) - could that be the problem ?
It's possible. That error sounds like a mismatch between the wx libs
and the _core_.so extension module.
How did you install, via RPM or build it yourself? It's not likely that
there would be problems like this with RPM because it removes the old
files itself when doing an update, but I suppose there could have been a
build error.
--
*************************************
Philippe C. Martin
SnakeCard, LLC
www.snakecard.com
+1 405 694 8098
*************************************
this is what I get when I "nm" the library: where should wxEVT_SCROLL_CHANGED
be defined ?
Regards,
Philippe
[philippe@pcmsc bin]$
nm /usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core_.so | grep SCR
0004e2a0 t _wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_get
0004e260 t _wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_set
U wxEVT_COMMAND_SCROLLBAR_UPDATED@@WX_2.6
U wxEVT_SCROLL_BOTTOM@@WX_2.6
U wxEVT_SCROLL_CHANGED
U wxEVT_SCROLL_LINEDOWN@@WX_2.6
U wxEVT_SCROLL_LINEUP@@WX_2.6
U wxEVT_SCROLL_PAGEDOWN@@WX_2.6
U wxEVT_SCROLL_PAGEUP@@WX_2.6
U wxEVT_SCROLL_THUMBRELEASE@@WX_2.6
U wxEVT_SCROLL_THUMBTRACK@@WX_2.6
U wxEVT_SCROLL_TOP@@WX_2.6
U wxEVT_SCROLLWIN_BOTTOM@@WX_2.6
U wxEVT_SCROLLWIN_LINEDOWN@@WX_2.6
U wxEVT_SCROLLWIN_LINEUP@@WX_2.6
U wxEVT_SCROLLWIN_PAGEDOWN@@WX_2.6
U wxEVT_SCROLLWIN_PAGEUP@@WX_2.6
U wxEVT_SCROLLWIN_THUMBRELEASE@@WX_2.6
U wxEVT_SCROLLWIN_THUMBTRACK@@WX_2.6
U wxEVT_SCROLLWIN_TOP@@WX_2.6
000fa1a0 b wxPyIMAGE_OPTION_IMAGEDESCRIPTOR
[philippe@pcmsc bin]$
nm /usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core_.so | grep SCR
···
On Wednesday 15 June 2005 09:28 pm, Philippe C. Martin wrote:
HI,
I built it,
the only modification I made was:
BUILD_GLCANVAS=False
in setup.py.
I tried to go back to 2.6.0 but I'm now stuck with the same problem !
Help !!
What should I be looking for ?
regards,
Philippe
On Wednesday 15 June 2005 09:23 pm, Robin Dunn wrote:
> Philippe C. Martin wrote:
> > Robin,
> >
> > I just installed wxPthon 2.6.1.0 to try and see if my pyplot printing
> > problem was gone.
> >
> > I get this error while trying to load the demo:
> >
> > ***************************************************
> > Traceback (most recent call last):
> > File
> > "/home/philippe/downloaded/wxPython-src-2.6.1.0/wxPython/demo/demo.py",
> > line 3, in ?
> > import Main
> > File
> > "/home/philippe/downloaded/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
> > line 32, in ?
> > import wx # This module uses the new wx namespace
> > File
> > "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/__init__.py",
> > line 42, in ?
> > from wx._core import *
> > File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py",
> > line 4, in ?
> > import _core_
> > ImportError:
> > /usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core_.so:
> > undefined symbol: wxEVT_SCROLL_CHANGED
> > ***************************************************
> >
> > I never uninstalled anything (2.6.0.0) - could that be the problem ?
>
> It's possible. That error sounds like a mismatch between the wx libs
> and the _core_.so extension module.
>
> How did you install, via RPM or build it yourself? It's not likely that
> there would be problems like this with RPM because it removes the old
> files itself when doing an update, but I suppose there could have been a
> build error.
--
*************************************
Philippe C. Martin
SnakeCard, LLC
www.snakecard.com
+1 405 694 8098
*************************************
this is what I get when I "nm" the library: where should wxEVT_SCROLL_CHANGED be defined ?
It should be in the core wxgtk. Did you forget to rebuild and install the 2.6.1.0 version of wxGTK? Here's mine:
$ nm /opt/wx/2.6/lib/libwx_gtk2ud-2.6.so | grep SCR
0057fbd8 r GRID_SCROLL_LINE_X
0057fbdc r GRID_SCROLL_LINE_Y
006ca978 b _NET_WM_STATE_FULLSCREEN
0053cca0 r SCROLL_UNIT_X
006c9868 B wxEVT_COMMAND_SCROLLBAR_UPDATED
006c9910 B wxEVT_SCROLL_BOTTOM
006c992c B wxEVT_SCROLL_CHANGED
006c9918 B wxEVT_SCROLL_LINEDOWN
006c9914 B wxEVT_SCROLL_LINEUP
006c9920 B wxEVT_SCROLL_PAGEDOWN
006c991c B wxEVT_SCROLL_PAGEUP
006c9928 B wxEVT_SCROLL_THUMBRELEASE
006c9924 B wxEVT_SCROLL_THUMBTRACK
006c990c B wxEVT_SCROLL_TOP
006c9934 B wxEVT_SCROLLWIN_BOTTOM
006c993c B wxEVT_SCROLLWIN_LINEDOWN
006c9938 B wxEVT_SCROLLWIN_LINEUP
006c9944 B wxEVT_SCROLLWIN_PAGEDOWN
006c9940 B wxEVT_SCROLLWIN_PAGEUP
006c994c B wxEVT_SCROLLWIN_THUMBRELEASE
006c9948 B wxEVT_SCROLLWIN_THUMBTRACK
006c9930 B wxEVT_SCROLLWIN_TOP
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I deleted manually all wx related stuff, then re-made everything and got that
core lib re-installed.
I'm confused.
I'll keep looking, any clue is welcome.
Regards,
Philippe
···
On Thursday 16 June 2005 01:08 am, Robin Dunn wrote:
Philippe C. Martin wrote:
> Hi,
>
> this is what I get when I "nm" the library: where should
> wxEVT_SCROLL_CHANGED be defined ?
It should be in the core wxgtk. Did you forget to rebuild and install
the 2.6.1.0 version of wxGTK? Here's mine:
$ nm /opt/wx/2.6/lib/libwx_gtk2ud-2.6.so | grep SCR
0057fbd8 r GRID_SCROLL_LINE_X
0057fbdc r GRID_SCROLL_LINE_Y
006ca978 b _NET_WM_STATE_FULLSCREEN
0053cca0 r SCROLL_UNIT_X
006c9868 B wxEVT_COMMAND_SCROLLBAR_UPDATED
006c9910 B wxEVT_SCROLL_BOTTOM
006c992c B wxEVT_SCROLL_CHANGED
006c9918 B wxEVT_SCROLL_LINEDOWN
006c9914 B wxEVT_SCROLL_LINEUP
006c9920 B wxEVT_SCROLL_PAGEDOWN
006c991c B wxEVT_SCROLL_PAGEUP
006c9928 B wxEVT_SCROLL_THUMBRELEASE
006c9924 B wxEVT_SCROLL_THUMBTRACK
006c990c B wxEVT_SCROLL_TOP
006c9934 B wxEVT_SCROLLWIN_BOTTOM
006c993c B wxEVT_SCROLLWIN_LINEDOWN
006c9938 B wxEVT_SCROLLWIN_LINEUP
006c9944 B wxEVT_SCROLLWIN_PAGEDOWN
006c9940 B wxEVT_SCROLLWIN_PAGEUP
006c994c B wxEVT_SCROLLWIN_THUMBRELEASE
006c9948 B wxEVT_SCROLLWIN_THUMBTRACK
006c9930 B wxEVT_SCROLLWIN_TOP
--
*************************************
Philippe C. Martin
SnakeCard, LLC
www.snakecard.com
+1 405 694 8098
*************************************
I just upgraded to 2.6.1 and have the same problem: not being able to print
plots to printer or to file (from my program as well as from the pyplot
demo).
1) I do not think it is a printer issue since I cannot print to file and since
I manage to print very well from HtmlEasyPrinting.
2) everything works fine (my program included) under windows but not from
Linux (mdk 10.1)
3) the "patch" hereunder fixes the print problem (???) when I print directly
(self.client.Printout()), but not when I print from the preview
(self.client.PrintPreview()), although the preview appears on the screen.
Any help quite welcome.
Regards,
Philippe
Philippe C. Martin wrote:
···
Hi,
I had to make this modification to PyPlot PlotCanvas.PrintOut to get it to
print :