Closed keceli closed 11 months ago
The interim solution is to specify the new version of qcfractal in the conda install command. I don't know why the environment solution is favoring the less-encumbered old qcf 0.11, but it is for now.
conda create -n qcf711_38 python=3.8 qcfractal=0.15.8.1 plotly=5.6.0 -c conda-forge
conda create -n qcf711_38 python=3.7 qcfractal=0.15.8.1 plotly=5.6.0 -c conda-forge
conda create -n qcf711_38 python=3.7 qcfractal plotly=5.6.0 -c conda-forge
conda create -n qcf711_38 python=3.8 qcfractal=0.15.8.1 -c conda-forge
conda create -n qcf711_38 python=3.7 qcfractal=0.15.8.1 -c conda-forge
Thank you Lori. The installation with conda create -n qcf711_38 python=3.8 qcfractal=0.15.8.1 plotly=5.6.0 -c conda-forge
worked. But, some unit tests (pytest --pyargs qcfractal
) give error or fail. I should also note that adding geometric
and psi4
to the conda environment creates even more problems, i.e. more tests fail since conda downgrades/upgrades various dependencies. Should I create a new issue for these problems?
On Darwin Kernel Version 21.3.0
qcelemental 0.24.0 pyhd8ed1ab_0 conda-forge
qcengine 0.23.0 pyhd8ed1ab_0 conda-forge
qcfractal 0.15.8.1 py38h50d1736_0 conda-forge
qcfractal-core 0.15.8.1 py38h50d1736_0 conda-forge
> conda --version
conda 4.12.0
> python --version
Python 3.8.12
> pytest --pyargs qcfractal
================================================================================ short test summary info ================================================================================
ERROR tests/test_collections.py::test_dataset_contributed_units[download_view] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_dataset_contributed_mixed_values[download_view] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_contributed_dataset_values_subset[download_view-True] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_contributed_dataset_values_subset[download_view-False] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_contributed_dataset_list_get_values[download_view] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_contributed_dataset_view_identical[download_view] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_contributed_dataset_plaintextview_write[download_view] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_dataset_contributed_units[remote_view] - ValueError: Remote view is not available.
ERROR tests/test_collections.py::test_dataset_contributed_mixed_values[remote_view] - ValueError: Remote view is not available.
ERROR tests/test_collections.py::test_contributed_dataset_values_subset[remote_view-True] - ValueError: Remote view is not available.
ERROR tests/test_collections.py::test_contributed_dataset_values_subset[remote_view-False] - ValueError: Remote view is not available.
ERROR tests/test_collections.py::test_contributed_dataset_list_get_values[remote_view] - ValueError: Remote view is not available.
ERROR tests/test_collections.py::test_contributed_dataset_view_identical[remote_view] - ValueError: Remote view is not available.
ERROR tests/test_collections.py::test_contributed_dataset_plaintextview_write[remote_view] - ValueError: Remote view is not available.
On CentOS Linux release 7.9
qcelemental 0.24.0 pyhd8ed1ab_0 conda-forge
qcengine 0.23.0 pyhd8ed1ab_0 conda-forge
qcfractal 0.15.8.1 py38h578d9bd_0 conda-forge
qcfractal-core 0.15.8.1 py38h578d9bd_0 conda-forge
> conda --version
conda 4.10.3
> python --version
Python 3.8.13
> pytest --pyargs qcfractal
================================================================================ short test summary info ================================================================================
FAILED tests/test_server.py::test_snowflakehandler_log - ConnectionRefusedError: [Errno Snowflake instance did not boot properly, try increasing the timeout.
FAILED tests/test_storage.py::test_results_pagination - AssertionError: assert 33 == (25 + 5)
FAILED tests/test_storage.py::test_procedure_pagination - sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) update or delete on table "molecule" violates foreign k...
FAILED tests/test_storage.py::test_mol_pagination - AssertionError: assert 1 == 0
FAILED tests/test_storage.py::test_mol_formula - AssertionError: assert 1 == 0
FAILED tests/test_storage.py::test_collections_include_exclude - sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) update or delete on table "molecule" violates fo...
ERROR tests/test_collections.py::test_dataset_contributed_units[download_view] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_dataset_contributed_mixed_values[download_view] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_contributed_dataset_values_subset[download_view-True] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_contributed_dataset_values_subset[download_view-False] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_contributed_dataset_list_get_values[download_view] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_contributed_dataset_view_identical[download_view] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_contributed_dataset_plaintextview_write[download_view] - AttributeError: module 'distutils' has no attribute 'version'
ERROR tests/test_collections.py::test_dataset_contributed_units[remote_view] - ValueError: Remote view is not available.
ERROR tests/test_collections.py::test_dataset_contributed_mixed_values[remote_view] - ValueError: Remote view is not available.
ERROR tests/test_collections.py::test_contributed_dataset_values_subset[remote_view-True] - ValueError: Remote view is not available.
ERROR tests/test_collections.py::test_contributed_dataset_values_subset[remote_view-False] - ValueError: Remote view is not available.
ERROR tests/test_collections.py::test_contributed_dataset_list_get_values[remote_view] - ValueError: Remote view is not available.
ERROR tests/test_collections.py::test_contributed_dataset_view_identical[remote_view] - ValueError: Remote view is not available.
ERROR tests/test_collections.py::test_contributed_dataset_plaintextview_write[remote_view] - ValueError: Remote view is not available.
ERROR tests/test_storage.py::test_server_log - AssertionError: assert 1 == 0
If I do conda create -n qcf01581 python=3.8 qcfractal=0.15.8.1 plotly=5.6.0 geometric rdkit psi4 -c psi4 -c conda-forge
on my mac, I get:
(qcf01581) > python -c "from qcfractal import FractalSnowflakeHandler; server = FractalSnowflakeHandler()"
/Users/keceli/miniconda3/envs/qcf01581/lib/python3.8/site-packages/numpy/__init__.py:159: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service
from . import _distributor_init
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/keceli/tmp/molssi/QCFractal/qcfractal/__init__.py", line 5, in <module>
from . import interface
File "/Users/keceli/tmp/molssi/QCFractal/qcfractal/interface/__init__.py", line 5, in <module>
from . import collections, data, models, util
File "/Users/keceli/tmp/molssi/QCFractal/qcfractal/interface/collections/__init__.py", line 7, in <module>
from .dataset_view import DatasetView, HDF5View, PlainTextView, RemoteView
File "/Users/keceli/tmp/molssi/QCFractal/qcfractal/interface/collections/dataset_view.py", line 14, in <module>
import h5py
File "/Users/keceli/miniconda3/envs/qcf01581/lib/python3.8/site-packages/h5py/__init__.py", line 33, in <module>
from . import version
File "/Users/keceli/miniconda3/envs/qcf01581/lib/python3.8/site-packages/h5py/version.py", line 15, in <module>
from . import h5 as _h5
File "h5py/h5.pyx", line 1, in init h5py.h5
ImportError: dlopen(/Users/keceli/miniconda3/envs/qcf01581/lib/python3.8/site-packages/h5py/defs.cpython-38-darwin.so, 0x0002): Symbol not found: _H5Pget_fapl_ros3
Referenced from: /Users/keceli/miniconda3/envs/qcf01581/lib/python3.8/site-packages/h5py/defs.cpython-38-darwin.so
Expected in: /Users/keceli/miniconda3/envs/qcf01581/lib/libhdf5.103.dylib
Using
conda install -c conda-forge qcfractal=0.15.8.1
on windows gives:
PackagesNotFoundError: The following packages are not available from current channels:
I think all the conda packages are working (both v0.15 and the new v0.50).
qcfractal does not support windows (and in v0.50 it's explicitly marked that way). However, qcportal should be fine on windows.
(Also, mamba is usually the way to go, and I can't wait until it becomes the default in conda :)
Describe the bug Conda installation fails with either
The environment is inconsistent, please check the package plan carefully
or it proceeds with installing an older version (0.11.0) of QCFractal, which fails withImportError: cannot import name 'Schema' from 'pydantic' (/usr/local/lib/python3.7/site-packages/pydantic/__init__.cpython-37m-x86_64-linux-gnu.so)
when you import qcfractal. To ReproduceExpected behavior
conda
installation doesn't have a prerequisite, so this was expected to run out of the box. I tried on Linux and Mac and got similar errors. Additional contextThis issue is probably related to issue #695.