Hi,<br><br>Congratulations Mathieu,<br><br>I am imported gdcmPython.vtk.vtkGdcmReader, but apress error.<br><br>>>> import gdcmPython.vtk.vtkGdcmReader<br>>>> read = gdcmPython.vtk.vtkGdcmReader()<br>
>>> read.SetName("c:\\dicom.dcm")<br>>>> read.update()<br><br>Close Python Idle execute code.<br><br>Thanks,<br><span class="sg">
Paulo Henrique Junqueira Amorim</span><div><span class="e" id="q_117c2e3348183c8d_2"><br><br><br><div><span class="gmail_quote">2008/1/28, Mathieu Malaterre <<a href="mailto:mathieu.malaterre@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mathieu.malaterre@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Paulo,<br><br> Could you try the following:<br><br>copy the file: vtkgdcmPython.dll<br>and rename it into vtkgdcmPython.pyd<br><br>then try to load the lib again<br><br>-Mathieu<br><br>On Jan 28, 2008 6:05 PM, Paulo Henrique Junqueira Amorim<br>
<<a href="mailto:paulojamorim@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">paulojamorim@gmail.com</a>> wrote:<br>> Hi,<br>><br>> My<br>><br>> Path = %PythonPath%<br>
><br>> PYTHONPATH =<br>> C:\Python25;C:\Python25\Lib\site-packages;C:\Python25\Lib\site-packages\vtk;C:\Python25\Lib\site-packages\gdcmPython;<br>
><br>> Within gdcmPython have<br>><br>> Bmp2Dcm.lib<br>> core.py<br>> gdcm.dll<br>> gdcm.lib<br>> gdcm.py<br>> gdcmjpeg12.dll<br>> gdcmjpeg12.lib<br>> gdcmjpeg16.dll<br>> gdcmjpeg16.lib<br>
> gdcmjpeg8.dll<br>> gdcmjpeg8.lib<br>> gdcmopenjpeg.dll<br>> gdcmopenjpeg.lib<br>> gdcmVersion.py<br>> gdcmVersion.pyc<br>> vtk.py<br>> vtk.pyc<br>> vtkgdcm.dll<br>> vtkgdcm.lib<br>> vtkgdcmdemo.lib<br>
> vtkgdcmPython.dll<br>> vtkgdcmPython.lib<br>> vtkgdcmSerieViewer.lib<br>> vtkgdcmSerieViewer2.lib<br>> vtkgdcmViewer.lib<br>> vtkgdcmViewer2.lib<br>> vtkWriteDicom.lib<br>> vtkWriteDicomExtended.lib<br>
> _gdcm.dll<br>> _gdcm.lib<br>> __init__.py<br>> __init__.pyc<br>><br>><br>><br>><br>><br>> Thanks,<br>> Paulo<br>><br>><br>> 2008/1/28, Mathieu Malaterre <<a href="mailto:mathieu.malaterre@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mathieu.malaterre@gmail.com</a>>:<br>
> > You need to tell python where to look for loadable modules. In this<br>> > case you should set something like this:<br>> ><br>> > PYTHONPATH=c:/dir/where/vtkgdcmPython/can/be/found<br>> ><br>
> > HTH<br>> > -Mathieu<br>> ><br>> > On Jan 28, 2008 5:35 PM, Paulo Henrique Junqueira Amorim<br>> > <<a href="mailto:paulojamorim@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">paulojamorim@gmail.com</a>> wrote:<br>
> > > Hi,<br>
> > ><br>> > > I am posting the list also,<br>> > ><br>> > > Thanks for tip,<br>> > ><br>> > > >>import gdcmPython<br>> > > is ok,<br>> > ><br>
> > > But Presents error.<br>> > ><br>> > > >>> import gdcmPython.vtk<br>> > ><br>> > > Traceback (most recent call last):<br>> > > File "<stdin>", line 1, in <module><br>
> > > File "C:\gdc\gdcmPython\demo\..\..\gdcmPython\vtk.py", line 6, in<br>> > > <module><br>> > > from vtkgdcmPython import *<br>> > > ImportError: No module named vtkgdcmPython<br>
> > > >>><br>> > ><br>> > > Because I need to use vtkGdcmReader<br>> > ><br>> > ><br>> > > Regards,<br>> > > Paulo Amorim<br>> > ><br>
> > ><br>> > ><br>> > ><br>> > ><br>> > > > Hi Paulo,<br>> > > ><br>> > > > Please reply to the mailing list instead of private email, as other<br>
> > > > might be able to help you too, thanks.<br>> > > ><br>> > > > For all 'pure' gdcm executable, you do not need to change anything,<br>> > > > since on windows the $PWD will be the first path used to look for<br>
> > > > shared libs. But if you are using 'hybrid' gdcm+VTK library, then you<br>> > > > either need to set your PATH to include the shared lib for VTK, or<br>> > > > simply copy all the VTK dll into your gdcm bin directory (where all<br>
> > > > gdcm .dll are to be found).<br>> > > ><br>> > > > HTH<br>> > > > -Mathieu<br>> > > ><br>> > > ><br>> > > > On Jan 28, 2008 2:08 PM, Paulo Henrique Junqueira Amorim<br>
> > > > <<a href="mailto:paulojamorim@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">paulojamorim@gmail.com</a>> wrote:<br>> > > > > Congratulations Mathieu,<br>
> > > > ><br>> > > > > I am update my cvs and compile:<br>
> > > > ><br>> > > > > ========== Rebuild All: 18 succeeded, 0 failed, 1 skipped ==========<br>> > > > ><br>> > > > > How do I use?<br>> > > > ><br>
> > > > > Set in the path?<br>> > > > ><br>> > > > > Generate files:<br>> > > > ><br>> > > > > 28/01/2008 11:06 22.528 Bmp2Dcm.exe<br>
> > > > > 28/01/2008 11:06 4.924 Bmp2Dcm.exp<br>> > > > > 28/01/2008 11:06 183.296 bmp2dcm.idb<br>> > > > > 28/01/2008 11:06 8.928 Bmp2Dcm.lib<br>
> > > > > 28/01/2008 11:05 675.840 gdcm.dll<br>> > > > > 28/01/2008 11:05 237.333 gdcm.exp<br>> > > > > 28/01/2008 11:05 510.976 gdcm.idb<br>
> > > > > 28/01/2008 11:05 384.830 gdcm.lib<br>
> > > > > 28/01/2008 11:05 135.168 gdcmjpeg12.dll<br>> > > > > 28/01/2008 11:05 20.623 gdcmjpeg12.exp<br>> > > > > 28/01/2008 11:05 166.912 gdcmjpeg12.idb<br>
> > > > > 28/01/2008 11:05 35.368 gdcmjpeg12.lib<br>> > > > > 28/01/2008 11:05 135.168 gdcmjpeg16.dll<br>> > > > > 28/01/2008 11:05 20.623 gdcmjpeg16.exp<br>
> > > > > 28/01/2008 11:05 166.912 gdcmjpeg16.idb<br>> > > > > 28/01/2008 11:05 35.368 gdcmjpeg16.lib<br>> > > > > 28/01/2008 11:05 135.168 gdcmjpeg8.dll<br>
> > > > > 28/01/2008 11:05 20.268 gdcmjpeg8.exp<br>> > > > > 28/01/2008 11:05 166.912 gdcmjpeg8.idb<br>> > > > > 28/01/2008 11:05 34.648 gdcmjpeg8.lib<br>
> > > > > 28/01/2008 11:05 90.112 gdcmopenjpeg.dll<br>> > > > > 28/01/2008 11:05 2.941 gdcmopenjpeg.exp<br>> > > > > 28/01/2008 11:05 297.984 gdcmopenjpeg.idb<br>
> > > > > 28/01/2008 11:05 5.840 gdcmopenjpeg.lib<br>> > > > > 28/01/2008 11:06 147.456 vtkgdcm.dll<br>> > > > > 28/01/2008 11:06 37.104 vtkgdcm.exp<br>
> > > > > 28/01/2008 11:06 338.944 vtkgdcm.idb<br>> > > > > 28/01/2008 11:06 61.916 vtkgdcm.lib<br>> > > > > 28/01/2008 11:06 16.896 vtkgdcmdemo.exe<br>
> > > > > 28/01/2008 11:06 5.794 vtkgdcmdemo.exp<br>> > > > > 28/01/2008 11:06 216.064 vtkgdcmdemo.idb<br>> > > > > 28/01/2008 11:06 10.496 vtkgdcmdemo.lib<br>
> > > > > 28/01/2008 11:06 22.528 vtkgdcmPython.dll<br>> > > > > 28/01/2008 11:06 592 vtkgdcmPython.exp<br>> > > > > 28/01/2008 11:06 412.672 vtkgdcmpython.idb<br>
> > > > > 28/01/2008 11:06 1.898 vtkgdcmPython.lib<br>> > > > > 28/01/2008 11:06 27.136 vtkgdcmSerieViewer.exe<br>> > > > > 28/01/2008 11:06 5.809 vtkgdcmSerieViewer.exp<br>
> > > > > 28/01/2008 11:06 207.872 vtkgdcmserieviewer.idb<br>> > > > > 28/01/2008 11:06 10.838 vtkgdcmSerieViewer.lib<br>> > > > > 28/01/2008 11:06 27.136 vtkgdcmSerieViewer2.exe<br>
> > > > > 28/01/2008 11:06 5.810 vtkgdcmSerieViewer2.exp<br>> > > > > 28/01/2008 11:06 199.680 vtkgdcmserieviewer2.idb<br>> > > > > 28/01/2008 11:06 10.868 vtkgdcmSerieViewer2.lib<br>
> > > > > 28/01/2008 11:06 16.896 vtkgdcmViewer.exe<br>> > > > > 28/01/2008 11:06 5.798 vtkgdcmViewer.exp<br>> > > > > 28/01/2008 11:06 191.488 vtkgdcmviewer.idb<br>
> > > > > 28/01/2008 11:06 10.646 vtkgdcmViewer.lib<br>> > > > > 28/01/2008 11:06 22.016 vtkgdcmViewer2.exe<br>> > > > > 28/01/2008 11:06 10.693 vtkgdcmViewer2.exp<br>
> > > > > 28/01/2008 11:06 191.488 vtkgdcmviewer2.idb<br>> > > > > 28/01/2008 11:06 18.934 vtkgdcmViewer2.lib<br>> > > > > 28/01/2008 11:06 18.432 vtkWriteDicom.exe<br>
> > > > > 28/01/2008 11:06 10.272 vtkWriteDicom.exp<br>> > > > > 28/01/2008 11:06 166.912 vtkwritedicom.idb<br>> > > > > 28/01/2008 11:06 18.168 vtkWriteDicom.lib<br>
> > > > > 28/01/2008 11:06 25.088 vtkWriteDicomExtended.exe<br>> > > > > 28/01/2008 11:06 10.288 vtkWriteDicomExtended.exp<br>> > > > > 28/01/2008 11:06 166.912 vtkwritedicomextended.idb<br>
> > > > > 28/01/2008 11:06 18.632 vtkWriteDicomExtended.lib<br>> > > > > 28/01/2008 11:06 401.408 _gdcm.dll<br>> > > > > 28/01/2008 11:06 552 _gdcm.exp<br>
> > > > > 28/01/2008 11:06 240.640 _gdcm.idb<br>> > > > > 28/01/2008 11:06 1.684 _gdcm.lib<br>> > > > ><br>> > > > ><br>> > > > > Thanks,<br>
> > > > > Paulo<br>> > > > ><br>> > > > ><br>> > > > ><br>> > > > > 2008/1/28, Mathieu Malaterre <<a href="mailto:mathieu.malaterre@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mathieu.malaterre@gmail.com</a>>:<br>
> > > > ><br>> > > > > > Hi Paulo,<br>> > > > > ><br>> > > > > > This should be fixed. Please try again with after a cvs update.<br>> > > > > ><br>
> > > > > > Thanks<br>> > > > > > -Mathieu<br>> > > > > ><br>> > > > > > On Jan 28, 2008 1:16 PM, Paulo Henrique Junqueira Amorim<br>> > > > > > <<a href="mailto:paulojamorim@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">paulojamorim@gmail.com</a>> wrote:<br>
> > > > > > > Hi,<br>> > > > > > ><br>> > > > > > > I am update my cvs and compile one but showed error, Are anexed<br>> log<br>> > > > > > ><br>
> > > > > > > Again compiled vtk and gdcm on VC++ 2005<br>> > > > > > ><br>> > > > > > ><br>> > > > > > > Generated only those files,<br>
> > > > > > ><br>> > > > > > > 28/01/2008 10:03 19.456 bmp2dcm.idb<br>> > > > > > > 28/01/2008 10:02 675.840 gdcm.dll<br>> > > > > > > 28/01/2008 10:02 237.333 gdcm.exp<br>
> > > > > > > 28/01/2008 10:02 510.976 gdcm.idb<br>> > > > > > > 28/01/2008 10:02 384.830 gdcm.lib<br>> > > > > > > 28/01/2008 10:02 135.168 gdcmjpeg12.dll<br>
> > > > > > > 28/01/2008 10:02 20.623 gdcmjpeg12.exp<br>> > > > > > > 28/01/2008 10:02 166.912 gdcmjpeg12.idb<br>> > > > > > > 28/01/2008 10:02 35.368 gdcmjpeg12.lib<br>
> > > > > > > 28/01/2008 10:02 135.168 gdcmjpeg16.dll<br>> > > > > > > 28/01/2008 10:02 20.623 gdcmjpeg16.exp<br>> > > > > > > 28/01/2008 10:02 166.912 gdcmjpeg16.idb<br>
> > > > > > > 28/01/2008 10:02 35.368 gdcmjpeg16.lib<br>> > > > > > > 28/01/2008 10:02 135.168 gdcmjpeg8.dll<br>> > > > > > > 28/01/2008 10:02 20.268 gdcmjpeg8.exp<br>
> > > > > > > 28/01/2008 10:02 166.912 gdcmjpeg8.idb<br>> > > > > > > 28/01/2008 10:02 34.648 gdcmjpeg8.lib<br>> > > > > > > 28/01/2008 10:02 90.112 gdcmopenjpeg.dll<br>
> > > > > > > 28/01/2008 10:02 2.941 gdcmopenjpeg.exp<br>> > > > > > > 28/01/2008 10:02 297.984 gdcmopenjpeg.idb<br>> > > > > > > 28/01/2008 10:02 5.840 gdcmopenjpeg.lib<br>
> > > > > > > 28/01/2008 10:03 147.456 vtkgdcm.dll<br>> > > > > > > 28/01/2008 10:03 37.104 vtkgdcm.exp<br>> > > > > > > 28/01/2008 10:03 338.944 vtkgdcm.idb<br>
> > > > > > > 28/01/2008 10:03 61.916 vtkgdcm.lib<br>> > > > > > > 28/01/2008 10:03 16.896 vtkgdcmdemo.exe<br>> > > > > > > 28/01/2008 10:03 5.794 vtkgdcmdemo.exp<br>
> > > > > > > 28/01/2008 10:03 216.064 vtkgdcmdemo.idb<br>> > > > > > > 28/01/2008 10:03 10.496 vtkgdcmdemo.lib<br>> > > > > > > 28/01/2008 10:03 22.528 vtkgdcmPython.dll<br>
> > > > > > > 28/01/2008 10:03 592 vtkgdcmPython.exp<br>> > > > > > > 28/01/2008 10:03 412.672 vtkgdcmpython.idb<br>> > > > > > > 28/01/2008 10:03 1.898 vtkgdcmPython.lib<br>
> > > > > > > 28/01/2008 10:03 27.136 vtkgdcmSerieViewer.exe<br>> > > > > > > 28/01/2008 10:03 5.809 vtkgdcmSerieViewer.exp<br>> > > > > > > 28/01/2008 10:03 207.872 vtkgdcmserieviewer.idb<br>
> > > > > > > 28/01/2008 10:03 10.838 vtkgdcmSerieViewer.lib<br>> > > > > > > 28/01/2008 10:03 27.136 vtkgdcmSerieViewer2.exe<br>> > > > > > > 28/01/2008 10:03 5.810 vtkgdcmSerieViewer2.exp<br>
> > > > > > > 28/01/2008 10:03 199.680 vtkgdcmserieviewer2.idb<br>> > > > > > > 28/01/2008 10:03 10.868 vtkgdcmSerieViewer2.lib<br>> > > > > > > 28/01/2008 10:03 16.896 vtkgdcmViewer.exe<br>
> > > > > > > 28/01/2008 10:03 5.798 vtkgdcmViewer.exp<br>> > > > > > > 28/01/2008 10:03 191.488 vtkgdcmviewer.idb<br>> > > > > > > 28/01/2008 10:03 10.646 vtkgdcmViewer.lib<br>
> > > > > > > 28/01/2008 10:03 22.016 vtkgdcmViewer2.exe<br>> > > > > > > 28/01/2008 10:03 10.693 vtkgdcmViewer2.exp<br>> > > > > > > 28/01/2008 10:03 191.488 vtkgdcmviewer2.idb<br>
> > > > > > > 28/01/2008 10:03 18.934 vtkgdcmViewer2.lib<br>> > > > > > > 28/01/2008 10:03 18.432 vtkWriteDicom.exe<br>> > > > > > > 28/01/2008 10:03 10.272 vtkWriteDicom.exp<br>
> > > > > > > 28/01/2008 10:03 166.912 vtkwritedicom.idb<br>> > > > > > > 28/01/2008 10:03 18.168 vtkWriteDicom.lib<br>> > > > > > > 28/01/2008 10:03 25.088 vtkWriteDicomExtended.exe<br>
> > > > > > > 28/01/2008 10:03 10.288 vtkWriteDicomExtended.exp<br>> > > > > > > 28/01/2008 10:03 166.912 vtkwritedicomextended.idb<br>> > > > > > > 28/01/2008 10:03 18.632 vtkWriteDicomExtended.lib<br>
> > > > > > > 28/01/2008 10:03 401.408 _gdcm.dll<br>> > > > > > > 28/01/2008 10:03 552 _gdcm.exp<br>> > > > > > > 28/01/2008 10:03 240.640 _gdcm.idb<br>
> > > > > > ><br>> > > > > > ><br>> > > > > > ><br>> > > > > > > Thanks<br>> > > > > > > Paulo<br>> > > > > > ><br>
> > > > > > ><br>> > > > > > > 2008/1/27, Paulo Henrique Junqueira Amorim<br>> <<a href="mailto:paulojamorim@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">paulojamorim@gmail.com</a>>:<br>
> > > > > > ><br>
> > > > > > > > Hi,<br>> > > > > > > ><br>> > > > > > > > I will follow their tips and compile again.<br>> > > > > > > ><br>
> > > > > > > > Thank you,<br>> > > > > > > > Paulo Amorim<br>> > > > > > > ><br>> > > > > > > ><br>> > > > > > > ><br>
> > > > > > > ><br>> > > > > > > ><br>> > > > > > > > 2008/1/27, Mathieu Malaterre <<a href="mailto:mathieu.malaterre@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mathieu.malaterre@gmail.com</a>>:<br>
> > > > > > > > > Congratulation Paulo ! You just found your first bug in GDCM<br>> !<br>> > > > > > > > ><br>> > > > > > > > > This is fixed in the current CVS HEAD of GDCM. Please update<br>
> > > your<br>> > > > > > > > > copy, by doing a cvs update.<br>> > > > > > > > ><br>> > > > > > > > > Sorry for the troubles,<br>
> > > > > > > > > -Mathieu<br>
> > > > > > > > ><br>> > > > > > > > > Ref:<br>> > > > > > > > > $ cvs ci -m"COMP: Fix compilation on Win32 thanks to Paulo<br>> for<br>
> > > > > report"<br>> > > > > > > > > Checking in vtkImageColorViewer.h;<br>> > > > > > > > > /cvs/public/gdcm/vtk/vtkImageColorViewer.h,v <--<br>
> > > > > vtkImageColorViewer.h<br>> > > > > > > > > new revision: 1.2; previous revision: 1.1<br>> > > > > > > > > done<br>> > > > > > > > > Checking in vtkImageMapToWindowLevelColors2.h;<br>
> > > > > > > > > /cvs/public/gdcm/vtk/vtkImageMapToWindowLevelColors2.h,v<br>> <--<br>> > > > > > > > > vtkImageMapToWindowLevelColors2.h<br>> > > > > > > > > new revision: 1.2; previous revision: 1.1<br>
> > > > > > > > > done<br>> > > > > > > > ><br>> > > > > > > > > On Jan 27, 2008 9:43 PM, Paulo Henrique Junqueira Amorim<br>> > > > > > > > > <<a href="mailto:paulojamorim@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">paulojamorim@gmail.com</a>> wrote:<br>
> > > > > > > > > > Hi,<br>> > > > > > > > > ><br>> > > > > > > > > > I selected to vtk Release.<br>> > > > > > > > > ><br>
> > > > > > > > > > I am new compile of the gdcm with Release and new error<br>> > > atached.<br>> > > > > > > > > ><br>> > > > > > > > > > Thanks<br>
> > > > > > > > > ><br>> > > > > > > > > ><br>> > > > > > > > > ><br>> > > > > > > > > ><br>> > > > > > > > > > 2008/1/27, Mathieu Malaterre<br>
> <<a href="mailto:mathieu.malaterre@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mathieu.malaterre@gmail.com</a>>:<br>> > > > > > > > > ><br>> > > > > > > > > > > Ok so you decided to select: RelWithDebInfo for GDCM.<br>
> What<br>> > > did<br>> > > > > you<br>> > > > > > > > > > > selected for VTK ?<br>> > > > > > > > > > ><br>> > > > > > > > > > > On Jan 27, 2008 9:27 PM, Paulo Henrique Junqueira Amorim<br>
> > > > > > > > > > > <<a href="mailto:paulojamorim@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">paulojamorim@gmail.com</a>> wrote:<br>> > > > > > > > > > > > Hello,<br>
> > > > > > > > > > > ><br>
> > > > > > > > > > > > I am attached file with errors, compile the gdcm.<br>> > > > > > > > > > > ><br>> > > > > > > > > > > > Thanks<br>
> > > > > > > > > > > > Paulo<br>> > > > > > > > > > > ><br>> > > > > > > > > > ><br>> > > > > > > > > > ><br>
> > > > > > > > > > ><br>> > > > > > > > > > > --<br>> > > > > > > > > > > Mathieu<br>> > > > > > > > > > ><br>
> > > > > > > > > ><br>> > > > > > > > > ><br>> > > > > > > > ><br>> > > > > > > > ><br>> > > > > > > > ><br>
> > > > > > > > > --<br>> > > > > > > > > Mathieu<br>> > > > > > > > ><br>> > > > > > > ><br>> > > > > > > ><br>
> > > > > > ><br>> > > > > > ><br>> > > > > ><br>> > > > > ><br>> > > > > ><br>> > > > > > --<br>> > > > > > Mathieu<br>
> > > > > ><br>> > > > ><br>> > > > ><br>> > > ><br>> > > ><br>> > > ><br>> > > > --<br>> > > > Mathieu<br>> > > ><br>
> > ><br>> > ><br>> ><br>> ><br>> ><br>> > --<br>> > Mathieu<br>> ><br>><br>><br><br><br><br>--<br>Mathieu<br></blockquote></div><br>
</span></div><br clear="all">