Giter Site home page Giter Site logo

cssdbpy's People

Contributors

deslum avatar osule avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cssdbpy's Issues

TypeError bug

>>> from cssdbpy import Connection
>>> conn = Connection('127.0.0.1', 8888)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "cssdbpy/cssdbpy.pyx", line 20, in cssdbpy.cssdbpy.Connection.__init__ (cssdbpy/cssdbpy.c:1029)
TypeError: Expected bytes, got str

Bug with pip install cssdbpy

Hi!

(venv)sdvbd-laptop cssdbpy # pip install cssdbpy
Downloading/unpacking cssdbpy
  Downloading cssdbpy-0.0.2.tar.gz
  Running setup.py (path:/home/test/Desktop/cssdbpy/venv/build/cssdbpy/setup.py) egg_info for package cssdbpy
    
Installing collected packages: cssdbpy
  Running setup.py install for cssdbpy
    building 'cssdbpy.cssdbpy' extension
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cssdbpy/cssdbpy.c -o build/temp.linux-x86_64-2.7/cssdbpy/cssdbpy.o
    x86_64-linux-gnu-gcc: error: cssdbpy/cssdbpy.c: No such file or directory
    x86_64-linux-gnu-gcc: fatal error: no input files
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
    Complete output from command /home/test/Desktop/cssdbpy/venv/bin/python -c "import setuptools, tokenize;__file__='/home/test/Desktop/cssdbpy/venv/build/cssdbpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-G4wCGz-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/test/Desktop/cssdbpy/venv/include/site/python2.7:
    running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

creating build/lib.linux-x86_64-2.7/cssdbpy

copying cssdbpy/__init__.py -> build/lib.linux-x86_64-2.7/cssdbpy

running build_ext

building 'cssdbpy.cssdbpy' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/cssdbpy

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cssdbpy/cssdbpy.c -o build/temp.linux-x86_64-2.7/cssdbpy/cssdbpy.o

x86_64-linux-gnu-gcc: error: cssdbpy/cssdbpy.c: No such file or directory

x86_64-linux-gnu-gcc: fatal error: no input files

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 4

----------------------------------------
Cleaning up...
Command /home/test/Desktop/cssdbpy/venv/bin/python -c "import setuptools, tokenize;__file__='/home/test/Desktop/cssdbpy/venv/build/cssdbpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-G4wCGz-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/test/Desktop/cssdbpy/venv/include/site/python2.7 failed with error code 1 in /home/test/Desktop/cssdbpy/venv/build/cssdbpy
Storing debug log for failure in /root/.pip/pip.log

TODO List

  1. Catch connect exceptions.
  2. Convert list input hkeys in dict.
  3. Write unit tests.
  4. Create pool connections
  5. Create support execute_pipeline
  6. Rewrite cython code on pure C.

Install fails

Poetry, Python 3.7.0b3, Ubuntu 18.10

$ poetry add cssdbpy
Using version ^0.1.1 for cssdbpy

Updating dependencies
Resolving dependencies... (0.1s)


Package operations: 1 install, 0 updates, 0 removals

  - Installing cssdbpy (0.1.1)
                                                                                                                                  
[EnvCommandError]                                                                                                  
Command ['/home/t/.cache/pypoetry/virtualenvs/data-api-py3.7/bin/pip', 'install', '--no-deps', 'cssdbpy==0.1.1'] errored with         
the following output:                                                                                                           
Collecting cssdbpy==0.1.1                                                                                                       
  Using cached https://files.pythonhosted.org/packages/c7/b1/72d177917c581a3e09fa332a446ebbb635a07ac70fdabdd3b540ca3670e2/cssd  
bpy-0.1.1.tar.gz                                                                                                                
Installing collected packages: cssdbpy                                                                                          
  Running setup.py install for cssdbpy: started                                                                                 
    Running setup.py install for cssdbpy: finished with status 'error'                                                          
    Complete output from command /home/t/.cache/pypoetry/virtualenvs/data-api-py3.7/bin/python -u -c "import setuptools, token  
ize;__file__='/tmp/pip-build-2f9t2odu/cssdbpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\  
n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-gdukfsl8-record/install-record.txt --sing  
le-version-externally-managed --compile --install-headers /home/t/.cache/pypoetry/virtualenvs/data-api-py3.7/include/site/pyth  
on3.7/cssdbpy:                                                                                                                  
    running install                                                                                                             
    running build                                                                                                               
    running build_py                                                                                                            
    creating build                                                                                                              
    creating build/lib.linux-x86_64-3.7                                                                                         
    creating build/lib.linux-x86_64-3.7/cssdbpy                                                                                 
    copying cssdbpy/__init__.py -> build/lib.linux-x86_64-3.7/cssdbpy                                                           
    running build_ext                                                                                                           
    building 'cssdbpy.cssdbpy' extension                                                                                        
    creating build/temp.linux-x86_64-3.7                                                                                        
    creating build/temp.linux-x86_64-3.7/cssdbpy                                                                                
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/t/.cache/py  
poetry/virtualenvs/data-api-py3.7/include -I/home/t/.pyenv/versions/3.7.0b3/include/python3.7m -c cssdbpy/cssdbpy.c -o build/t  
emp.linux-x86_64-3.7/cssdbpy/cssdbpy.o                                                                                          
    gcc: error: cssdbpy/cssdbpy.c: No such file or directory                                                                    
    gcc: fatal error: no input files                                                                                            
    compilation terminated.                                                                                                     
    error: command 'gcc' failed with exit status 1                                                                              
                                                                                                                                
    ----------------------------------------                                                                                    
Command "/home/t/.cache/pypoetry/virtualenvs/data-api-py3.7/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-b  
uild-2f9t2odu/cssdbpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec  
(compile(code, __file__, 'exec'))" install --record /tmp/pip-gdukfsl8-record/install-record.txt --single-version-externally-ma  
naged --compile --install-headers /home/t/.cache/pypoetry/virtualenvs/data-api-py3.7/include/site/python3.7/cssdbpy" failed wi  
th error code 1 in /tmp/pip-build-2f9t2odu/cssdbpy/                                                                             
You are using pip version 9.0.3, however version 18.1 is available.                                                             
You should consider upgrading via the 'pip install --upgrade pip' command.                                                      
                                                                                                                                  
add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.