Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to test icsd-queryer: TypeError: load() missing 1 required positional argument: 'Loader'. #4

Open
hongyi-zhao opened this issue Jan 16, 2022 · 0 comments

Comments

@hongyi-zhao
Copy link

hongyi-zhao commented Jan 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant