As it turns out, my python installation is 32 bits, which I wasn't aware of (checked it with platform.architecture).
Loading h5py in the python shell from ParaView 32 bits works fine after extending sys.path. Anyway, thank you very much for your help. Jean-Michel De : Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com] Envoyé : mardi 2 juin 2015 17:27 À : Jean-Michel; paraview@paraview.org Objet : Re: [Paraview] Import h5py in python shell Maybe try setting the PATH such that it finds the DLLs it's trying to loads -- it's a Hail Mary, but why not :). On Tue, Jun 2, 2015 at 10:56 AM Jean-Michel <jm.lu...@gantha.com> wrote: Thanks again Utkarsh. However, trying to load the installed h5py from pvpython (after appending the path in the sys.path) gives me the same error I ran into in ParaView's python shell: from h5py import _errors ImportError: DLL load failed: %1 is not a valid win32 application Jean-Michel De : Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com] Envoyé : mardi 2 juin 2015 16:27 À : Jean-Michel; paraview@paraview.org Objet : Re: [Paraview] Import h5py in python shell Another trick to try (no guarantees :) ) is to install Python 2.7.2 (64bit) and then install h5py for this installation of Python. Then, try loading h5py from pvpython. You'll need to extend the sys.path variable to find the installed modules. Utkarsh On Tue, Jun 2, 2015 at 2:54 AM Jean-Michel <jm.lu...@gantha.com> wrote: Thank you for your answer Utkarsh. Unfortunately, the h5py installer for Windows does not find the Python installation packaged with ParaView in my registry, so I cannot install it in ParaView. Jean-Michel De : Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com] Envoyé : vendredi 29 mai 2015 20:00 À : Jean-Michel; paraview@paraview.org Objet : Re: [Paraview] Import h5py in python shell ParaView packages its own Python. You'll either need to build ParaView from source using the Python installation you have or install h5py in the Python packaged with ParaView. Utkarsh On Tue, May 26, 2015 at 9:58 AM Jean-Michel <jm.lu...@gantha.com> wrote: Dear all, I am currently trying to use the h5py module in the Python Shell in ParaView 4.3.1 (64 bits). On my system, h5py comes from my installation of python-xy and works fine outside of ParaView. I tried to import the module by providing the path to the package, using mainly two methods: - append the path to the package with sys.path.append before doing the import - import the module using the imp package and providing the full path to imp.load_source However, both methods failed to load h5py, returing the following error : "ImportError: DLL load failed: %1 is not a valid win32 application". Thank you for your help. Jean-Michel _____ <http://www.avast.com/> Image supprimée par l'expéditeur. Avast logo L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. www.avast.com <http://www.avast.com/> _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview _____ <http://www.avast.com/> Image supprimée par l'expéditeur. Avast logo L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. www.avast.com <http://www.avast.com/> _____ <http://www.avast.com/> Image supprimée par l'expéditeur. Avast logo L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. www.avast.com <http://www.avast.com/> --- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview