This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
Fix Insert sample event data error with module six not found #469
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue:
Fail to insert sample data with
ModuleNotFoundError
for 'six' moduleDetails:
Encountered a 'six' module not found error within the
google/cloud/pubsub_v1
module in event handlerReproduction Steps:
Stack trace
ModuleNotFoundError: No module named 'six'
at . ( /usr/local/lib/python3.10/site-packages/google/cloud/pubsub_v1/publisher/client.py:22 )
at . ( /usr/local/lib/python3.10/site-packages/google/cloud/pubsub_v1/publisher/init.py:17 )
at . ( /usr/local/lib/python3.10/site-packages/google/cloud/pubsub_v1/init.py:18 )
at . ( /app/event_handler.py:20 )
at ._call_with_frames_removed ( :241 )
at .exec_module ( :883 )
at ._load_unlocked ( :688 )
at ._find_and_load_unlocked ( :1006 )
at ._find_and_load ( :1027 )
at ._gcd_import ( :1050 )
at .import_module ( /usr/local/lib/python3.10/importlib/init.py:126 )
at .import_app ( /usr/local/lib/python3.10/site-packages/gunicorn/util.py:359 )
at .load_wsgiapp ( /usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py:48 )
at .load ( /usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py:58 )
at .wsgi ( /usr/local/lib/python3.10/site-packages/gunicorn/app/base.py:67 )
at .load_wsgi ( /usr/local/lib/python3.10/site-packages/gunicorn/workers/base.py:146 )
at .init_process ( /usr/local/lib/python3.10/site-packages/gunicorn/workers/base.py:134 )
at .init_process ( /usr/local/lib/python3.10/site-packages/gunicorn/workers/gthread.py:92 )
at .spawn_worker ( /usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py:589 )
How to fix this error
I updated google-cloud-pubsub to 1.7.2 then the issue has resolved and succeeded to insert sample data