devrel-examples icon indicating copy to clipboard operation
devrel-examples copied to clipboard

ModuleNotFoundError: No module named 'asana.error'

Open nick-youngblut opened this issue 2 years ago • 1 comments

I'm using the code at https://github.com/Asana/devrel-examples/blob/master/python/webhooks/webhook_inspector.py (modifications made to the print functions in order to be py3 compatible).

$ python webhook_inspector.py
Traceback (most recent call last):
  File "/Users/path/to/file/webhook_inspector.py", line 4, in <module>
    from asana.error import AsanaError
ModuleNotFoundError: No module named 'asana.error'

My python env:

# Name                    Version                   Build  Channel
asana                     4.0.10                   pypi_0    pypi
blinker                   1.6.2              pyhd8ed1ab_0    conda-forge
bzip2                     1.0.8                h3422bc3_4    conda-forge
ca-certificates           2023.7.22            hf0a4a13_0    conda-forge
certifi                   2023.7.22                pypi_0    pypi
click                     8.1.7           unix_pyh707e725_0    conda-forge
flask                     2.3.3              pyhd8ed1ab_0    conda-forge
importlib-metadata        6.8.0              pyha770c72_0    conda-forge
itsdangerous              2.1.2              pyhd8ed1ab_0    conda-forge
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
libffi                    3.4.2                h3422bc3_5    conda-forge
libsqlite                 3.43.0               hb31c410_0    conda-forge
libzlib                   1.2.13               h53f4e23_5    conda-forge
markupsafe                2.1.3            py39h0f82c59_0    conda-forge
ncurses                   6.4                  h7ea286d_0    conda-forge
openssl                   3.1.2                h53f4e23_0    conda-forge
pip                       23.2.1             pyhd8ed1ab_0    conda-forge
python                    3.9.18          hfa1ae8a_0_cpython    conda-forge
python-dateutil           2.8.2                    pypi_0    pypi
python_abi                3.9                      3_cp39    conda-forge
readline                  8.2                  h92ec313_1    conda-forge
setuptools                68.1.2             pyhd8ed1ab_0    conda-forge
six                       1.16.0                   pypi_0    pypi
tk                        8.6.12               he1e0b03_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
urllib3                   2.0.4                    pypi_0    pypi
werkzeug                  2.3.7              pyhd8ed1ab_0    conda-forge
wheel                     0.41.2             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h57fd34a_0    conda-forge
zipp                      3.16.2             pyhd8ed1ab_0    conda-forge

nick-youngblut avatar Sep 07 '23 22:09 nick-youngblut

The same goes for asana.Client.access_token(pat):

AttributeError: module 'asana' has no attribute 'Client'

nick-youngblut avatar Sep 07 '23 22:09 nick-youngblut