Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error with python3.5 #4

Open
dhhagan opened this issue Nov 30, 2016 · 6 comments
Open

Installation error with python3.5 #4

dhhagan opened this issue Nov 30, 2016 · 6 comments

Comments

@dhhagan
Copy link
Collaborator

dhhagan commented Nov 30, 2016

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

ImportErrror: No module named 'mie._mie'
@twmr
Copy link
Contributor

twmr commented Nov 30, 2016

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

@dhhagan
Copy link
Collaborator Author

dhhagan commented Nov 30, 2016

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

@dhhagan
Copy link
Collaborator Author

dhhagan commented Dec 1, 2016

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
Copy link
Owner

darothen commented Dec 2, 2016

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

@imanyakin
Copy link

imanyakin commented Jan 30, 2018

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants