Bug #87493 ValueError: invalid literal for int() with base 10: '18-16'
Submitted: 21 Aug 2017 12:20 Modified: 21 Aug 2017 13:30
Reporter: Shahriyar Rzayev (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:Connector / Python Severity:S2 (Serious)
Version:8.0.4 OS:CentOS (7)
Assigned to: CPU Architecture:Any

[21 Aug 2017 12:20] Shahriyar Rzayev
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
[21 Aug 2017 13:30] Umesh Shastry
Hello Shahriyar,

Thank you for the report and feedback!

Thanks,
Umesh