Open carlosal1015 opened 2 years ago
With python-tensorflow-2.9.2-1
we have the following message error.
==> Retrieving sources...
-> Downloading v2.2.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 4256k 0 4256k 0 0 8329k 0 --:--:-- --:--:-- --:--:-- 8329k
==> Validating source files with sha512sums...
v2.2.1.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting v2.2.1.tar.gz with bsdtar
==> Starting build()...
running build
running build_py
creating build
creating build/lib
creating build/lib/guesslang
copying guesslang/guess.py -> build/lib/guesslang
copying guesslang/__init__.py -> build/lib/guesslang
copying guesslang/__main__.py -> build/lib/guesslang
copying guesslang/model.py -> build/lib/guesslang
running egg_info
creating guesslang.egg-info
writing guesslang.egg-info/PKG-INFO
writing dependency_links to guesslang.egg-info/dependency_links.txt
writing entry points to guesslang.egg-info/entry_points.txt
writing requirements to guesslang.egg-info/requires.txt
writing top-level names to guesslang.egg-info/top_level.txt
writing manifest file 'guesslang.egg-info/SOURCES.txt'
reading manifest file 'guesslang.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'guesslang.egg-info/SOURCES.txt'
/usr/lib/python3.10/site-packages/setuptools/command/build_py.py:153: SetuptoolsDeprecationWarning: Installing 'guesslang.data' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'guesslang.data' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'guesslang.data' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'guesslang.data' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
/usr/lib/python3.10/site-packages/setuptools/command/build_py.py:153: SetuptoolsDeprecationWarning: Installing 'guesslang.data.model' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'guesslang.data.model' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'guesslang.data.model' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'guesslang.data.model' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
/usr/lib/python3.10/site-packages/setuptools/command/build_py.py:153: SetuptoolsDeprecationWarning: Installing 'guesslang.data.model.variables' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'guesslang.data.model.variables' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'guesslang.data.model.variables' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'guesslang.data.model.variables' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
creating build/lib/guesslang/data
copying guesslang/data/languages.json -> build/lib/guesslang/data
creating build/lib/guesslang/data/model
copying guesslang/data/model/saved_model.pb -> build/lib/guesslang/data/model
creating build/lib/guesslang/data/model/variables
copying guesslang/data/model/variables/variables.data-00000-of-00001 -> build/lib/guesslang/data/model/variables
copying guesslang/data/model/variables/variables.index -> build/lib/guesslang/data/model/variables
==> Starting check()...
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-7.1.3, pluggy-1.0.0
rootdir: /tmp/makepkg/guesslang/src/guesslang-2.2.1
collected 0 items / 1 error
==================================== ERRORS ====================================
________________ ERROR collecting tests/test_guesslang_guess.py ________________
ImportError while importing test module '/tmp/makepkg/guesslang/src/guesslang-2.2.1/tests/test_guesslang_guess.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_guesslang_guess.py:6: in <module>
from guesslang import Guess, GuesslangError
guesslang/__init__.py:16: in <module>
from guesslang.guess import Guess, GuesslangError # noqa: F401
guesslang/guess.py:10: in <module>
from guesslang import model
guesslang/model.py:12: in <module>
from tensorflow.estimator import ModeKeys, Estimator
/usr/lib/python3.10/site-packages/tensorflow_estimator/python/estimator/api/_v2/estimator/__init__.py:8: in <module>
from tensorflow_estimator.python.estimator.api._v2.estimator import experimental
/usr/lib/python3.10/site-packages/tensorflow_estimator/__init__.py:8: in <module>
from tensorflow_estimator._api.v1 import estimator
/usr/lib/python3.10/site-packages/tensorflow_estimator/_api/v1/estimator/__init__.py:8: in <module>
from tensorflow_estimator._api.v1.estimator import experimental
/usr/lib/python3.10/site-packages/tensorflow_estimator/_api/v1/estimator/experimental/__init__.py:8: in <module>
from tensorflow_estimator.python.estimator.canned.dnn import dnn_logit_fn_builder
/usr/lib/python3.10/site-packages/tensorflow_estimator/python/estimator/canned/dnn.py:29: in <module>
from tensorflow_estimator.python.estimator.canned import optimizers
/usr/lib/python3.10/site-packages/tensorflow_estimator/python/estimator/canned/optimizers.py:34: in <module>
'Adagrad': tf.keras.optimizers.Adagrad,
/usr/lib/python3.10/site-packages/tensorflow/python/util/lazy_loader.py:58: in __getattr__
module = self._load()
/usr/lib/python3.10/site-packages/tensorflow/python/util/lazy_loader.py:41: in _load
module = importlib.import_module(self.__name__)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
/usr/lib/python3.10/site-packages/keras/__init__.py:21: in <module>
from keras import models
/usr/lib/python3.10/site-packages/keras/models/__init__.py:18: in <module>
from keras.engine.functional import Functional
/usr/lib/python3.10/site-packages/keras/engine/functional.py:27: in <module>
from keras.dtensor import layout_map as layout_map_lib
/usr/lib/python3.10/site-packages/keras/dtensor/layout_map.py:25: in <module>
from keras.dtensor import lazy_variable
/usr/lib/python3.10/site-packages/keras/dtensor/lazy_variable.py:26: in <module>
from tensorflow.python.trackable import base as trackable
E ModuleNotFoundError: No module named 'tensorflow.python.trackable'
=========================== short test summary info ============================
ERROR tests/test_guesslang_guess.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 2.44s ===============================
==> ERROR: A failure occurred in check().
Aborting...
Hi, with latest
python-tensorflow 2.9.1
upgrade,guesslang
stop working.