islpy icon indicating copy to clipboard operation
islpy copied to clipboard

How to install correctly using "build-with-barvinok.sh"?

Open yurikamome opened this issue 5 years ago • 2 comments

To Whom It May Concern,

I am trying to build islpy with barvinok to get the functionality of cardinality.

I use brew to install necessary tools such as gcc, libtool, automake. I create a virtual env in miniconda under python3.6 and pip install pcpp. when I run build-with-barvinok.sh everything looks good. It ends with the message "Finished processing dependencies for islpy==2019.1.2". and I also saw the .so files under my ~/pack/barvinok. When I run "pip list" I saw islpy is showing there.

But when I trying to import islpy it gives me following error msg:

import islpy Traceback (most recent call last): File "", line 1, in File "/local/home/yuilirui/islpy/islpy/islpy/init.py", line 25, in import islpy._isl as _isl ModuleNotFoundError: No module named 'islpy._isl'

Could you please help to figure out the reason?

yurikamome avatar Jun 22 '20 21:06 yurikamome

You are trying to import islpy in the source directory. Try importing in your home directory or any other directory

isuruf avatar Jun 23 '20 00:06 isuruf

Thanks for the reply.

After move out of the source dir, I got this small issue

import islpy Traceback (most recent call last): File "", line 1, in File "/home/yuilirui/miniconda3/envs/py36/lib/python3.6/site-packages/islpy-2019.1.2-py3.6-linux-x86_64.egg/islpy/init.py", line 25, in import islpy._isl as _isl File "/home/yuilirui/miniconda3/envs/py36/lib/python3.6/site-packages/islpy-2019.1.2-py3.6-linux-x86_64.egg/islpy/_isl.py", line 19, in from islpy._isl_cffi import ffi ImportError: libisl.so.21: cannot open shared object file: No such file or directory

I think I saw the libisl.so is under my ~/pack/barvinok. Could you please point out where should I copy them to?

yurikamome avatar Jun 23 '20 07:06 yurikamome