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

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

Github user swill commented on the pull request:

    https://github.com/apache/cloudstack/pull/1054#issuecomment-215472985
  
    So are we happy with the state of this?  How should I adjust my CI to 
validate this fix?  
    
    I currently have: 
    ```
    yum -y install maven tomcat mkisofs python-paramiko 
jakarta-commons-daemon-jsvc jsvc ws-commons-util genisoimage gcc python 
MySQL-python openssh-clients wget git python-ecdsa bzip2 python-setuptools 
mariadb-server mariadb python-devel vim nfs-utils screen setroubleshoot 
openssh-askpass java-1.7.0-openjdk-devel.x86_64 rpm-build rubygems nc
    yum -y install 
http://mirror.karneval.cz/pub/linux/fedora/epel/epel-release-latest-7.noarch.rpm
    yum --enablerepo=epel -y install sshpass mariadb mysql-connector-python
    ```
    
    and when marvin is installed:
    
    ```
    pip install --upgrade tools/marvin/dist/Marvin-*.tar.gz --allow-external 
mysql-connector-python
    ```
    
    But `--allow-external` has been deprecated, so I don't actually think that 
does anything anymore...


> 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
>              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)

Reply via email to