baidu-research / warp-ctc

Fast parallel CTC.
Apache License 2.0
4.06k stars 1.04k forks source link

ValueError: list.remove(x): x not in list #139

Closed izhaojinlong closed 5 years ago

izhaojinlong commented 5 years ago

When I use python setup.py install to install, the terminal will display the following information. setup.py:66: UserWarning: Assuming tensorflow was compiled without C++11 ABI. It is generally true if you are using binary pip package. If you compiled tensorflow from source with gcc >= 5 and didn't set -D_GLIBCXX_USE_CXX11_ABI=0 during compilation, you need to set environment variable TF_CXX11_ABI=1 when compiling this bindings. Also be sure to touch some files in src to trigger recompilation. Also, you need to set (or unsed) this environment variable if getting undefined symbol: _ZN10tensorflow... errors warnings.warn("Assuming tensorflow was compiled without C++11 ABI. " running install running bdist_egg running egg_info writing warpctc_tensorflow.egg-info/PKG-INFO writing dependency_links to warpctc_tensorflow.egg-info/dependency_links.txt writing top-level names to warpctc_tensorflow.egg-info/top_level.txt writing manifest file 'warpctc_tensorflow.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py running build_ext Traceback (most recent call last): File "setup.py", line 149, in test_suite = 'setup.discover_test_suite', File "/usr/local/lib/python3.6/dist-packages/setuptools/init.py", line 145, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/local/lib/python3.6/dist-packages/setuptools/command/install.py", line 67, in run self.do_egg_install() File "/usr/local/lib/python3.6/dist-packages/setuptools/command/install.py", line 109, in do_egg_install self.run_command('bdist_egg') File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/local/lib/python3.6/dist-packages/setuptools/command/bdist_egg.py", line 172, in run cmd = self.call_command('install_lib', warn_dir=0) File "/usr/local/lib/python3.6/dist-packages/setuptools/command/bdist_egg.py", line 158, in call_command self.run_command(cmdname) File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/local/lib/python3.6/dist-packages/setuptools/command/install_lib.py", line 11, in run self.build() File "/usr/lib/python3.6/distutils/command/install_lib.py", line 109, in build self.run_command('build_ext') File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/local/lib/python3.6/dist-packages/setuptools/command/build_ext.py", line 78, in run _build_ext.run(self) File "/usr/local/lib/python3.6/dist-packages/Cython/Distutils/old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "setup.py", line 122, in build_extensions self.compiler.compiler_so.remove('-Wstrict-prototypes') ValueError: list.remove(x): x not in list

izhaojinlong commented 5 years ago

ubuntu 18.04 cuda10.0 tf1.13.1

apple55bc commented 5 years ago

my another computer get the same error ....

izhaojinlong commented 5 years ago

@apple55bc We can exchange,I want to know your environment and version. Thanks

apple55bc commented 5 years ago

i solve the problem just now! just open the setup.py file try to except the value error!

just like; class build_tf_ext(orig_build_ext): def build_extensions(self): try: self.compiler.compiler_so.remove('-Wstrict-prototypes') except ValueError: pass orig_build_ext.build_extensions(self)

apple55bc commented 5 years ago

I can now run well in my code [2019-05-0709:46:17 PM-INFO:successfully use warpctc_tensorflow.ctc! ]

izhaojinlong commented 5 years ago

@apple55bc Thanks,This error has disappeared! But I have encountered new errors, I believe I can solve.