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 troubles related to SymEngine #232
Comments
Hi Evgeny, this error means that the installer cannot find the path to the SymEngine library. There are a few ways to address this, but the easiest is to install using Anaconda. The pycalphad setup script includes hard-coded path additions for conda environments, so it should just work. |
Except conda, what are the ways to tell the path to the SymEngine library to the installer? In |
That error is probably because |
Was the SymEngine wheel on PyPI (assuming that's where it was installed from) compiled without LLVM support?
On Jul 26, 2019 2:54 PM, Isuru Fernando <notifications@github.com> wrote:
That error is probably because libsymengine was compiled without LLVM support.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#232?email_source=notifications&email_token=ABQ33BW65JOXRW6W5BRVGLTQBNXBBA5CNFSM4IFTVYS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD25ZRMI#issuecomment-515610801>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABQ33BRGJKIKPXXZWUHFGZDQBNXBBANCNFSM4IFTVYSQ>.
|
All the wheels are compiled with LLVM support. |
@isuruf For downstream Python packages needing to link to `libsymengine`, what is recommended for finding the path? What pycalphad has in setup.py currently is a bit of a hack and only works with conda environments.
|
What you do for conda is fine. For pip wheels, it's hard as the pip wheel changes library names. Easiest way would be to provide pypi wheels yourself like we do at https://github.com/symengine/symengine-wheels |
Another way is to avoid the need to link to |
Right now pycalphad needs access to the C type information for I think that it would be possible for SymEngine to pass raw function pointers to pycalphad via use of With |
While putting together a PR I realized there was a much simpler solution, which I have submitted upstream: symengine/symengine.py#291 With that API we could eliminate the need for linking to libsymengine. |
@isuruf It looks like the solution I came up with still requires that we provide the path to the SymEngine include files, which may have some of the same difficulties with path detecton. Do you think an API like this would be possible to ship in symengine.py? Ideally something which would be robust to conda versus wheel/pip, etc. Lines 65 to 70 in c9ccc93
|
The wheels don't even ship the includes. See symengine/symengine.py#292 |
@richardotis @isuruf very much appreciated 👍👍👍 |
This should now be fixed on the develop branch, as of 05ff0cf. The next release will contain the fix. |
Dear Richard,
Dear Brandon,
while doing
pip3 install pycalphad
I have some troubles:Python is 3.5. NumPy, SciPy, Cython, Ipopt are present. SymEngine is of version 0.4.0. Is this a known problem?
The text was updated successfully, but these errors were encountered: