Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Error: Cannot locate deriver sexp #232

Closed
kgasperich opened this issue May 8, 2018 · 6 comments
Closed

Error: Cannot locate deriver sexp #232

kgasperich opened this issue May 8, 2018 · 6 comments

Comments

@kgasperich
Copy link
Contributor

Written by Thomas

make
./create_git_sha1.sh
rm -f -- qp_print
ocamlbuild -j 0 -cflags "-g" -lflags "-g"  qp_print.native -use-ocamlfind 
+ ocamlfind ocamldep -package core,cryptokit,zmq,str,ppx_sexp_conv,ppx_deriving -modules Charge.mli > Charge.mli.depends
File "Charge.mli", line 1, characters 27-31:
Error: Cannot locate deriver sexp
Command exited with code 2.
Compilation unsuccessful after building 2 targets (1 cached) in 00:00:00.
make: *** [qp_print.native] Error 10
>opam --version
1.2.2

>ocaml --version
The OCaml toplevel, version 4.06.0

>opam install ppx_sexp_conv
[NOTE] Package ppx_sexp_conv is already installed (current version is v0.11.0).

Potential relevant links:
janestreet-deprecated/ppx_core#1
janestreet/ppx_sexp_conv#1

💇‍♂️

@TApplencourt
Copy link
Collaborator

Side note: In the new version of opam, ZMQ seem to be renamed into zmq. More precissely you can opam install ZMQ or opam install zmq, but the ocamlfind will only work with zmq (no capital).

You may need to update the .merlin file.

@TApplencourt
Copy link
Collaborator

TApplencourt commented May 9, 2018

I rebuild the last Travis after removing the Ocaml/Opam cache and it's working (https://travis-ci.org/LCPQ/quantum_package/builds/377046178)

ocam 4.06.0
ppx_sexp_conv  v0.10.0 

They use the version 0.10 and not 0.11 of ppx_sexp_conv

Maybe this is the issue. Can you try to check @kgasperich?

@anbenali
Copy link

anbenali commented May 10, 2018 via email

@kgasperich
Copy link
Contributor Author

@TApplencourt
I am now able to build without errors, but the two tests in the tests directory fail


 >./run_tests.sh 

-~-~-~-~-~-~

Running tests for convert

✗ gamess convert HBO.out
   (in test file bats/convert.bats, line 11)
     `qp_run SCF HBO.out.ezfio' failed
   2018-05-10 09:47:19.512396-04:00
   ===============
   Quantum Package
   ===============
   
   Git Commit: Change the url for GMP. The officiel website is down sometime
   Git Date  : Wed May 9 17:17:12 2018 -0500
   Git SHA1  : 850c438956a0320a46b9002400ffb3544b5f6606
   
   
   Task server running : tcp://136.142.28.137:41279
    
   .. >>>>> [ WALL TIME:        0.000000 s ] [ CPU  TIME:        0.007288 s ] <<<<< ..
    
    Read  ao_num
   * mo_tot_num                                                    20
    Read  mo_coef
    
   .. >>>>> [ WALL TIME:        0.028400 s ] [ CPU  TIME:        0.008528 s ] <<<<< ..
    
    Read  ao_prim_num
    
   .. >>>>> [ WALL TIME:        0.039400 s ] [ CPU  TIME:        0.008933 s ] <<<<< ..
    
    Read  ao_expo
    
   .. >>>>> [ WALL TIME:        0.051000 s ] [ CPU  TIME:        0.009907 s ] <<<<< ..
    
    Read  ao_coef
    
   .. >>>>> [ WALL TIME:        0.062800 s ] [ CPU  TIME:        0.010806 s ] <<<<< ..
    
    Read  ao_power
    
   .. >>>>> [ WALL TIME:        0.074900 s ] [ CPU  TIME:        0.010806 s ] <<<<< ..
    
    Read  ao_nucl
    
   .. >>>>> [ WALL TIME:        0.075600 s ] [ CPU  TIME:        0.010806 s ] <<<<< ..
    
    Read  nucl_num
    
   .. >>>>> [ WALL TIME:        0.091100 s ] [ CPU  TIME:        0.011856 s ] <<<<< ..
    
    Read  nucl_label
    
   .. >>>>> [ WALL TIME:        0.108600 s ] [ CPU  TIME:        0.011856 s ] <<<<< ..
    
    Read  nucl_charge
    
   .. >>>>> [ WALL TIME:        0.121700 s ] [ CPU  TIME:        0.011856 s ] <<<<< ..
    
   
   Nuclear Coordinates (Angstroms)
   ===============================
   
   ================ ============ ============ ============ ============
         Atom          Charge          X            Y            Z 
   ================ ============ ============ ============ ============
   H                    1.000000     0.000000     0.000000     0.000000
   B                    5.000000     1.166000     0.000000     0.000000
   B                    8.000000     2.366000     0.000000     0.000000
   ================ ============ ============ ============ ============
   
    * mo_label          Orthonormalized
    
   .. >>>>> [ WALL TIME:        0.150300 s ] [ CPU  TIME:        0.285588 s ] <<<<< ..
    
    Read  elec_beta_num     

   .. >>>>> [ WALL TIME:        0.150600 s ] [ CPU  TIME:        0.289294 s ] <<<<< ..
    
    Read  elec_alpha_num
    Read mo_occ
    
   .. >>>>> [ WALL TIME:        0.164600 s ] [ CPU  TIME:        0.442287 s ] <<<<< ..
    
    Read  ao_md5
   Wall time : 2.11924s
   
   /ihome/kjordan/keg56/anl/qp/quantum_package/tests/work/HBO.out recognized as gamessFile
   
   Possible choices:
   * H_CORE_guess
   * check_orthonormality
   * davidson_slave
   * diagonalize_restart_and_save_all_states
   * diagonalize_restart_and_save_lowest_state
   * diagonalize_restart_and_save_one_state
   * diagonalize_restart_and_save_two_states
   * four_idx_transform
   * guess_doublet
   * guess_lowest_state
   * guess_singlet
   * guess_triplet
   * mo_permutation
   * print_H_matrix_restart
   * print_aos
   * print_bitmask
   * print_energy
   * print_holes_particles
   * print_mo_in_space
   * print_wf
   * qp_ao_ints
   * save_HF_determinant
   * save_natorb
   * save_only_singles
   * save_ortho_mos
   * swap_mos
   * test_integrals
   * truncate_wf
   Uncaught exception:
     
     (Failure "Executable SCF not found")
   
   Raised at file "pervasives.ml", line 32, characters 17-33
   Called from file "qp_run.ml", line 61, characters 8-49
   Called from file "src/command.ml", line 2734, characters 6-97
   Called from file "src/exn.ml", line 108, characters 6-10
 ✗ g09 convert H2O.log
   (in test file bats/convert.bats, line 22)
     `qp_run SCF h2o.log.ezfio' failed
   2018-05-10 09:47:23.900480-04:00
   ===============
   Quantum Package
   ===============
   
   Git Commit: Change the url for GMP. The officiel website is down sometime
   Git Date  : Wed May 9 17:17:12 2018 -0500
   Git SHA1  : 850c438956a0320a46b9002400ffb3544b5f6606
   
   
   Task server running : tcp://136.142.28.137:41279
    
   .. >>>>> [ WALL TIME:        0.000000 s ] [ CPU  TIME:        0.006590 s ] <<<<< ..
    
    Read  ao_num
   * mo_tot_num                                                    24
    Read  mo_coef
    
   .. >>>>> [ WALL TIME:        0.028100 s ] [ CPU  TIME:        0.008028 s ] <<<<< ..
    
    Read  ao_prim_num


   .. >>>>> [ WALL TIME:        0.040300 s ] [ CPU  TIME:        0.008580 s ] <<<<< ..
    
    Read  ao_expo
    
   .. >>>>> [ WALL TIME:        0.052700 s ] [ CPU  TIME:        0.008886 s ] <<<<< ..
    
    Read  ao_coef
    
   .. >>>>> [ WALL TIME:        0.064700 s ] [ CPU  TIME:        0.009261 s ] <<<<< ..
    
    Read  ao_power
    
   .. >>>>> [ WALL TIME:        0.077600 s ] [ CPU  TIME:        0.009821 s ] <<<<< ..
    
    Read  ao_nucl
    
   .. >>>>> [ WALL TIME:        0.078200 s ] [ CPU  TIME:        0.009960 s ] <<<<< ..
    
    Read  nucl_num
    
   .. >>>>> [ WALL TIME:        0.090900 s ] [ CPU  TIME:        0.010547 s ] <<<<< ..
    
    Read  nucl_label
    
   .. >>>>> [ WALL TIME:        0.104500 s ] [ CPU  TIME:        0.011103 s ] <<<<< ..
    
    Read  nucl_charge
    
   .. >>>>> [ WALL TIME:        0.117300 s ] [ CPU  TIME:        0.011497 s ] <<<<< ..
    
   
   Nuclear Coordinates (Angstroms)
   ===============================
   
   ================ ============ ============ ============ ============
         Atom          Charge          X            Y            Z 
   ================ ============ ============ ============ ============
   H                    1.000000     0.000000     0.751000    -0.465600
   O                    8.000000     0.000000     0.000000     0.116400
   H                    1.000000     0.000000    -0.751000    -0.465600
   ================ ============ ============ ============ ============
   
    * mo_label          Orthonormalized
    
   .. >>>>> [ WALL TIME:        0.145500 s ] [ CPU  TIME:        0.280484 s ] <<<<< ..
    
    Read  elec_beta_num
    
   .. >>>>> [ WALL TIME:        0.145700 s ] [ CPU  TIME:        0.282618 s ] <<<<< ..
    
    Read  elec_alpha_num
    Read mo_occ
    
   .. >>>>> [ WALL TIME:        0.159600 s ] [ CPU  TIME:        0.433763 s ] <<<<< ..
    
    Read  ao_md5
   Wall time : 2.13075s
   
   /ihome/kjordan/keg56/anl/qp/quantum_package/tests/work/h2o.log recognized as gaussianFile
   
   Possible choices:
   * H_CORE_guess
   * check_orthonormality
   * davidson_slave
   * diagonalize_restart_and_save_all_states
   * diagonalize_restart_and_save_lowest_state
   * diagonalize_restart_and_save_one_state
   * diagonalize_restart_and_save_two_states
   * four_idx_transform
   * guess_doublet
   * guess_lowest_state
   * guess_singlet
   * guess_triplet
   * mo_permutation
   * print_H_matrix_restart
   * print_aos
   * print_bitmask
   * print_energy
   * print_holes_particles
   * print_mo_in_space
   * print_wf
   * qp_ao_ints
   * save_HF_determinant
   * save_natorb
   * save_only_singles
   * save_ortho_mos
   * swap_mos
   * test_integrals
   * truncate_wf
   Uncaught exception:
     
     (Failure "Executable SCF not found")
   
   Raised at file "pervasives.ml", line 32, characters 17-33
   Called from file "qp_run.ml", line 61, characters 8-49
   Called from file "src/command.ml", line 2734, characters 6-97
   Called from file "src/exn.ml", line 108, characters 6-10

2 tests, 2 failures

@TApplencourt
Copy link
Collaborator

TApplencourt commented May 10, 2018

@kgasperich
Nice! This one is not a bug! :) (or a least I know how to fix it).

You need to install the plugins who contain the required executable:

qp_module.py install Full_CI_ZMQ Hartree_Fock

for example

@kgasperich
Copy link
Contributor Author

kgasperich commented May 10, 2018

@TApplencourt
Thanks, that makes sense; I looked for SCF and RHF in the list of available plugins, but somehow I managed to look past Hartree_Fock

tests pass now:

>./run_tests.sh 

-~-~-~-~-~-~

Running tests for convert

 ✓ gamess convert HBO.out
 ✓ g09 convert H2O.log

2 tests, 0 failures

-~-~-~-~-~-~

Running tests for hf

 ✓ init DHNO chipman-dzp
 ✓ SCF DHNO chipman-dzp
 ✓ init HBO STO-3G
 ✓ SCF HBO STO-3G
 ✓ init H2O cc-pVDZ
 ✓ SCF H2O cc-pVDZ

6 tests, 0 failures

-~-~-~-~-~-~

Running tests for fci

 ✓ qp_set_mo_class H2O cc-pVDZ
 - FCI H2O cc-pVDZ (skipped)
 ✓ FCI-ZMQ H2O cc-pVDZ

3 tests, 0 failures, 1 skipped

-~-~-~-~-~-~

Running tests for cassd

 - CAS_SD H2O cc-pVDZ (skipped)

1 test, 0 failures, 1 skipped

-~-~-~-~-~-~

Running tests for mrcepa0

 - MRCC-lambda H2O cc-pVDZ (skipped)
 - MRCC H2O cc-pVDZ (skipped)
 - MRSC2 H2O cc-pVDZ (skipped)
 - MRCEPA0 H2O cc-pVDZ (skipped)

4 tests, 0 failures, 4 skipped

-~-~-~-~-~-~

Running tests for pseudo

 ✓ init H2O VDZ pseudo
 ✓ SCF H2O VDZ pseudo
 ✓ FCI H2O VDZ pseudo

3 tests, 0 failures

@scemama scemama closed this as completed Jun 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants