Uploaded image for project: 'CUBRID APIs'
  1. CUBRID APIs
  2. APIS-428

Can't install the new 8.4.3.0002 Python driver via pip

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: Python Driver
    • Labels:
      None
    • Environment:

      Ubuntu 12.04 x64
      CUBRID 8.4.3 X64
      Python 2.7.3
      pip 1.2.1

      Description

      Python driver 8.4.3.0002 was released yesterday. I've tried to install it via pip on Ubuntu but couldn't. 8.4.3.0001 can be installed successfully.

      Please try it to install via pip.

      {code}
      Downloading/unpacking CUBRID-Python==8.4.3.0002
      Running setup.py egg_info for package CUBRID-Python

      error: error in 'egg_base' option: 'pip-egg-info' does not exist or is not a directory
      Complete output from command python setup.py egg_info:
      running egg_info

      creating pip-egg-info/CUBRID_Python.egg-info

      writing pip-egg-info/CUBRID_Python.egg-info/PKG-INFO

      writing top-level names to pip-egg-info/CUBRID_Python.egg-info/top_level.txt

      writing dependency_links to pip-egg-info/CUBRID_Python.egg-info/dependency_links.txt

      writing manifest file 'pip-egg-info/CUBRID_Python.egg-info/SOURCES.txt'

      warning: manifest_maker: standard file '-c' not found



      reading manifest file 'pip-egg-info/CUBRID_Python.egg-info/SOURCES.txt'

      writing manifest file 'pip-egg-info/CUBRID_Python.egg-info/SOURCES.txt'

      running egg_info

      error: error in 'egg_base' option: 'pip-egg-info' does not exist or is not a directory

      ----------------------------------------
      Command python setup.py egg_info failed with error code 1 in /tmp/pip-build/CUBRID-Python
      Storing complete log in /root/.pip/pip.log{code}

        Activity

        Hide
        kadishmal Esen Sagynov added a comment -

        I can successfully install the new driver from its source. But can't via pip.

        Show
        kadishmal Esen Sagynov added a comment - I can successfully install the new driver from its source. But can't via pip.
        Hide
        jinhu 李金虎 added a comment -

        Change the setup.py to support pip.

        Fixed in RB-8.4.3. Revision: 1322

        Show
        jinhu 李金虎 added a comment - Change the setup.py to support pip. Fixed in RB-8.4.3. Revision: 1322
        Hide
        jinhu 李金虎 added a comment -

        Merged to RB-8.4.1, revision: 1323
        Merged to RB-8.4.4, revision: 1324
        Merged to trunk, revision: 1325

        Resolved.

        Show
        jinhu 李金虎 added a comment - Merged to RB-8.4.1, revision: 1323 Merged to RB-8.4.4, revision: 1324 Merged to trunk, revision: 1325 Resolved.
        Hide
        jinhu 李金虎 added a comment -

        Additional notes:
        (1) If the python you are using is in /usr/bin/, you need to use "sudo" to install this CUBRID-Python drvier.
        (2) If you run the install command as below:

        sudo pip install CUBRID-Python==8.4.3.0002

        You may run into the below failure:
        KeyError: 'CUBRID'

        The reason is that:
        This driver installation depends on the 'CUBRID' environ.
        But the 'CUBRID' environ variable isn't defined in superuser's environment.

        Solution:
        Using the below command to install CUBRID-Python drvier in Ubuntu.

        sudo -E pip install CUBRID-Python==8.4.3.0002

        Show
        jinhu 李金虎 added a comment - Additional notes: (1) If the python you are using is in /usr/bin/, you need to use "sudo" to install this CUBRID-Python drvier. (2) If you run the install command as below: sudo pip install CUBRID-Python==8.4.3.0002 You may run into the below failure: KeyError: 'CUBRID' The reason is that: This driver installation depends on the 'CUBRID' environ. But the 'CUBRID' environ variable isn't defined in superuser's environment. Solution: Using the below command to install CUBRID-Python drvier in Ubuntu. sudo -E pip install CUBRID-Python==8.4.3.0002
        Hide
        kadishmal Esen Sagynov added a comment -

        Yes, I use "sudo -E" command.

        Show
        kadishmal Esen Sagynov added a comment - Yes, I use "sudo -E" command.
        Hide
        cn14130 欧明宝[Bom Owen] added a comment -

        Test Build: 8.4.3.1005
        Test OS: Ubuntu 12.10 x64
        python driver: 8.4.3.0002
        Test Result: pass

        Show
        cn14130 欧明宝[Bom Owen] added a comment - Test Build: 8.4.3.1005 Test OS: Ubuntu 12.10 x64 python driver: 8.4.3.0002 Test Result: pass

          People

          • Assignee:
            jinhu 李金虎
            Reporter:
            kadishmal Esen Sagynov
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: