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

PyTrilinos: compiling with conda: ../../util/copyWithCMakeSubstitutions.py: not found #1540

Closed
looooo opened this issue Jul 27, 2017 · 6 comments

Comments

@looooo
Copy link

looooo commented Jul 27, 2017

reported problem:

/bin/sh: ../../util/copyWithCMakeSubstitutions.py: not found

https://github.com/trilinos/Trilinos/blob/master/packages/PyTrilinos/src/scripts/CMakeLists.txt#L46
The file copyWithCMakeSubstitutions.py was already created, so I think the path is wrong somehow.

Maybe this is conda specific. This is the first line of my copyWithCMakeSubstitutions.py:

!# /home/lo/conda/conda-bld/trilinos_1501156568034/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/bin/python2.7

Running ./copyWithCMakeSubstitutions.py manually result in:

bash: ./util/copyWithCMakeSubstitutions.py: /home/lo/conda/conda-bld/trilinos_1501156568034/_b_env_placehold_placehold_p: Defekter Interpreter: File or directory not found

To me it seems like the path to the interpreter is too long.

@looooo
Copy link
Author

looooo commented Jul 27, 2017

This patch solves my issue. Maybe someone else can test it.
https://github.com/looooo/conda_recipes/blob/master/trilinos/python.patch

@aprokop
Copy link
Contributor

aprokop commented Jul 27, 2017

@wfspotz

@wfspotz
Copy link
Contributor

wfspotz commented Jul 28, 2017

Interesting. I have been working on a PyTrilinos installer on conda-forge:

https://github.com/wfspotz/staged-recipes/tree/master/recipes/pytrilinos

I developed a very similar patch, although mine also fixes a test script.

@looooo
Copy link
Author

looooo commented Aug 20, 2017

@wfspotz
thanks for the information. I will try the conda-forge recipe. Was the PyTrilinos recipe allready accepted as a conda-forge feedstock?

@wfspotz
Copy link
Contributor

wfspotz commented Sep 2, 2017

It has been accepted now, although the Linux version is not working. I got it to work prior to the pull request acceptance, but now it (Circle-CI) is failing, and I can't get it to report why.

@looooo
Copy link
Author

looooo commented Sep 3, 2017

The package is build but the upload is not working. Maybe try to re-render the feedstock.

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

No branches or pull requests

3 participants