On 25 September 2010 12:10, Darren Dale <[email protected]> wrote: > Hello, > > I am attempting to contribute to the h5py project by porting the code > to python3. The code is available in the py3k branch at github > (http://github.com/darrendale/h5py/tree/py3k). So far, I am able to > build and install h5py using python3, but when I try to import it, I > get the following error: > > Python 3.1.2 (release31-maint, Sep 17 2010, 20:27:33) > [GCC 4.4.5] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import h5py > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "/home/darren/.local/lib/python3.1/site-packages/h5py-1.3.1.dev-py3.1-linux-x86_64.egg/h5py/__init__.py", > line 24, in <module>
Is h5py-1.3.1.dev-py3.1-linux-x86_64.egg a directory or a zip file? If it is a zip file, then: 1) remove your install (do not forget to remove the entry for easy-install.pth). 2) next edit your setup.py and pass zip_safe=False to the setup() function call. Finally, consider stop using setuptools. And stop using easy_install, use pip. -- Lisandro Dalcin --------------- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
