erro no pyinstaller estou usando um ambiente isolado no pycharme
import time
import os
import warnings
import traceback
import datetime
import pandas as pd
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from concurrent.futures import ThreadPoolExecutor
warnings.filterwarnings('ignore')
import undetected_chromedriver as uc
from bs4 import BeautifulSoup
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow..py", line 37, in
from tensorflow.python.tools import module_util as .py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\site-packages\google\protobuf\descriptor.py", line 560, in
_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:
Assistant
api'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init
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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.compiler'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.core'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.distribute'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.lite'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.python'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.tools'!
641512 INFO: Loading module hook 'hook-torch.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
643856 INFO: Loading module hook 'hook-torchvision.ops.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
643859 INFO: Loading module hook 'hook-win32com.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
c:\users\herick.sousa\anaconda3\lib\site-packages\win32com\client\makepy.py:369: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if path is not '' and not os.path.exists(path):
646059 INFO: Loading module hook 'hook-zmq.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\pyinstaller_hooks_contrib\hooks\stdhooks'...
649941 INFO: Loading module hook 'hook-babel.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
650490 INFO: Loading module hook 'hook-difflib.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
650511 INFO: Loading module hook 'hook-distutils.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
650514 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
650535 INFO: Loading module hook 'hook-encodings.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
650673 INFO: Loading module hook 'hook-gevent.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_init.py", line 86, in
from gevent._hub_local import get_hub
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "c:\users\herick.sousa\anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent._gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
collect_submodules: failed to import 'gevent.ffi'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_init.py", line 86, in
from gevent._hub_local import get_hub
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "c:\users\herick.sousa\anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent.gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
collect_submodules: failed to import 'gevent.libev'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_init.py", line 86, in
from gevent._hub_local import get_hub
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "c:\users\herick.sousa\anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent.gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
collect_submodules: failed to import 'gevent.libuv'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_init.py", line 86, in
from gevent._hub_local import get_hub
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "c:\users\herick.sousa\anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent.gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
collect_submodules: failed to import 'gevent.resolver'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_init.py", line 86, in
from gevent._hub_local import get_hub
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "c:\users\herick.sousa\anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent.gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
collect_submodules: failed to import 'gevent.testing'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_init.py", line 86, in
from gevent._hub_local import get_hub
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "c:\users\herick.sousa\anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent._gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
collect_submodules: failed to import 'gevent.tests'!
651464 INFO: Determining a mapping of distributions to packages...
Aborted by user request.
PS C:\Users\herick.sousa\Downloads\JusBrasilProcessos> pyinstaller --icon="logo-jusbrasil.ico" --onefile program.py
4407 INFO: PyInstaller: 4.5.1
4407 INFO: Python: 3.8.8 (conda)
4408 INFO: Platform: Windows-10-10.0.19041-SP0
4412 INFO: wrote C:\Users\herick.sousa\Downloads\JusBrasilProcessos\program.spec
4418 INFO: UPX is not available.
4421 INFO: Extending PYTHONPATH with paths
['C:\Users\herick.sousa\Downloads\JusBrasilProcessos',
'C:\Users\herick.sousa\Downloads\JusBrasilProcessos']
:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
discover_hook_directories: Failed to process hook entry point 'hook-dirs = playwright._impl.__pyinstaller:get_hook_dirs': (pyee 8.2.2 (c:\users\herick.sousa\anaconda3\lib\site-packages), Requirement.parse('pyee==9.0.4'))
WARNING: Could not read zip file c:\users\herick.sousa\anaconda3\lib\site-packages\locket-0.2.1-py3.8.egg: 'WindowsPath' object has no attribute 'seek'
discover_hook_directories: Failed to process hook entry point 'hook-dirs = yt_dlp.__pyinstaller:get_hook_dirs': expected str, bytes or os.PathLike object, not WindowsPath
6965 INFO: checking Analysis
6966 INFO: Building Analysis because Analysis-00.toc is non existent
6966 INFO: Initializing module dependency graph...
6977 INFO: Caching module graph hooks...
6989 WARNING: Several hooks defined for module 'numpy'. Please take care they do not conflict.
7000 INFO: Analyzing base_library.zip ...
16256 INFO: Processing pre-find module path hook distutils from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks\pre_find_module_path\hook-distutils.py'.
16259 INFO: distutils: retargeting to non-venv dir 'c:\users\herick.sousa\anaconda3\lib'
29780 INFO: Processing pre-find module path hook site from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks\pre_find_module_path\hook-site.py'.
29782 INFO: site: retargeting to fake-dir 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\fake-modules'
82388 INFO: Processing pre-safe import module hook urllib3.packages.six.moves from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks\pre_safe_import_module\hook-urllib3.packages.six.moves.py'.
101314 INFO: Processing pre-safe import module hook six.moves from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks\pre_safe_import_module\hook-six.moves.py'.
136361 INFO: Processing pre-safe import module hook win32com from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\pre_safe_import_module\hook-win32com.py'.
=============================================================
A RecursionError (maximum recursion depth exceeded) occurred.
For working around please follow these instructions
In your program's .spec file add this line near the top::
Build your program by running PyInstaller with the .spec file as
argument::
pyinstaller myprog.spec
If this fails, you most probably hit an endless recursion in
PyInstaller. Please try to track this down has far as possible,
create a minimal example so we can reproduce and open an issue at
https://github.com/pyinstaller/pyinstaller/issues following the
instructions in the issue template. Many thanks.
Explanation: Python's stack-limit is a safety-belt against endless recursion,
eating up memory. PyInstaller imports modules recursively. If the structure
how modules are imported within your program is awkward, this leads to the
nesting being too deep and hitting Python's stack-limit.
With the default recursion limit (1000), the recursion error occurs at about
115 nested imported, with limit 2000 at about 240, with limit 5000 at about
660.
PS C:\Users\herick.sousa\Downloads\JusBrasilProcessos> pyinstaller --icon="logo-jusbrasil.ico" --onefile program.spec program.py
3066 INFO: PyInstaller: 4.5.1
3066 INFO: Python: 3.8.8 (conda)
3066 INFO: Platform: Windows-10-10.0.19041-SP0
3072 INFO: UPX is not available.
3074 INFO: Extending PYTHONPATH with paths
['C:\Users\herick.sousa\Downloads\JusBrasilProcessos',
'C:\Users\herick.sousa\Downloads\JusBrasilProcessos']
:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
discover_hook_directories: Failed to process hook entry point 'hook-dirs = playwright._impl.__pyinstaller:get_hook_dirs': (pyee 8.2.2 (c:\users\herick.sousa\anaconda3\lib\site-packages), Requirement.parse('pyee==9.0.4'))
WARNING: Could not read zip file c:\users\herick.sousa\anaconda3\lib\site-packages\locket-0.2.1-py3.8.egg: 'WindowsPath' object has no attribute 'seek'
discover_hook_directories: Failed to process hook entry point 'hook-dirs = yt_dlp.__pyinstaller:get_hook_dirs': expected str, bytes or os.PathLike object, not WindowsPath
5156 INFO: checking Analysis
5156 INFO: Building Analysis because Analysis-00.toc is non existent
5157 INFO: Initializing module dependency graph...
5167 INFO: Caching module graph hooks...
5178 WARNING: Several hooks defined for module 'numpy'. Please take care they do not conflict.
5187 INFO: Analyzing base_library.zip ...
14302 INFO: Processing pre-find module path hook distutils from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks\pre_find_module_path\hook-distutils.py'.
14304 INFO: distutils: retargeting to non-venv dir 'c:\users\herick.sousa\anaconda3\lib'
27784 INFO: Processing pre-find module path hook site from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks\pre_find_module_path\hook-site.py'.
27785 INFO: site: retargeting to fake-dir 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\fake-modules'
75531 INFO: Processing pre-safe import module hook urllib3.packages.six.moves from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks\pre_safe_import_module\hook-urllib3.packages.six.moves.py'.
91920 INFO: Processing pre-safe import module hook six.moves from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks\pre_safe_import_module\hook-six.moves.py'.
123090 INFO: Processing pre-safe import module hook win32com from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\pre_safe_import_module\hook-win32com.py'.
502181 INFO: Caching module dependency graph...
504567 INFO: running Analysis Analysis-00.toc
504595 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\herick.sousa\anaconda3\python.exe
504972 INFO: Analyzing program.py
505378 INFO: Processing module hooks...
505379 INFO: Loading module hook 'hook-numpy.py' from 'C:\Users\herick.sousa\Anaconda3\Lib\site-packages\numpy\_pyinstaller'...
505580 INFO: Import to be excluded not found: 'f2py'
505651 INFO: Loading module hook 'hook-appdirs.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
505670 INFO: Loading module hook 'hook-argon2.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
505672 INFO: Loading module hook 'hook-bcrypt.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
505673 INFO: Loading module hook 'hook-bokeh.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
509738 INFO: Loading module hook 'hook-botocore.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
511140 INFO: Loading module hook 'hook-certifi.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
511149 INFO: Loading module hook 'hook-clr.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
511153 INFO: Loading module hook 'hook-cryptography.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
511558 INFO: Loading module hook 'hook-dask.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
511719 INFO: Loading module hook 'hook-docutils.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
516348 INFO: Loading module hook 'hook-google.api_core.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
516351 INFO: Loading module hook 'hook-googleapiclient.model.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
516665 INFO: Loading module hook 'hook-h5py.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
516668 INFO: Loading module hook 'hook-httplib2.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
516679 INFO: Loading module hook 'hook-IPython.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
517918 INFO: Loading module hook 'hook-jedi.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
520644 INFO: Loading module hook 'hook-jinja2.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
520645 INFO: Loading module hook 'hook-jsonschema.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
520706 INFO: Loading module hook 'hook-llvmlite.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
520717 INFO: Loading module hook 'hook-lxml.etree.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
520718 INFO: Loading module hook 'hook-lxml.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
521679 INFO: Loading module hook 'hook-nacl.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
521727 INFO: Loading module hook 'hook-nbconvert.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
521964 INFO: Loading module hook 'hook-nbformat.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
522074 INFO: Loading module hook 'hook-notebook.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
532691 INFO: Loading module hook 'hook-numba.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
532737 INFO: Loading module hook 'hook-openpyxl.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
532984 INFO: Loading module hook 'hook-parso.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
533017 INFO: Loading module hook 'hook-pyarrow.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
533752 WARNING: Hidden import "pyarrow.compat" not found!
533752 INFO: Loading module hook 'hook-pycparser.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
533754 INFO: Loading module hook 'hook-pytest.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
536665 INFO: Loading module hook 'hook-pythoncom.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
538238 INFO: Loading module hook 'hook-pywintypes.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
539695 INFO: Loading module hook 'hook-regex.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
539696 INFO: Loading module hook 'hook-selenium.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
540280 INFO: Loading module hook 'hook-tables.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
540282 INFO: Loading module hook 'hook-tensorflow.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\pyinstaller_hooks_contrib\hooks\stdhooks'...
2024-11-14 09:04:56.149036: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2024-11-14 09:04:56.149589: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.api'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.compiler'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.core'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.distribute'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.lite'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.python'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "c:\users\herick.sousa\anaconda3\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "c:\users\herick.sousa\anaconda3\lib\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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
collect_submodules: failed to import 'tensorflow.tools'!
560666 INFO: Loading module hook 'hook-torch.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
562685 INFO: Loading module hook 'hook-torchvision.ops.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
562687 INFO: Loading module hook 'hook-win32com.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks'...
c:\users\herick.sousa\anaconda3\lib\site-packages\win32com\client\makepy.py:369: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if path is not '' and not os.path.exists(path):
564545 INFO: Loading module hook 'hook-zmq.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\pyinstaller_hooks_contrib\hooks\stdhooks'...
567952 INFO: Loading module hook 'hook-babel.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
568537 INFO: Loading module hook 'hook-difflib.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
568555 INFO: Loading module hook 'hook-distutils.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
568558 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
568576 INFO: Loading module hook 'hook-encodings.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
568705 INFO: Loading module hook 'hook-gevent.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_init.py", line 86, in
from gevent._hub_local import get_hub
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "c:\users\herick.sousa\anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent._gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
collect_submodules: failed to import 'gevent.ffi'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_init.py", line 86, in
from gevent._hub_local import get_hub
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "c:\users\herick.sousa\anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent.gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
collect_submodules: failed to import 'gevent.libev'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_init.py", line 86, in
from gevent._hub_local import get_hub
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "c:\users\herick.sousa\anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent.gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
collect_submodules: failed to import 'gevent.libuv'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_init.py", line 86, in
from gevent._hub_local import get_hub
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "c:\users\herick.sousa\anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent.gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
collect_submodules: failed to import 'gevent.resolver'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_init.py", line 86, in
from gevent._hub_local import get_hub
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "c:\users\herick.sousa\anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent.gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
collect_submodules: failed to import 'gevent.testing'!
Traceback (most recent call last):
File "", line 21, in walk_packages
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_init.py", line 86, in
from gevent._hub_local import get_hub
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "c:\users\herick.sousa\anaconda3\lib\site-packages\gevent_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "c:\users\herick.sousa\anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent.gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
collect_submodules: failed to import 'gevent.tests'!
569281 INFO: Determining a mapping of distributions to packages...
911367 WARNING: Unable to find package for requirement zope.event from package gevent.
911367 WARNING: Unable to find package for requirement zope.interface from package gevent.
911368 INFO: Packages required by gevent:
['setuptools', 'greenlet', 'cffi']
912209 INFO: Loading module hook 'hook-heapq.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
912232 INFO: Loading module hook 'hook-importlib_metadata.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
912237 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
912340 INFO: Loading module hook 'hook-matplotlib.backends.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
Traceback (most recent call last):
File "", line 1, in
File "c:\users\herick.sousa\anaconda3\lib\site-packages\matplotlib_init.py", line 904, in
rcParamsDefault = rc_params_in_file(
File "c:\users\herick.sousa\anaconda3\lib\site-packages\matplotlib_init.py", line 803, in _rc_params_in_file
with open_file_or_url(fname) as fd:
File "c:\users\herick.sousa\anaconda3\lib\contextlib.py", line 113, in enter
return next(self.gen)
File "c:\users\herick.sousa\anaconda3\lib\site-packages\matplotlib_init.py", line 777, in open_file_or_url
fname = os.path.expanduser(fname)
File "c:\users\herick.sousa\anaconda3\lib\ntpath.py", line 293, in expanduser
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not WindowsPath
913089 INFO: Loading module hook 'hook-matplotlib.py' from 'c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks'...
Traceback (most recent call last):
File "", line 1, in
File "c:\users\herick.sousa\anaconda3\lib\site-packages\matplotlib_init.py", line 904, in
rcParamsDefault = rc_params_in_file(
File "c:\users\herick.sousa\anaconda3\lib\site-packages\matplotlib_init.py", line 803, in _rc_params_in_file
with open_file_or_url(fname) as fd:
File "c:\users\herick.sousa\anaconda3\lib\contextlib.py", line 113, in enter
return next(self.gen)
File "c:\users\herick.sousa\anaconda3\lib\site-packages\matplotlib_init.py", line 777, in _open_file_or_url
fname = os.path.expanduser(fname)
File "c:\users\herick.sousa\anaconda3\lib\ntpath.py", line 293, in expanduser
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not WindowsPath
Traceback (most recent call last):
File "c:\users\herick.sousa\anaconda3\lib\runpy.py", line 194, in run_module_as_main
return run_code(code, main_globals, None,
File "c:\users\herick.sousa\anaconda3\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\herick.sousa\Anaconda3\Scripts\pyinstaller.exe_main.py", line 7, in
File "c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller_main.py", line 126, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller_main.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 815, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 762, in build
exec(code, spec_namespace)
File "program.spec", line 8, in
a = Analysis(['program.py'],
File "c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 294, in init
self.postinit()
File "c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\building\datastruct.py", line 159, in postinit
self.assemble()
File "c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 473, in assemble
self.graph.process_post_graph_hooks(self)
File "c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\depend\analysis.py", line 373, in process_post_graph_hooks
module_hook.post_graph(analysis)
File "c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\depend\imphook.py", line 451, in post_graph
self._load_hook_module()
File "c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\depend\imphook.py", line 408, in _load_hook_module
self._hook_module = importlib_load_source(
File "c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\compat.py", line 632, in importlib_load_source
return mod_loader.load_module()
File "", line 462, in _check_name_wrapper
File "", line 962, in load_module
File "", line 787, in load_module
File "", line 265, in _load_module_shim
File "", line 702, in _load
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "c:\users\herick.sousa\anaconda3\lib\site-packages\PyInstaller\hooks\hook-matplotlib.py", line 17, in
assert mpl_data_dir, "Failed to determine matplotlib's data directory!"
AssertionError: Failed to determine matplotlib's data directory!
You're encountering several issues while trying to compile your Python script into an executable using PyInstaller. These errors are mainly due to version incompatibilities among your packages, especially TensorFlow, protobuf, greenlet, and PyInstaller itself. Here’s how you can resolve them:
1. Protobuf and TensorFlow Compatibility
Error Message:
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.
...
Cause:
This error occurs because the version of protobuf installed is incompatible with the version required by TensorFlow. TensorFlow versions before 2.10 require protobuf versions less than 4.0.0.
AssertionError: Failed to determine matplotlib's data directory!
Cause:
An old version of PyInstaller doesn't handle recent versions of Matplotlib well, especially with the introduction of pathlib objects in Matplotlib paths.
Solution:
Upgrade PyInstaller to the latest version, which has better compatibility with newer versions of Python packages.
Steps:
pip install --upgrade pyinstaller
4. TypeError with WindowsPath
Error Message:
TypeError: expected str, bytes or os.PathLike object, not WindowsPath
Cause:
This error is due to incompatibility between versions of Matplotlib and PyInstaller, where a WindowsPath object is passed where a string is expected.
Solution:
Ensure you are using compatible versions of Python, Matplotlib, and PyInstaller.
If upgrading PyInstaller doesn't fix it, you may need to adjust your code or modify the hook used by PyInstaller.
5. RecursionError
Error Message:
RecursionError: maximum recursion depth exceeded
Cause:
PyInstaller is hitting Python's recursion limit due to the complexity of the module dependencies.
PyInstaller uses "hooks" to find imports. You might need to customize or update hooks for certain packages.
Consult Package Documentation:
Refer to the documentation of the packages you're using for any known issues with PyInstaller.
Summary
Your main issues are due to incompatible versions of protobuf, greenlet, gevent, matplotlib, and PyInstaller. By downgrading protobuf, upgrading greenlet and gevent, and upgrading PyInstaller, you should be able to resolve the errors and successfully compile your script.