You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> import polaris as po
Traceback (most recent call last):
File "", line 1, in
File "/Users/pwalters/miniconda3/envs/rdkit_2023_05/lib/python3.11/site-packages/polaris/__init__.py", line 7, in
from .loader import load_benchmark, load_dataset
File "/Users/pwalters/miniconda3/envs/rdkit_2023_05/lib/python3.11/site-packages/polaris/loader/__init__.py", line 1, in
from .load import load_benchmark, load_dataset
File "/Users/pwalters/miniconda3/envs/rdkit_2023_05/lib/python3.11/site-packages/polaris/loader/load.py", line 6, in
from polaris.benchmark._definitions import (
File "/Users/pwalters/miniconda3/envs/rdkit_2023_05/lib/python3.11/site-packages/polaris/benchmark/__init__.py", line 1, in
from polaris.benchmark._base import BenchmarkSpecification
File "/Users/pwalters/miniconda3/envs/rdkit_2023_05/lib/python3.11/site-packages/polaris/benchmark/_base.py", line 11, in
from pydantic import (
ImportError: cannot import name 'ValidationInfo' from 'pydantic' (/Users/pwalters/miniconda3/envs/rdkit_2023_05/lib/python3.11/site-packages/pydantic/__init__.cpython-311-darwin.so)
>>>
Steps to reproduce
import polaris as po
Additional output
No response
The text was updated successfully, but these errors were encountered:
This may have been a function of the conda environment I was working in. I created a new conda environment and was able to successfully install polaris-lib.
Thanks for submitting this and following up, @PatWalters. I do believe it could be related to the version of pydantic you have installed in your rdkit_2023_05 conda environment. Would you mind sharing what that version was?
We should update the polaris environment spec to only accept pydantic versions which expose the ValidationInfo class.
Python 3.11.3 | packaged by conda-forge | (main, Apr 6 2023, 08:58:31) [Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Thanks! Conda should be throwing an error here about dependency conflicts based on the versioning we already specify for the polaris environment. We'll dig into this a bit further and keep this issue open until we have a more concrete explanation.
Polaris version
dev
Python Version
3.11.3
Operating System
MacOS
Installation
mamba install -c conda-forge polaris
Description
Steps to reproduce
import polaris as po
Additional output
No response
The text was updated successfully, but these errors were encountered: