CambridgeMolecularEngineering / chemdataextractor2

ChemDataExtractor Version 2.0
Other
121 stars 28 forks source link

Installation - Dependency lock #24

Open regtm opened 1 year ago

regtm commented 1 year ago

Which python version is required to install cde2? I failed with python 3.6 running into issues building as the tokenizers package seems to rely on pyo3 which requires at least 3.7:

error: failed to run custom build command for pyo3-ffi v0.16.6

Caused by: process didn't exit successfully: /tmp/pip-install-vnmpfxfz/tokenizers_32f224e543a24d05a5fefeb3c8a79c1b/target/release/build/pyo3-ffi-31b85eb77d016a47/build-script-build (exit status: 1) --- stdout cargo:rerun-if-env-changed=PYO3_CROSS cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION cargo:rerun-if-env-changed=PYO3_PRINT_CONFIG

--- stderr
error: the configured Python interpreter version (3.6) is lower than PyO3's minimum supported version (3.7)

warning: build failed, waiting for other jobs to finish... error: build failed error: cargo failed with code: 101


ERROR: Failed building wheel for tokenizers ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects

For python 3.7 and 3.8 i ran into a dependency lock for click:

Could not find a version that matches click==6.7,>=8.0

ViktorWeissenborn commented 1 year ago

I had exactly the same problem. For me the only solution to get cde2 running was to format my system. On the fresh system I created a conda environment with python 3.7.11 and then it actually installed cde2.1.2 without any errors, as supposed to.

The funny thing is though: after that I tried to recreate the process in the exact same way in another conda environment with python 3.7.11, which led to the same dependency issues that appeared before formatting the system and that you described in your comment with python 3.7 and higher.