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

Error on latest docker python image #7

Closed
versus opened this issue Aug 26, 2022 · 0 comments
Closed

Error on latest docker python image #7

versus opened this issue Aug 26, 2022 · 0 comments

Comments

@versus
Copy link
Contributor

versus commented Aug 26, 2022

$docker run -it python bash
$git clone https://github.com/GONZOsint/geowifi.git && cd geowifi
$ python3 -m pip install -r requirements.txt

Successfully installed MarkupSafe-2.1.1 beautifulsoup4-4.11.1 branca-0.5.0 cachetools-5.2.0 certifi-2022.6.15 charset-normalizer-2.1.1 commonmark-0.9.1 folium-0.12.1.post1 google-3.0.0 google-api-core-2.8.2 google-api-python-client-2.58.0 google-auth-2.11.0 google-auth-httplib2-0.1.0 googleapis-common-protos-1.56.4 httplib2-0.20.4 idna-3.3 jinja2-3.1.2 numpy-1.23.2 protobuf-4.21.5 pyasn1-0.4.8 pyasn1-modules-0.2.8 pygments-2.13.0 pyparsing-3.0.9 pyyaml-6.0 requests-2.28.1 rich-12.5.1 rsa-4.9 six-1.16.0 soupsieve-2.3.2.post1 uritemplate-4.1.1 urllib3-1.26.12

$ python3 ./geowifi.py

Traceback (most recent call last):
File "/app/geowifi/./geowifi.py", line 8, in
from utils import searcher, mapper, vendorcheck
File "/app/geowifi/utils/searcher.py", line 8, in
from helpers import BSSIDApple_pb2
File "/app/geowifi/helpers/BSSIDApple_pb2.py", line 31, in
_descriptor.FieldDescriptor(
File "/app/geowifi-env/lib/python3.10/site-packages/google/protobuf/descriptor.py", line 560, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

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

2 participants