darothen / py-mie

Python wrapper for Mie theory libraries used in aerosol radiative calculations
MIT License
12 stars 7 forks source link

Installation error with python3.5 #4

Open dhhagan opened 7 years ago

dhhagan commented 7 years ago

After installing (presumably) correctly on python3.5, I get an ImportError:

ImportErrror: No module named 'mie._mie'
twmr commented 7 years ago

Did you start your script from within the py-mie directory?

dhhagan commented 7 years ago

@thisch Yes. It appears to install correctly, which I find strange if it truly can't locate the extensions...

dhhagan commented 7 years ago

I fixed this by adding support for setuptools installation rather than numpy.distutils.core

I'm not sure why that worked, but it did..

darothen commented 7 years ago

Building for Python 3.5 works on Travis, so more investigation is needed here.

imanyakin commented 6 years ago

Same thing happens on python 2.7.12

`

ERROR: Failure: ImportError (No module named _mie)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/ilya/workspace/py-mie/mie/init.py", line 4, in from .mie import * File "/home/ilya/workspace/py-mie/mie/mie.py", line 3, in from ._mie import dmiess_module as dmiess ImportError: No module named _mie


Ran 1 test in 0.035s `

darothen commented 6 years ago

@imanyakin That class of error usually arises when the module has not been successfully built.