Crowd4SDG / crowdnalysis

Library to help analyze crowdsourcing results
GNU Affero General Public License v3.0
4 stars 1 forks source link

cmdstan package: error for Python 3.9 #10

Closed omulayim closed 3 years ago

omulayim commented 3 years ago

IsADirectoryError received at line #48 in cmdstan.__init__.py for importlib.resources.path.

To reproduce:

  1. Run $ source bin/init-local.sh
  2. Check (.venv) $ python3 --version is Python 3.9.x 2.1. If not, deactivate and remove .venv; upgrade your system's python3 to Python 3.9.x and go to step 1 again.
  3. Run (.venv) $ pytest src/
omulayim commented 3 years ago

It turns out the resource cannot be a directory, see importlib.resources.path. Python 3.8 was not complaining about this, whereas 3.9 does.