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

tensorflow 2.16 to 2.18 issue on windows 11 running python 3.11 - use 2.15 on 3.9.6 #31

Open
obriensystems opened this issue Nov 18, 2024 · 1 comment
Assignees

Comments

@obriensystems
Copy link
Member

obriensystems commented Nov 18, 2024

micha@p1gen6 MINGW64 /c/wse_github/ObrienlabsDev/machine-learning/environments/windows/src (main)
$ python tflow.py
2024-11-18 18:36:28.391368: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2024-11-18 18:36:30.382646: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2024-11-18 18:36:33.253712: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Downloading data from https://www.cs.toronto.edu/~kriz/cifar-100-python.tar.gz
Traceback (most recent call last):
  File "C:\wse_github\ObrienlabsDev\machine-learning\environments\windows\src\tflow.py", line 55, in <module>
    (x_train, y_train), (x_test, y_test) = cifar.load_data()
                                           ^^^^^^^^^^^^^^^^^
  File "C:\wse_github\ObrienlabsDev\machine-learning\environments\windows\src\venv-metal\Lib\site-packages\keras\src\datasets\cifar100.py", line 63, in load_data
    path = get_file(
           ^^^^^^^^^
  File "C:\wse_github\ObrienlabsDev\machine-learning\environments\windows\src\venv-metal\Lib\site-packages\keras\src\utils\file_utils.py", line 309, in get_file
    urlretrieve(origin, download_target, DLProgbar())
  File "C:\opt\python312\Lib\urllib\request.py", line 266, in urlretrieve
    reporthook(blocknum, bs, size)
  File "C:\wse_github\ObrienlabsDev\machine-learning\environments\windows\src\venv-metal\Lib\site-packages\keras\src\utils\file_utils.py", line 301, in __call__
    self.progbar.update(current)
  File "C:\wse_github\ObrienlabsDev\machine-learning\environments\windows\src\venv-metal\Lib\site-packages\keras\src\utils\progbar.py", line 182, in update
    io_utils.print_msg(message, line_break=False)
  File "C:\wse_github\ObrienlabsDev\machine-learning\environments\windows\src\venv-metal\Lib\site-packages\keras\src\utils\io_utils.py", line 98, in print_msg
    sys.stdout.write(message)
  File "C:\opt\python312\Lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode characters in position 35-54: character maps to <undefined>
(venv-metal)

see
keras-team/keras#19386

trying
$ python -m pip install tensorflow==2.16.0rc0

micha@p1gen6 MINGW64 /c/wse_github/ObrienlabsDev/machine-learning/environments/windows/src (main)
$ python -m pip show tensorflow
Name: tensorflow
Version: 2.16.0rc0
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: [email protected]
License: Apache 2.0
Location: C:\wse_github\ObrienlabsDev\machine-learning\environments\windows\src\venv-metal\Lib\site-packages
Requires: tensorflow-intel

@obriensystems obriensystems self-assigned this Nov 18, 2024
@obriensystems obriensystems changed the title tensorflow 2.18 issue on windows 11 tensorflow 2.16 to 2.18 issue on windows 11 running python 3.11 - use 2.15 on 3.9.6 Nov 18, 2024
@obriensystems
Copy link
Member Author

see #33

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

1 participant