You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Downgrade the protobuf package to 3.20.x or lower.
Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
$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:
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
The text was updated successfully, but these errors were encountered: