Ian Jason Min
Ian Jason Min

Reputation: 53

Warning: no files found matching when I make a building wheel (Tensorflow)

When I make a building wheel, I get these warnings. Are these ignorable or any idea about these warnings?

warning: no files found matching '*.dll' under directory '*' warning: no files found matching '*.lib' under directory '*' warning: no files found matching '*.h' under directory 'tensorflow/include/tensorflow' warning: no files found matching '*' under directory 'tensorflow/include/Eigen' warning: no files found matching '*' under directory 'tensorflow/include/external' warning: no files found matching '*.h' under directory 'tensorflow/include/google' warning: no files found matching '*' under directory 'tensorflow/include/third_party' warning: no files found matching '*' under directory 'tensorflow/include/unsupported'

Upvotes: 3

Views: 2442

Answers (1)

kjl
kjl

Reputation: 341

Try installing the wheel and exiting the build directory. Sometimes warnings are only warnings.

My install worked despite similar warnings, though I had to move out of the build directory to successfully import tensorflow in python.

Trying to import tensorflow while still in the build directory gave the following error:

Python 3.8.8 (default, Feb 24 2021, 21:46:12) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/tensorflow/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "~/tensorflow/tensorflow/python/__init__.py", line 40, in <module>
    from tensorflow.python.eager import context
  File "~/tensorflow/tensorflow/python/eager/context.py", line 32, in <module>
    from tensorflow.core.framework import function_pb2
ImportError: cannot import name 'function_pb2' from 'tensorflow.core.framework' (unknown location)

I thank Saifullah3396 at gitmeory for helping with that problem.

The following are the warnings that I received for the wheel that seems to work.

Sun 21 Mar 2021 07:57:36 PM CDT : === Building wheel
warning: no files found matching 'README'
warning: no files found matching '*.pyd' under directory '*'
warning: no files found matching '*.pyi' under directory '*'
warning: no files found matching '*.pd' under directory '*'
warning: no files found matching '*.dylib' under directory '*'
warning: no files found matching '*.dll' under directory '*'
warning: no files found matching '*.lib' under directory '*'
warning: no files found matching '*.csv' under directory '*'
warning: no files found matching '*.h' under directory 'tensorflow/include/tensorflow'
warning: no files found matching '*.proto' under directory 'tensorflow/include/tensorflow'
warning: no files found matching '*' under directory 'tensorflow/include/third_party'
Sun 21 Mar 2021 07:58:30 PM CDT : === Output wheel file is in: /tmp/tensorflow_pkg

Upvotes: 1

Related Questions