cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-8818) Python scripts should depend on mysql.connector instead of MySQLdb
Date Mon, 08 Aug 2016 11:03:20 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-8818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15411666#comment-15411666
] 

ASF GitHub Bot commented on CLOUDSTACK-8818:
--------------------------------------------

Github user karuturi commented on the issue:

    https://github.com/apache/cloudstack/pull/1054
  
    what @pdion891 says is correct. I just tried building deb packages on ubuntu 12:04 
    Even after installing http://dev.mysql.com/downloads/connector/python/ its complaining
about python mysql connector
    
    > dpkg-buildpackage -uc -us
    > dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Wformat-security
    > dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
    > dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
    > dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
    > dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions
-Wl,-z,relro
    > dpkg-buildpackage: source package cloudstack
    > dpkg-buildpackage: source version 4.10.0-SNAPSHOT
    > dpkg-buildpackage: source changed by the Apache CloudStack project <dev@cloudstack.apache.org>
    > dpkg-buildpackage: host architecture amd64
    >  dpkg-source --before-build cloudstack
    > dpkg-checkbuilddeps: Unmet build dependencies: python-mysql.connector
    > dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
    > dpkg-buildpackage: warning: (Use -d flag to override.)
    
    after editing debian/control using `:%s/python-mysql.connector/mysql-connector-python/g`,
it worked fine


> Python scripts should depend on mysql.connector instead of MySQLdb
> ------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8818
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8818
>             Project: CloudStack
>          Issue Type: Improvement
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: Wido den Hollander
>            Assignee: Wido den Hollander
>              Labels: mysql, python, python3
>
> Our current Python scripts depend on MySQLdb for MySQL connections.
> The best way to go is the native mysql.connector which implements the MySQL protocol
in native Python instead of depending on external libraries.
> It would be best if we drop MySQLdb and use mysql.connector since that also supports
Python 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message