question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

still cannot "import ants" on MacOS

See original GitHub issue

Still experiencing the same issue reported in https://github.com/ANTsX/ANTsPy/issues/26 on Mac OSX. This includes pip installing using the new wheel: antspy-0.1.5-cp36-cp36m-macosx_10_7_x86_64.whl or the pip install command listed on the README.

It still looks like the installation doesn’t do the ITK/VTK checks and installs that are in the setup.py file. I’ve tried manually executing the bash scripts that are called in setup.py and set the environment variables, etc, but still get the same error.

However, installing in linux (specifically Ubuntu 16.04 in a Docker container) using the README pip install command works just fine.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
thefabuscommented, Oct 29, 2018

python setup.py install is what I tried. Xcode 9.2, macOS 10.13.6. As a workaround, this old fork https://github.com/stnava/ANTsPy.git compiled without any problems.

1reaction
idc9commented, Jul 17, 2018

I’m getting the same error as @ejolly above when I try to install antspy using method one on my mac. In particular, when I run

pip install https://github.com/ANTsX/ANTsPy/releases/download/Weekly/antspy-0.1.4a0-cp36-cp36m-macosx_10_7_x86_64.whl
import ants

I get

ImportError: dlopen(/Users/iaincarmichael/anaconda/envs/py36/lib/python3.6/site-packages/ants/lib/antiAlias.cpython-36m-darwin.so, 2): Library not loaded: libvtkRenderingOpenGL2-8.1.1.dylib
  Referenced from: /Users/iaincarmichael/anaconda/envs/py36/lib/python3.6/site-packages/ants/lib/antiAlias.cpython-36m-darwin.so
  Reason: image not found

I’m using python 3.6 on a macOS Version 10.13.4.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I install Apache Ant on Mac OS X? - Stack Overflow
If it is not already installed, then your best bet is to install Homebrew ( brew install ant ) or MacPorts ( sudo...
Read more >
antspyx - PyPI
ANTsPy is a Python library which wraps the C++ biomedical image processing library ANTs, matches much of the statistical capabilities of ANTsR, and...
Read more >
If you can't move or copy an item on Mac - Apple Support
On your Mac, select the item, then choose File > Get Info, or press Command-I. Click the arrow next to Sharing & Permissions...
Read more >
Intellij IDEA cannot resolve any import statement
I had the very same problem and it was also caused by a plug-in. In my case it was SQLscout. Upon uninstalling, everything...
Read more >
Frequently Asked Questions - Apache Ant
Which version of Java is required to run Apache Ant? I get checksum ... Mac OS X. extension-point doesn't work with import like...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found