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

ImportError: cannot import name d2s #34

Open
b-schubert opened this issue Sep 4, 2015 · 4 comments
Open

ImportError: cannot import name d2s #34

b-schubert opened this issue Sep 4, 2015 · 4 comments
Assignees
Labels
Milestone

Comments

@b-schubert
Copy link
Contributor

======================================================================
ERROR: Failure: ImportError (cannot import name d2s)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/travis/build/FRED-2/Fred2/Fred2/test/TestDistance2Self.py", line 10, in <module>
    from Fred2.Distance2Self.Distance2Self import Distance2Self
  File "/home/travis/build/FRED-2/Fred2/Fred2/Distance2Self/Distance2Self.py", line 11, in <module>
    from Fred2 import d2s
ImportError: cannot import name d2s
@b-schubert
Copy link
Contributor Author

Works on local cluster machines.

@b-schubert
Copy link
Contributor Author

On Mac I get the following error:

from Fred2 import d2s
ImportError: dlopen(/../../test_optivac/lib/python2.7/site-packages/Fred2/d2s.so, 2): no suitable image found.  Did find:
/../../lib/python2.7/site-packages/Fred2/d2s.so: mach-o, but wrong architecture

file() on d2s.so gives me:

Fred2 schubert$ file d2s.so 
d2s.so: Mach-O bundle i386

b-schubert pushed a commit that referenced this issue Sep 7, 2015
Travis hotfixes

Unfixed Issue: d2s import and problems on Mac OS see Issue #34
@b-schubert b-schubert added the bug label Sep 8, 2015
@mwalzer
Copy link

mwalzer commented Sep 22, 2015

obviously ARCHFLAGS does not get set correctly for mac in the setup.py compile process ... how do other packages handle mac?

@b-schubert b-schubert added this to the Release 2.0 milestone Oct 9, 2015
@b-schubert
Copy link
Contributor Author

@christopher-mohr would you be willing to get dist2self cyton implementation production ready?

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

No branches or pull requests

3 participants