Comments (10)
Would this be a useful function in pytraj? If so, should I just clone the repo and make a PR?
Dear @sastrys1, feel free to make a PR. I will be happy to review it. Thanks.
Thanks for this tool, I really love using pytraj!!
Sweet. I am glad that pytraj
is useful. Cheers.
from pytraj.
@hainm Do you have any advice on how to run pytraj with the changes I've made and then run the test code? I'm not able to build pytraj using the python setup.py install
command because the libcpptraj installation is failing. Do I need to be able to build the entire thing to test changes?
from pytraj.
Do I need to be able to build the entire thing to test changes?
yeah, I think so. Otherwise, you can update the source code in the install path directly and make a PR here for CI to test.
because the libcpptraj installation is failing.
what's the error?
from pytraj.
This is the error:
Error: LAPACK/BLAS build/link failed: g++ -Wall -fopenmp -O3 -fPIC -std=gnu++11 -o testp testp.cpp -L/gstore/apps/imkl/2021.4.0/mkl/2021.4.0/lib/intel64/lib -llapack -L/gstore/apps/imkl/2021.4.0/mkl/2021.4.0/lib/intel64/lib -lblas -lgfortran -lpthread -fopenmp
Error: Error message follows:
Error: /gstore/apps/binutils/2.37-GCCcore-11.2.0/bin/ld.gold: error: cannot find -llapack
/gstore/apps/binutils/2.37-GCCcore-11.2.0/bin/ld.gold: error: cannot find -lblas
/local/tmp/ccQzyy18.o:testp.cpp:function main: error: undefined reference to 'dsyev_'
/local/tmp/ccQzyy18.o:testp.cpp:function main: error: undefined reference to 'dgemm_'
collect2: error: ld returned 1 exit status
Traceback (most recent call last):
File "/gstore/scratch/u/sastrys1/pytraj/scripts/install_libcpptraj.py", line 225, in
install_libcpptraj(compiler, build_flag, args.j)
File "/gstore/scratch/u/sastrys1/pytraj/scripts/install_libcpptraj.py", line 173, in install_libcpptraj
subprocess.check_call(cm, shell=True)
File "/gstore/apps/Python/3.9.6-GCCcore-11.2.0/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'bash configure --requires-flink -shared -noarpack --with-blas=/gstore/apps/imkl/2021.4.0/mkl/2021.4.0/lib/intel64 --with-lapack=/gstore/apps/imkl/2021.4.0/mkl/2021.4.0/lib/intel64 --with-bzlib=/gstore/apps/Python/3.9.6-GCCcore-11.2.0 --with-zlib=/gstore/apps/Python/3.9.6-GCCcore-11.2.0 -amberlib -openmp -nosanderlib gnu' returned non-zero exit status 1.
from pytraj.
thanks @sastrys1 for the report.
FYI that here is how we build libcpptraj and pytraj in github action:
pytraj/.github/workflows/python-package-conda.yml
Lines 47 to 55 in f3cbb05
List of dependency:
pytraj/.github/workflows/python-package-conda.yml
Lines 14 to 22 in f3cbb05
from pytraj.
Decided to just make direct changes to my conda pytraj
repo and test them, and then commit them. Does simply pushing to my forked repo trigger a travis build?
from pytraj.
from pytraj.
Made a PR. Thanks for the help.
from pytraj.
Thanks. Let's move our discussion to there #1641 then.
from pytraj.
oh, for the record:
you can copy the existing libcpptraj.so{dylib} from the installed pytraj to $CPPTRAJHOME/lib (CPPTRAJHOME points to source folder of cpptraj). Doing this way you don't need to rebuild cpptraj. (pytraj only needs libcpptraj
and the header files (.h)).
from pytraj.
Related Issues (20)
- Build pytraj error when installing Amber22 HOT 3
- Amber22 installation: "source /home/xxxx/amber22/amber.sh" and "make test.serial" errors HOT 4
- Incorrect box dimensions when writing .rst7 from .dcd HOT 4
- Support trajin -type option for loading trajectory?
- Typo in Output of _explain() Function HOT 1
- Pytraj nastruct needs to be updated to handle [nxyz] data HOT 9
- wrong major groove calculation HOT 8
- calculated basepair matches in pytraj HOT 2
- Installation error of pytraj with pip HOT 4
- energy_decompostion throws "Fortran runtime error: Bad value during integer read" HOT 1
- Has anyone tried a Python 3.11 conda package build yet? HOT 11
- Spurious Test Failures with Cpptraj HOT 9
- ModuleNotFoundError: No module named 'pytraj.core.topology_objects' HOT 15
- Help: error building pytraj native library when make install 91% HOT 10
- hbond pmap_mpi output format HOT 7
- Make binary wheel for pytraj? HOT 5
- pytraj.plot module not found HOT 2
- Reporting Issues with Pytraj using tutorials HOT 28
- pytraj segmentation fault with cython 3.0 and cpptraj commit f1d21f688de5ea5c55e650abe6efdbc352bdc613 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytraj.