On Ubuntu 20.04.3 LTS, I try to test icsd-queryer
with the following steps but failed:
$ pyenv shell 3.8.3
$ pyenv virtualenv --system-site-packages icsd
$ pyenv shell icsd
$ git clone https://github.com/hegdevinayi/icsd-queryer.git hegdevinayi/icsd-queryer.git
$ cd hegdevinayi/icsd-queryer.git
$ pip install -r requirements.txt
$ pip install -U pip pysocks ipython matplotlib
# More packages for testing https://github.com/lrcfmd/ICSDClient
#$ pip install -U requests[socks,use_chardet_on_py3] pip matplotlib numpy ipython beautifulsoup4
Then I do the following test from ipython:
In [1]: import logging
In [2]: import queryer
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [2], in <module>
----> 1 import queryer
File ~/Public/repo/github.com/hegdevinayi/icsd-queryer.git/queryer.py:12, in <module>
8 from logging import NullHandler
10 from selenium import webdriver
---> 12 from tags import ICSD_QUERY_TAGS, ICSD_PARSE_TAGS
15 logger = getLogger(__name__)
18 class QueryerError(Exception):
File ~/Public/repo/github.com/hegdevinayi/icsd-queryer.git/tags/__init__.py:9, in <module>
6 parse_tags_file = os.path.join(TAGS_DIR, 'parse_tags.yml')
8 with open(query_tags_file, 'r') as fr:
----> 9 ICSD_QUERY_TAGS = yaml.load(fr)
11 with open(parse_tags_file, 'r') as fr:
12 ICSD_PARSE_TAGS = yaml.load(fr)
TypeError: load() missing 1 required positional argument: 'Loader'
Any hints for fixing this problem. See here for a related discussion.
Regards,
HZ