Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error encountered when updating Blosc 1.2.7 #85

Closed
duytrung opened this issue May 6, 2015 · 5 comments
Closed

Error encountered when updating Blosc 1.2.7 #85

duytrung opened this issue May 6, 2015 · 5 comments

Comments

@duytrung
Copy link

duytrung commented May 6, 2015

Hi,

I want to request for a python wheel distribution of this package or compiled binary instead of install from source. The following log was generated when I tried to update blosc:

c:\Python\Scripts>pip install -U blosc
Collecting blosc
  Downloading blosc-1.2.7.tar.gz (239kB)
    100% |################################| 241kB 292kB/s
Installing collected packages: blosc
  Found existing installation: blosc 1.2.5
    Uninstalling blosc-1.2.5:
      Successfully uninstalled blosc-1.2.5
  Running setup.py install for blosc
    Complete output from command c:\Python\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\eep1\\appdata
\\local\\temp\\pip-build-h08iyx\\blosc\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace(
'\r\n', '\n'), __file__, 'exec'))" install --record c:\users\eep1\appdata\local\temp\pip-kup53o-record\install-record.tx
t --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-2.7
    creating build\lib.win32-2.7\blosc
    copying blosc\test.py -> build\lib.win32-2.7\blosc
    copying blosc\toplevel.py -> build\lib.win32-2.7\blosc
    copying blosc\version.py -> build\lib.win32-2.7\blosc
    copying blosc\__init__.py -> build\lib.win32-2.7\blosc
    running build_ext
    building 'blosc.blosc_extension' extension
    creating build\temp.win32-2.7
    creating build\temp.win32-2.7\Release
    creating build\temp.win32-2.7\Release\blosc
    creating build\temp.win32-2.7\Release\c-blosc
    creating build\temp.win32-2.7\Release\c-blosc\blosc
    creating build\temp.win32-2.7\Release\c-blosc\internal-complibs
    creating build\temp.win32-2.7\Release\c-blosc\internal-complibs\lz4-1.6.0
    creating build\temp.win32-2.7\Release\c-blosc\internal-complibs\snappy-1.1.1
    creating build\temp.win32-2.7\Release\c-blosc\internal-complibs\zlib-1.2.8
    C:\Python\MinGW\bin\gcc.exe -mdll -O -Wall -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ic-blosc\blosc -Ic-blosc/inte
rnal-complibs\lz4-1.6.0 -Ic-blosc/internal-complibs\snappy-1.1.1 -Ic-blosc/internal-complibs\zlib-1.2.8 -Ic:\Python\incl
ude -Ic:\Python\PC -c blosc/blosc_extension.c -o build\temp.win32-2.7\Release\blosc\blosc_extension.o
    C:\Python\MinGW\bin\gcc.exe -mdll -O -Wall -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ic-blosc\blosc -Ic-blosc/inte
rnal-complibs\lz4-1.6.0 -Ic-blosc/internal-complibs\snappy-1.1.1 -Ic-blosc/internal-complibs\zlib-1.2.8 -Ic:\Python\incl
ude -Ic:\Python\PC -c c-blosc/blosc\blosc.c -o build\temp.win32-2.7\Release\c-blosc\blosc\blosc.o
    c-blosc/blosc\blosc.c:56:23: fatal error: pthread.h: No such file or directory
       #include <pthread.h>
                           ^
    compilation terminated.
    error: command 'C:\\Python\\MinGW\\bin\\gcc.exe' failed with exit status 1

    ----------------------------------------
    Rolling back uninstall of blosc
    Command "c:\Python\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\eep1\\appdata\\local\\temp\\pip-b
uild-h08iyx\\blosc\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __fil
e__, 'exec'))" install --record c:\users\eep1\appdata\local\temp\pip-kup53o-record\install-record.txt --single-version-e
xternally-managed --compile" failed with error code 1 in c:\users\eep1\appdata\local\temp\pip-build-h08iyx\blosc

Kind regards

@esc
Copy link
Member

esc commented May 6, 2015

I get:

