This is maybe more of an issue for requests and alembic, but using the default provided environment in the Quickstart environment I can't run the notebook on my Mac OS Catalina.
Quickstart also installs QCelemental 0.23.0 for QCFractal 0.15.6 which doesn't work. (#690)
>>> from qcfractal import FractalSnowflakeHandler
~/anaconda3/envs/snowflake/lib/python3.7/site-packages/qcfractal/interface/collections/dataset.py in <module>
10 import numpy as np
11 import pandas as pd
---> 12 import requests
13 from pydantic import Field, validator
14 from qcelemental import constants
~/.local/lib/python3.7/site-packages/requests/__init__.py in <module>
42
43 import urllib3
---> 44 import chardet
45 import warnings
46 from .exceptions import RequestsDependencyWarning
ModuleNotFoundError: No module named 'chardet'
importlib_resources
The error message is not actually helpful, but if you print stderr (below) you can see alembic. I'm not sure how to get the logger to log inside Jupyter or the terminal.
>>> server = FractalSnowflakeHandler()
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/var/folders/rv/j6lbln6j0kvb5svxj8wflc400000gn/T/ipykernel_72793/3909637800.py in <module>
----> 1 server = FractalSnowflakeHandler()
2 server
~/anaconda3/envs/snowflake/lib/python3.7/site-packages/qcfractal/snowflake.py in __init__(self, ncores)
214 self._running = False
215 self._qcfractal_proc = None
--> 216 self._storage = TemporaryPostgres()
217 self._storage_uri = self._storage.database_uri(safe=False)
218 self._qcfdir = None
~/anaconda3/envs/snowflake/lib/python3.7/site-packages/qcfractal/postgres_harness.py in __init__(self, database_name, tmpdir, quiet, logger)
487 self.psql = PostgresHarness(self.config)
488 self.psql.initialize_postgres()
--> 489 self.psql.init_database()
490
491 atexit.register(self.stop)
~/anaconda3/envs/snowflake/lib/python3.7/site-packages/qcfractal/postgres_harness.py in init_database(self)
385 if ret["retcode"] != 0:
386 self.logger(ret)
--> 387 raise ValueError("\nFailed to Stamp the database with current version.\n")
388
389 def backup_database(self, filename: Optional[str] = None) -> None:
ValueError:
Failed to Stamp the database with current version.
Stderr:
File "/Users/lily/anaconda3/envs/snowflake/lib/python3.7/site-packages/alembic/util/compat.py", line 33, in <module>
import importlib_resources # type:ignore[no-redef] # noqa
ModuleNotFoundError: No module named 'importlib_resources'
Perhaps a more informative error message would attach stderr to the ValueError, e.g.:
- raise ValueError("\nFailed to Stamp the database with current version.\n")
+ raise ValueError("Failed to Stamp the database with current version. "
+ f"stderr: {ret['stderr']}")
Expected behavior
Additional context
Initial environment before installing missing deps:
Describe the bug
This is maybe more of an issue for requests and alembic, but using the default provided environment in the Quickstart environment I can't run the notebook on my Mac OS Catalina.
Quickstart also installs QCelemental 0.23.0 for QCFractal 0.15.6 which doesn't work. (#690)
Also, Python <= 3.7 is pinned in the environment. This is about to become unsupported by newer numpy releases (https://numpy.org/neps/nep-0029-deprecation_policy.html) from Dec 26 2021.
To Reproduce
chardet
importlib_resources
The error message is not actually helpful, but if you print stderr (below) you can see alembic. I'm not sure how to get the logger to log inside Jupyter or the terminal.
Stderr:
Perhaps a more informative error message would attach stderr to the ValueError, e.g.:
Expected behavior
Additional context
Initial environment before installing missing deps: