| Bug #87493 | ValueError: invalid literal for int() with base 10: '18-16' | ||
|---|---|---|---|
| Submitted: | 21 Aug 2017 12:20 | Modified: | 9 May 2022 22:13 |
| Reporter: | Shahriyar Rzayev | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / Python | Severity: | S2 (Serious) |
| Version: | 8.0.4 | OS: | CentOS (7) |
| Assigned to: | CPU Architecture: | Any | |
[21 Aug 2017 13:30]
MySQL Verification Team
Hello Shahriyar, Thank you for the report and feedback! Thanks, Umesh
[28 Apr 2022 15:28]
Nuno Mariz
Posted by developer: This bug is not reproducible anymore. In the WL#13997, the building system was entirely refactored and this issue was fixed by it.
[9 May 2022 22:13]
Philip Olson
Posted by developer: Here's the old release note that also fixed this issue when the build system was rewritten: --- Refactored the Connector/Python build system by removing artifacts of old implementations, improved debugging, and now statically link the C extensions. This also exposes the distutils commands, to allow the end-user build packages. --- Thanks for the bug report!

Description: Installing from source: export MYSQLXPB_PROTOBUF_INCLUDE_DIR=/usr/include/google/protobuf export MYSQLXPB_PROTOBUF_LIB_DIR=/usr/lib/x86_64-linux-gnu export MYSQLXPB_PROTOC=/usr/bin/protoc $ python setup.py install --with-mysql-capi=/home/shahriyar.rzaev/MYROCKS/PS-5.7-trunk_dbg/ running install Installing MySQL C Extension running build running build_py running build_ext # Python architecture: 64-bit # Python ARCH_64BIT: True Traceback (most recent call last): File "setup.py", line 64, in <module> ext_modules=setupinfo.extensions, File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/shahriyar.rzaev/mysql-connector-python/lib/cpy_distutils.py", line 822, in run install.run(self) File "/usr/lib64/python2.7/distutils/command/install.py", line 563, in run self.run_command('build') File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib64/python2.7/distutils/command/build.py", line 127, in run self.run_command(cmd_name) File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/lib64/python2.7/distutils/dist.py", line 971, in run_command cmd_obj.ensure_finalized() File "/usr/lib64/python2.7/distutils/cmd.py", line 109, in ensure_finalized self.finalize_options() File "/home/shahriyar.rzaev/mysql-connector-python/lib/cpy_distutils.py", line 435, in finalize_options self._finalize_connector_c(self.with_mysql_capi) File "/home/shahriyar.rzaev/mysql-connector-python/lib/cpy_distutils.py", line 342, in _finalize_connector_c b'"', b'').split(b'.') ValueError: invalid literal for int() with base 10: '18-16' How to repeat: See description