$ pip install blosc
Downloading/unpacking blosc
  Running setup.py (path:c:\users\admini~1\appdata\local\temp\2\pip_build_Administrator\blosc\setup.

    warning: no files found matching '*.txt'
    warning: no files found matching '*.cpp' under directory 'c-blosc'
    warning: no files found matching '*.hpp' under directory 'c-blosc'
Installing collected packages: blosc
  Running setup.py install for blosc
    building 'blosc.blosc_extension' extension
    C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\
    blosc_extension.c
    C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\
    blosc.c
    c-blosc/blosc\blosc.c(464) : warning C4267: 'initializing' : conversion from 'size_t' to 'uLongf
    c-blosc/blosc\blosc.c(477) : warning C4267: 'initializing' : conversion from 'size_t' to 'uLongf
    c-blosc/blosc\blosc.c(529) : warning C4267: '=' : conversion from 'size_t' to 'int32_t', possibl
    c-blosc/blosc\blosc.c(776) : warning C4101: 'rc' : unreferenced local variable
    c-blosc/blosc\blosc.c(922) : warning C4267: '=' : conversion from 'size_t' to 'int32_t', possibl
    c-blosc/blosc\blosc.c(923) : warning C4267: '=' : conversion from 'size_t' to 'int32_t', possibl
    c-blosc/blosc\blosc.c(1103) : warning C4267: 'function' : conversion from 'size_t' to 'int32_t',
    c-blosc/blosc\blosc.c(1156) : warning C4267: '=' : conversion from 'size_t' to 'int32_t', possib
    c-blosc/blosc\blosc.c(1380) : warning C4101: 'rc' : unreferenced local variable
    c-blosc/blosc\blosc.c(1590) : warning C4996: 'strerror': This function or variable may be unsafe
            C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
    c-blosc/blosc\blosc.c(1657) : warning C4996: 'strcat': This function or variable may be unsafe.
    c-blosc/blosc\blosc.c(1659) : warning C4996: 'strcat': This function or variable may be unsafe.
    c-blosc/blosc\blosc.c(1659) : warning C4996: 'strcat': This function or variable may be unsafe.
    c-blosc/blosc\blosc.c(1660) : warning C4996: 'strcat': This function or variable may be unsafe.
    c-blosc/blosc\blosc.c(1660) : warning C4996: 'strcat': This function or variable may be unsafe.
    c-blosc/blosc\blosc.c(1663) : warning C4996: 'strcat': This function or variable may be unsafe.
    c-blosc/blosc\blosc.c(1663) : warning C4996: 'strcat': This function or variable may be unsafe.
    c-blosc/blosc\blosc.c(1666) : warning C4996: 'strcat': This function or variable may be unsafe.
    c-blosc/blosc\blosc.c(1666) : warning C4996: 'strcat': This function or variable may be unsafe.
    c-blosc/blosc\blosc.c(1693) : warning C4996: 'sprintf': This function or variable may be unsafe.
            C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
    c-blosc/blosc\blosc.c(1701) : warning C4996: 'sprintf': This function or variable may be unsafe.
            C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
    c-blosc/blosc\blosc.c(1712) : warning C4996: 'strdup': The POSIX name for this item is deprecate
            C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
    c-blosc/blosc\blosc.c(1713) : warning C4996: 'strdup': The POSIX name for this item is deprecate
            C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
    c-blosc/blosc\blosc.c(1827) : warning C4996: 'strerror': This function or variable may be unsafe
            C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
    c-blosc/blosc\blosc.c(1811) : warning C4101: 'rc' : unreferenced local variable
    C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\
    blosclz.c
    c-blosc/blosc\blosclz.c(474) : warning C4244: 'function' : conversion from '__int64' to 'int', p
    C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\
    shuffle-generic.c
    C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\
    shuffle-sse2.c
    C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\
    shuffle.c
    c-blosc/blosc\shuffle.c(13) : fatal error C1083: Cannot open include file: 'stdbool.h': No such
    error: command 'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C+
    Complete output from command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:
    running install

running build

running build_py

creating build

creating build\lib.win-amd64-2.7

creating build\lib.win-amd64-2.7\blosc

copying blosc\test.py -> build\lib.win-amd64-2.7\blosc

copying blosc\toplevel.py -> build\lib.win-amd64-2.7\blosc

copying blosc\version.py -> build\lib.win-amd64-2.7\blosc

copying blosc\__init__.py -> build\lib.win-amd64-2.7\blosc

running build_ext

building 'blosc.blosc_extension' extension

creating build\temp.win-amd64-2.7

creating build\temp.win-amd64-2.7\Release

creating build\temp.win-amd64-2.7\Release\blosc

creating build\temp.win-amd64-2.7\Release\c-blosc

creating build\temp.win-amd64-2.7\Release\c-blosc\blosc

creating build\temp.win-amd64-2.7\Release\c-blosc\internal-complibs

creating build\temp.win-amd64-2.7\Release\c-blosc\internal-complibs\lz4-1.6.0

creating build\temp.win-amd64-2.7\Release\c-blosc\internal-complibs\snappy-1.1.1

creating build\temp.win-amd64-2.7\Release\c-blosc\internal-complibs\zlib-1.2.8

C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd6

blosc_extension.c

C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd6

blosc.c

c-blosc/blosc\blosc.c(464) : warning C4267: 'initializing' : conversion from 'size_t' to 'uLongf', p

c-blosc/blosc\blosc.c(477) : warning C4267: 'initializing' : conversion from 'size_t' to 'uLongf', p

c-blosc/blosc\blosc.c(529) : warning C4267: '=' : conversion from 'size_t' to 'int32_t', possible lo

c-blosc/blosc\blosc.c(776) : warning C4101: 'rc' : unreferenced local variable

c-blosc/blosc\blosc.c(922) : warning C4267: '=' : conversion from 'size_t' to 'int32_t', possible lo

c-blosc/blosc\blosc.c(923) : warning C4267: '=' : conversion from 'size_t' to 'int32_t', possible lo

c-blosc/blosc\blosc.c(1103) : warning C4267: 'function' : conversion from 'size_t' to 'int32_t', pos

c-blosc/blosc\blosc.c(1156) : warning C4267: '=' : conversion from 'size_t' to 'int32_t', possible l

c-blosc/blosc\blosc.c(1380) : warning C4101: 'rc' : unreferenced local variable

c-blosc/blosc\blosc.c(1590) : warning C4996: 'strerror': This function or variable may be unsafe. Co

        C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\

c-blosc/blosc\blosc.c(1657) : warning C4996: 'strcat': This function or variable may be unsafe. Cons

c-blosc/blosc\blosc.c(1659) : warning C4996: 'strcat': This function or variable may be unsafe. Cons

c-blosc/blosc\blosc.c(1659) : warning C4996: 'strcat': This function or variable may be unsafe. Cons

c-blosc/blosc\blosc.c(1660) : warning C4996: 'strcat': This function or variable may be unsafe. Cons

c-blosc/blosc\blosc.c(1660) : warning C4996: 'strcat': This function or variable may be unsafe. Cons

c-blosc/blosc\blosc.c(1663) : warning C4996: 'strcat': This function or variable may be unsafe. Cons

c-blosc/blosc\blosc.c(1663) : warning C4996: 'strcat': This function or variable may be unsafe. Cons

c-blosc/blosc\blosc.c(1666) : warning C4996: 'strcat': This function or variable may be unsafe. Cons

c-blosc/blosc\blosc.c(1666) : warning C4996: 'strcat': This function or variable may be unsafe. Cons

c-blosc/blosc\blosc.c(1693) : warning C4996: 'sprintf': This function or variable may be unsafe. Con

        C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\

c-blosc/blosc\blosc.c(1701) : warning C4996: 'sprintf': This function or variable may be unsafe. Con

        C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\

c-blosc/blosc\blosc.c(1712) : warning C4996: 'strdup': The POSIX name for this item is deprecated. I

        C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\

c-blosc/blosc\blosc.c(1713) : warning C4996: 'strdup': The POSIX name for this item is deprecated. I

        C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\

c-blosc/blosc\blosc.c(1827) : warning C4996: 'strerror': This function or variable may be unsafe. Co

        C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\

c-blosc/blosc\blosc.c(1811) : warning C4101: 'rc' : unreferenced local variable

C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd6

blosclz.c

c-blosc/blosc\blosclz.c(474) : warning C4244: 'function' : conversion from '__int64' to 'int', possi

C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd6

shuffle-generic.c

C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd6

shuffle-sse2.c

C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd6

shuffle.c

c-blosc/blosc\shuffle.c(13) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file

error: command 'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ fo

----------------------------------------
Cleaning up...
Command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\admini~1\\appdat
Storing debug log for failure in c:/Users/Administrator\pip\pip.log

Using Python from:

https://www.python.org/downloads/release/python-279/

And the compiler from:

http://www.microsoft.com/en-us/download/details.aspx?id=44266

@esc
Copy link
Member

esc commented May 6, 2015

1.2.5 works fine, btw..

@FrancescAlted
Copy link
Member

@esc well, this actually surprises me, because c-blosc 1.6.1 has received attention patches from MSVC-based developers and from MinGW and TDM-GCC too. I suppose giving support for all the plethora of compilers out there is not going to be easy. Could you please open a new ticket on this one?

@FrancescAlted
Copy link
Member

@duytrung Regarding your request to provide wheels for python-blosc, I don't think this is going to happen, at least on the developer side. Normally binary packagers like Continuum Analytics (Anaconda), Enthought (Canopy) or Christoph Gohlke are doing a much better job than we developers can afford to.

I am going to close this. If you have suggestions or PR for supporting other compilers, please feel free.

@duytrung
Copy link
Author

duytrung commented May 7, 2015

Hi FrancescAlted, I'm regularly check for newer packages in Gohlke page. However, there is no newer version at the time of report. I'm using Anaconda but sometime it update the packages quite late.

Kind regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants