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

3818 warnings, 57 errors in tests #1536

Closed
yurivict opened this issue Dec 10, 2022 · 2 comments
Closed

3818 warnings, 57 errors in tests #1536

yurivict opened this issue Dec 10, 2022 · 2 comments

Comments

@yurivict
Copy link

=========================================================================================== ERRORS ===========================================================================================
_______________________________________________________________________ ERROR collecting pyscf/cc/test/test_addons.py ________________________________________________________________________
import file mismatch:
imported module 'test_addons' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ao2mo/test/test_addons.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/cc/test/test_addons.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________ ERROR collecting pyscf/df/test/test_addons.py ________________________________________________________________________
import file mismatch:
imported module 'test_addons' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ao2mo/test/test_addons.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/df/test/test_addons.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________ ERROR collecting pyscf/df/test/test_incore.py ________________________________________________________________________
import file mismatch:
imported module 'test_incore' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ao2mo/test/test_incore.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/df/test/test_incore.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________ ERROR collecting pyscf/df/test/test_outcore.py _______________________________________________________________________
import file mismatch:
imported module 'test_outcore' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ao2mo/test/test_outcore.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/df/test/test_outcore.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/dft/test/test_h2o.py _________________________________________________________________________
import file mismatch:
imported module 'test_h2o' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/cc/test/test_h2o.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/dft/test/test_h2o.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________ ERROR collecting pyscf/fci/test/test_addons.py _______________________________________________________________________
import file mismatch:
imported module 'test_addons' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ao2mo/test/test_addons.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/fci/test/test_addons.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/fci/test/test_uhf.py _________________________________________________________________________
import file mismatch:
imported module 'test_uhf' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_uhf.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/fci/test/test_uhf.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________________________ ERROR collecting pyscf/geomopt/test/test_addons.py _____________________________________________________________________
import file mismatch:
imported module 'test_addons' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ao2mo/test/test_addons.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/geomopt/test/test_addons.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________ ERROR collecting pyscf/grad/test/test_cisd.py ________________________________________________________________________
import file mismatch:
imported module 'test_cisd' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ci/test/test_cisd.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_cisd.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/grad/test/test_h2o.py ________________________________________________________________________
import file mismatch:
imported module 'test_h2o' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/cc/test/test_h2o.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_h2o.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/grad/test/test_rhf.py ________________________________________________________________________
import file mismatch:
imported module 'test_rhf' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_rhf.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_rhf.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/grad/test/test_rks.py ________________________________________________________________________
import file mismatch:
imported module 'test_rks' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_rks.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_rks.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________ ERROR collecting pyscf/grad/test/test_ucisd.py _______________________________________________________________________
import file mismatch:
imported module 'test_ucisd' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ci/test/test_ucisd.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_ucisd.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/grad/test/test_uhf.py ________________________________________________________________________
import file mismatch:
imported module 'test_uhf' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_uhf.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_uhf.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/grad/test/test_uks.py ________________________________________________________________________
import file mismatch:
imported module 'test_uks' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_uks.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_uks.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/hessian/test/test_rhf.py _______________________________________________________________________
import file mismatch:
imported module 'test_rhf' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_rhf.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/hessian/test/test_rhf.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/hessian/test/test_rks.py _______________________________________________________________________
import file mismatch:
imported module 'test_rks' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_rks.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/hessian/test/test_rks.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/hessian/test/test_uhf.py _______________________________________________________________________
import file mismatch:
imported module 'test_uhf' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_uhf.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/hessian/test/test_uhf.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/hessian/test/test_uks.py _______________________________________________________________________
import file mismatch:
imported module 'test_uks' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_uks.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/hessian/test/test_uks.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/lib/gto/test/test_ecp.py _______________________________________________________________________
import file mismatch:
imported module 'test_ecp' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/gto/test/test_ecp.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/lib/gto/test/test_ecp.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/mcscf/test/test_addons.py ______________________________________________________________________
import file mismatch:
imported module 'test_addons' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ao2mo/test/test_addons.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/mcscf/test/test_addons.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/mcscf/test/test_bz.py ________________________________________________________________________
import file mismatch:
imported module 'test_bz' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/cc/test/test_bz.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/mcscf/test/test_bz.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/mcscf/test/test_casci.py _______________________________________________________________________
import file mismatch:
imported module 'test_casci' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_casci.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/mcscf/test/test_casci.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________ ERROR collecting pyscf/mcscf/test/test_h2o.py ________________________________________________________________________
import file mismatch:
imported module 'test_h2o' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/cc/test/test_h2o.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/mcscf/test/test_h2o.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_________________________________________________________________________ ERROR collecting pyscf/mp/test/test_mp2.py _________________________________________________________________________
import file mismatch:
imported module 'test_mp2' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_mp2.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/mp/test/test_mp2.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/mp/test/test_ump2.py _________________________________________________________________________
import file mismatch:
imported module 'test_ump2' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_ump2.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/mp/test/test_ump2.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________ ERROR collecting pyscf/pbc/df/test/test_df.py ________________________________________________________________________
import file mismatch:
imported module 'test_df' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/df/test/test_df.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/df/test/test_df.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/pbc/df/test/test_df_jk.py ______________________________________________________________________
import file mismatch:
imported module 'test_df_jk' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/df/test/test_df_jk.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/df/test/test_df_jk.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/pbc/df/test/test_ft_ao.py ______________________________________________________________________
import file mismatch:
imported module 'test_ft_ao' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/gto/test/test_ft_ao.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/df/test/test_ft_ao.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________________________ ERROR collecting pyscf/pbc/df/test/test_incore.py ______________________________________________________________________
import file mismatch:
imported module 'test_incore' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ao2mo/test/test_incore.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/df/test/test_incore.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________________________ ERROR collecting pyscf/pbc/df/test/test_outcore.py _____________________________________________________________________
import file mismatch:
imported module 'test_outcore' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ao2mo/test/test_outcore.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/df/test/test_outcore.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________________________ ERROR collecting pyscf/pbc/dft/test/test_numint.py _____________________________________________________________________
import file mismatch:
imported module 'test_numint' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/dft/test/test_numint.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/dft/test/test_numint.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/pbc/dft/test/test_rks.py _______________________________________________________________________
import file mismatch:
imported module 'test_rks' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_rks.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/dft/test/test_rks.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/pbc/dft/test/test_uks.py _______________________________________________________________________
import file mismatch:
imported module 'test_uks' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_uks.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/dft/test/test_uks.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________________________ ERROR collecting pyscf/pbc/grad/test/test_krks.py ______________________________________________________________________
import file mismatch:
imported module 'test_krks' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/dft/test/test_krks.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/grad/test/test_krks.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________________________ ERROR collecting pyscf/pbc/grad/test/test_kuks.py ______________________________________________________________________
import file mismatch:
imported module 'test_kuks' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/dft/test/test_kuks.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/grad/test/test_kuks.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________________________ ERROR collecting pyscf/pbc/scf/test/test_addons.py _____________________________________________________________________
import file mismatch:
imported module 'test_addons' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ao2mo/test/test_addons.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/scf/test/test_addons.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/pbc/scf/test/test_band.py ______________________________________________________________________
import file mismatch:
imported module 'test_band' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/df/test/test_band.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/scf/test/test_band.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________ ERROR collecting pyscf/pbc/scf/test/test_hf.py _______________________________________________________________________
import file mismatch:
imported module 'test_hf' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_hf.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/scf/test/test_hf.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/pbc/scf/test/test_rohf.py ______________________________________________________________________
import file mismatch:
imported module 'test_rohf' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_rohf.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/scf/test/test_rohf.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/pbc/scf/test/test_uhf.py _______________________________________________________________________
import file mismatch:
imported module 'test_uhf' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_uhf.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/scf/test/test_uhf.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
__________________________________________________________________ ERROR collecting pyscf/pbc/tdscf/test/test_kproxy_hf.py ___________________________________________________________________
pyscf/pbc/tdscf/test/test_kproxy_hf.py:4: in <module>
    from pyscf.pbc.tdscf import krhf_slow, kproxy
pyscf/pbc/tdscf/kproxy.py:61: in <module>
    class PhysERI(kproxy_supercell.PhysERI):
pyscf/pbc/tdscf/kproxy.py:132: in PhysERI
    get_k_ix = krhf_slow.PhysERI.get_k_ix.im_func
E   AttributeError: 'function' object has no attribute 'im_func'
__________________________________________________________________ ERROR collecting pyscf/pbc/tdscf/test/test_kproxy_ks.py ___________________________________________________________________
pyscf/pbc/tdscf/test/test_kproxy_ks.py:3: in <module>
    from pyscf.pbc.tdscf import kproxy, krhf_slow, kproxy_supercell
pyscf/pbc/tdscf/kproxy.py:61: in <module>
    class PhysERI(kproxy_supercell.PhysERI):
pyscf/pbc/tdscf/kproxy.py:132: in PhysERI
    get_k_ix = krhf_slow.PhysERI.get_k_ix.im_func
E   AttributeError: 'function' object has no attribute 'im_func'
_____________________________________________________________________ ERROR collecting pyscf/pbc/tdscf/test/test_rhf.py ______________________________________________________________________
import file mismatch:
imported module 'test_rhf' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_rhf.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/tdscf/test/test_rhf.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________________________________________________ ERROR collecting pyscf/scf/test/test_addons.py _______________________________________________________________________
import file mismatch:
imported module 'test_addons' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ao2mo/test/test_addons.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/scf/test/test_addons.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_________________________________________________________________________ ERROR collecting pyscf/scf/test/test_bz.py _________________________________________________________________________
import file mismatch:
imported module 'test_bz' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/cc/test/test_bz.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/scf/test/test_bz.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/scf/test/test_dhf.py _________________________________________________________________________
import file mismatch:
imported module 'test_dhf' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/grad/test/test_dhf.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/scf/test/test_dhf.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/scf/test/test_diis.py ________________________________________________________________________
import file mismatch:
imported module 'test_diis' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/lib/test/test_diis.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/scf/test/test_diis.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/scf/test/test_h2o.py _________________________________________________________________________
import file mismatch:
imported module 'test_h2o' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/cc/test/test_h2o.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/scf/test/test_h2o.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_________________________________________________________________________ ERROR collecting pyscf/scf/test/test_he.py _________________________________________________________________________
import file mismatch:
imported module 'test_he' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/dft/test/test_he.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/scf/test/test_he.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/scf/test/test_rhf.py _________________________________________________________________________
import file mismatch:
imported module 'test_rhf' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_rhf.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/scf/test/test_rhf.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________________________ ERROR collecting pyscf/scf/test/test_stability.py ______________________________________________________________________
import file mismatch:
imported module 'test_stability' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/scf/test/test_stability.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/scf/test/test_stability.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/scf/test/test_uhf.py _________________________________________________________________________
import file mismatch:
imported module 'test_uhf' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/eph/test/test_uhf.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/scf/test/test_uhf.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/symm/test/test_addons.py _______________________________________________________________________
import file mismatch:
imported module 'test_addons' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/ao2mo/test/test_addons.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/symm/test/test_addons.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________________________ ERROR collecting pyscf/tdscf/test/test_proxy.py _______________________________________________________________________
import file mismatch:
imported module 'test_proxy' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/tdscf/test/test_proxy.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/tdscf/test/test_proxy.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________________________ ERROR collecting pyscf/tdscf/test/test_rhf_slow.py _____________________________________________________________________
import file mismatch:
imported module 'test_rhf_slow' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/tdscf/test/test_rhf_slow.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/tdscf/test/test_rhf_slow.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________________________________________________ ERROR collecting pyscf/x2c/test/test_x2c.py _________________________________________________________________________
import file mismatch:
imported module 'test_x2c' has this __file__ attribute:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/pbc/x2c/test/test_x2c.py
which is not the same as the test file we want to collect:
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/x2c/test/test_x2c.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
====================================================================================== warnings summary ======================================================================================
pyscf/__init__.py:93
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/__init__.py:93: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(numpy.__version__) <= '1.8.0':

../../../../../../usr/local/lib/python3.9/site-packages/setuptools/_distutils/version.py:346
../../../../../../usr/local/lib/python3.9/site-packages/setuptools/_distutils/version.py:346
../../../../../../usr/local/lib/python3.9/site-packages/setuptools/_distutils/version.py:346
  /usr/local/lib/python3.9/site-packages/setuptools/_distutils/version.py:346: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    other = LooseVersion(other)

pyscf/__init__.py:99
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/__init__.py:99: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    elif '1.16.2' <= LooseVersion(numpy.__version__) < '1.18':

../../../../../../usr/local/lib/python3.9/site-packages/numpy/ctypeslib.py:137
  /usr/local/lib/python3.9/site-packages/numpy/ctypeslib.py:137: DeprecationWarning: 
  
    `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
    of the deprecation of `distutils` itself. It will be removed for
    Python >= 3.12. For older Python versions it will remain present.
    It is recommended to use `setuptools < 60.0` for those Python versions.
    For more details, see:
      https://numpy.org/devdocs/reference/distutils_status_migration.html 
  
  
    from numpy.distutils.misc_util import get_shared_lib_extension

pyscf/lib/numpy_helper.py:914
pyscf/lib/numpy_helper.py:914
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/lib/numpy_helper.py:914: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(numpy.__version__) <= LooseVersion('1.6.0'):

pyscf/lib/linalg_helper.py:1496
pyscf/lib/linalg_helper.py:1496
pyscf/lib/linalg_helper.py:1496
pyscf/lib/linalg_helper.py:1496
pyscf/lib/linalg_helper.py:1496
pyscf/lib/linalg_helper.py:1496
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/lib/linalg_helper.py:1496: DeprecationWarning: The 'sym_pos' keyword is deprecated and should be replaced by using 'assume_a = "pos"'. 'sym_pos' will be removed in SciPy 1.11.0.
    return scipy.linalg.solve(a, b, sym_pos=True)

pyscf/mp/mp2f12_slow.py:37
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/mp/mp2f12_slow.py:37: UserWarning: Module MP2-F12 is under testing
    warnings.warn('Module MP2-F12 is under testing')

pyscf/solvent/ddpcm.py:38
  /disk-samsung/freebsd-ports/science/py-pyscf/work-py39/pyscf-2.1.1/pyscf/solvent/ddpcm.py:38: UserWarning: Module ddPCM is under testing
    warnings.warn('Module ddPCM is under testing')

../../../../../../usr/local/lib/python3.9/site-packages/pytest_freezegun.py:17: 3802 warnings
  /usr/local/lib/python3.9/site-packages/pytest_freezegun.py:17: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(pytest.__version__) < LooseVersion('3.6.0'):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 57 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================= 3818 warnings, 57 errors in 1729.05s (0:28:49) =======================================================================
*** Error code 2

Version: 2.1.1
Python-3.9
FreeBSD 13.1

@sunqm
Copy link
Collaborator

sunqm commented Dec 20, 2022

Some configurations are needed for pytest. You can use this configuration https://github.com/pyscf/pyscf/blob/master/setup.cfg

pytest pyscf/ -c setup.cfg

@sunqm sunqm closed this as completed Dec 20, 2022
@yurivict
Copy link
Author

yurivict commented Jul 2, 2023

@sunqm The same problem exists when pytest is invoked as 'pytest pyscf/ -c setup.cfg':

cd /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/pyscf && /usr/bin/env F77="gfortran12" F90="gfortran12" FC="gfortran12"	 FFLAGS="-O -Wl,-rpath=/usr/local/lib/gcc12" F90FLAGS="-O -Wl,-rpath=/usr/local/lib/gcc12" FCFLAGS="-Wl,-rpath=/usr/local/lib/gcc12" XDG_DATA_HOME=/usr/ports/science/py-pyscf/work-py39  XDG_CONFIG_HOME=/usr/ports/science/py-pyscf/work-py39  XDG_CACHE_HOME=/usr/ports/science/py-pyscf/work-py39/.cache  HOME=/usr/ports/science/py-pyscf/work-py39 PATH=/usr/local/libexec/ccache:/usr/ports/science/py-pyscf/work-py39/.bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/usr/ports/science/py-pyscf/work-py39/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES ADDR2LINE="/usr/local/bin/addr2line" AR="/usr/local/bin/ar" AS="/usr/local/bin/as" CPPFILT="/usr/local/bin/c++filt" GPROF="/usr/local/bin/gprof" LD="/usr/local/bin/ld" NM="/usr/local/bin/nm" OBJCOPY="/usr/local/bin/objcopy" OBJDUMP="/usr/local/bin/objdump" RANLIB="/usr/local/bin/ranlib" READELF="/usr/local/bin/readelf" SIZE="/usr/local/bin/size" STRINGS="/usr/local/bin/strings" LDSHARED="cc -shared" PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE= PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -Wl,-rpath=/usr/local/lib/gcc12  -L/usr/local/lib/gcc12 -B/usr/local/bin -L/usr/local/lib -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" CCACHE_DIR="/tmp/.ccache" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444" PYTHONPATH=/usr/ports/science/py-pyscf/work-py39/stage/usr/local/lib/python3.9/site-packages /usr/local/bin/python3.9 -m pytest -k '' -rs -v -o addopts= -c /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/setup.cfg
Test session starts (platform: freebsd13, Python 3.9.17, pytest 7.3.1, pytest-sugar 0.9.7)
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/pyscf/.hypothesis/examples')
Using --randomly-seed=1471555469
rootdir: /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1
configfile: setup.cfg
plugins: forked-1.6.0, hypothesis-6.75.9, mypy-plugins-1.11.1, cov-2.9.0, randomly-3.12.0, timeout-2.1.0, time-machine-2.10.0, rerunfailures-11.1.2, flaky-3.7.0, xdist-2.5.0, env-0.6.2, mock-3.10.0, anyio-3.7.0, Faker-15.1.1, asyncio-0.21.0, trio-0.8.0, flake8-1.1.1, xdoctest-1.1.1, typeguard-4.0.0, checkdocs-2.9.0, black-0.3.12, mypy-0.10.3, sugar-0.9.7, services-2.2.1, enabler-2.1.1
asyncio: mode=strict
collecting 79 items                                                                                                                                                                           
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscf/cc/test/test_addons.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
import file mismatch:
imported module 'test_addons' has this __file__ attribute:
  /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/pyscf/ao2mo/test/test_addons.py
which is not the same as the test file we want to collect:
  /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/pyscf/cc/test/test_addons.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules

―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscf/df/test/test_addons.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
import file mismatch:
imported module 'test_addons' has this __file__ attribute:
  /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/pyscf/ao2mo/test/test_addons.py
which is not the same as the test file we want to collect:
  /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/pyscf/df/test/test_addons.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
collecting 385 items / 2 errors                                                                                                                                                               
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscf/df/test/test_incore.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
import file mismatch:
imported module 'test_incore' has this __file__ attribute:
  /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/pyscf/ao2mo/test/test_incore.py
which is not the same as the test file we want to collect:
  /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/pyscf/df/test/test_incore.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules

――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscf/df/test/test_outcore.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
import file mismatch:
imported module 'test_outcore' has this __file__ attribute:
  /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/pyscf/ao2mo/test/test_outcore.py
which is not the same as the test file we want to collect:
  /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/pyscf/df/test/test_outcore.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules

――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscf/dft/test/test_h2o.py ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
import file mismatch:
imported module 'test_h2o' has this __file__ attribute:
  /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/pyscf/cc/test/test_h2o.py
which is not the same as the test file we want to collect:
  /usr/ports/science/py-pyscf/work-py39/pyscf-2.2.1/pyscf/dft/test/test_h2o.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules

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

No branches or pull requests

2 participants