arrowhead-f / client-library-python

Arrowhead Client Library in Python
Eclipse Public License 2.0
5 stars 10 forks source link

ModuleNotFoundError: No module named 'httptools' #31

Closed InRiPa closed 3 years ago

InRiPa commented 3 years ago

Hi, our pipelines are failing. Is the pip library broken?

$ py.test
============================= test session starts ==============================
platform linux -- Python 3.9.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /builds/projgroup/s/mproject/sproject
collected 0 items / 2 errors
==================================== ERRORS ====================================
_____________________ ERROR collecting tests/test_Main.py ______________________
ImportError while importing test module '/builds/projgroup/s/mproject/sproject/tests/test_Main.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_Main.py:3: in <module>
    from modules.Main import Main
modules/Main.py:10: in <module>
    from modules.Services import provider
modules/Services.py:4: in <module>
    from arrowhead_client.client.implementations import AsyncClient
/usr/local/lib/python3.9/site-packages/arrowhead_client/client/__init__.py:4: in <module>
    from .client_core import provided_service, ArrowheadClient
/usr/local/lib/python3.9/site-packages/arrowhead_client/client/client_core.py:8: in <module>
    from arrowhead_client.provider.base import BaseProvider
/usr/local/lib/python3.9/site-packages/arrowhead_client/provider/__init__.py:3: in <module>
    from .implementations.fastapi_provider import FastapiProvider
/usr/local/lib/python3.9/site-packages/arrowhead_client/provider/implementations/fastapi_provider.py:15: in <module>
    from uvicorn.protocols.http.httptools_impl import HttpToolsProtocol
/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py:8: in <module>
    import httptools
E   ModuleNotFoundError: No module named 'httptools'
______________________ ERROR collecting tests/test_run.py ______________________
ImportError while importing test module '/builds/projgroup/s/mproject/sproject/tests/test_run.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_run.py:6: in <module>
    import run as runmain
run.py:9: in <module>
    from modules.Main import Main
modules/Main.py:10: in <module>
    from modules.Services import provider
modules/Services.py:4: in <module>
    from arrowhead_client.client.implementations import AsyncClient
/usr/local/lib/python3.9/site-packages/arrowhead_client/client/__init__.py:5: in <module>
    from .client_async import ArrowheadClientAsync
/usr/local/lib/python3.9/site-packages/arrowhead_client/client/client_async.py:7: in <module>
    from arrowhead_client.provider.implementations.fastapi_provider import FastapiProvider
/usr/local/lib/python3.9/site-packages/arrowhead_client/provider/implementations/fastapi_provider.py:15: in <module>
    from uvicorn.protocols.http.httptools_impl import HttpToolsProtocol
/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py:8: in <module>
    import httptools
E   ModuleNotFoundError: No module named 'httptools'
ajoino commented 3 years ago

~Ah crap, forgot to remove a line when I updated, will fix it ASAP~ Nope, forgot to delete the builds/ directory before building...

ajoino commented 3 years ago

Uploaded a fixed version, please try now.

If it doesn't work, pin the library version to 0.4.2a, that's the one before I updated.

InRiPa commented 3 years ago

Hey, thanks for the fast fix. It seems to be working again.