pgmagick icon indicating copy to clipboard operation
pgmagick copied to clipboard

wheel package

Open hhatto opened this issue 8 years ago • 5 comments

hhatto avatar May 31 '16 16:05 hhatto

https://pypi.python.org/pypi/pgmagick/0.7.2

  • macOSX 10.12 and 10.13
  • (in progress) manylinux1

hhatto avatar Nov 20 '17 15:11 hhatto

Nice move forward!

What version of GM do you intend to link against in manylinux? Will it be bundled in the wheel?

komackaj avatar Nov 20 '17 16:11 komackaj

I will try to build with GM 1.3.26, include static binary in wheel package.

hhatto avatar Nov 21 '17 00:11 hhatto

Failed building wheel for pgmagick.

OSX: 10.13.4 (same problem on 10.13.3) pgmagick: 0.7.3 GraphicsMagick: 1.3.28 Boost: 1.66.0

I am using MacPorts and pipenv for python36 for installation, but I have the same problem when trying to install directly with pip3.

pgmagick = "==0.7.3"
$ pipenv install
Warning: Your Pipfile requires python_version 3.5, but you are using 3.6.5 (/Users/b/.local/share/v/u/bin/python).
  $ pipenv check will surely fail.
Installing dependencies from Pipfile.lock (ac0807)…
An error occurred while installing pgmagick==0.7.3! Will try again.
* snip *
Installing initially–failed dependencies…
* snip *
  Using cached pgmagick-0.7.3.tar.gz
Building wheels for collected packages: pgmagick
  Running setup.py bdist_wheel for pgmagick: started
  Running setup.py bdist_wheel for pgmagick: still running...
  Running setup.py bdist_wheel for pgmagick: still running...
  Running setup.py bdist_wheel for pgmagick: still running...
  Running setup.py bdist_wheel for pgmagick: finished with status 'error'

* snip 2 warnings generated for many files *

    /usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pipe -Os -I/opt/local/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -I/opt/local/include/ -I/opt/local/include/GraphicsMagick/ -I/opt/local/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c ./src/_Image.cpp -o build/temp.macosx-10.13-x86_64-3.6/./src/_Image.o -D_LIBRARY_VERSION="1.2.0"
    In file included from ./src/_Image.cpp:6:
    In file included from /opt/local/include/GraphicsMagick/Magick++/Image.h:11:
    In file included from /opt/local/include/GraphicsMagick/Magick++/Include.h:39:
    In file included from /opt/local/include/GraphicsMagick/magick/api.h:87:
    /opt/local/include/GraphicsMagick/magick/memory.h:17:48: warning: '__alloc_size__' attribute only applies to functions [-Wignored-attributes]
    typedef void *(*MagickMallocFunc)(size_t size) MAGICK_FUNC_ALLOC_SIZE_1ARG(1);
                                                   ^
    /opt/local/include/GraphicsMagick/magick/common.h:188:70: note: expanded from macro 'MAGICK_FUNC_ALLOC_SIZE_1ARG'
    #      define MAGICK_FUNC_ALLOC_SIZE_1ARG(arg_num) MAGICK_ATTRIBUTE((__alloc_size__(arg_num)))
                                                                         ^
    In file included from ./src/_Image.cpp:6:
    In file included from /opt/local/include/GraphicsMagick/Magick++/Image.h:11:
    In file included from /opt/local/include/GraphicsMagick/Magick++/Include.h:39:
    In file included from /opt/local/include/GraphicsMagick/magick/api.h:87:
    /opt/local/include/GraphicsMagick/magick/memory.h:19:60: warning: '__alloc_size__' attribute only applies to functions [-Wignored-attributes]
    typedef void *(*MagickReallocFunc)(void *ptr, size_t size) MAGICK_FUNC_ALLOC_SIZE_1ARG(2);
                                                               ^
    /opt/local/include/GraphicsMagick/magick/common.h:188:70: note: expanded from macro 'MAGICK_FUNC_ALLOC_SIZE_1ARG'
    #      define MAGICK_FUNC_ALLOC_SIZE_1ARG(arg_num) MAGICK_ATTRIBUTE((__alloc_size__(arg_num)))
                                                                         ^
    ./src/_Image.cpp:102:10: error: no matching member function for call to 'def'
            .def("adaptiveThreshold", &Magick::Image::adaptiveThreshold, Magick_Image_adaptiveThreshold_overloads_2_3())
            ~^~~
    /opt/local/include/boost/python/class.hpp:238:11: note: candidate template ignored: couldn't infer template argument 'A1'
        self& def(char const* name, A1 a1, A2 const& a2)
              ^
    /opt/local/include/boost/python/class.hpp:219:11: note: candidate function template not viable: requires single argument 'visitor', but 3 arguments were provided
        self& def(def_visitor<Derived> const& visitor)
              ^
    /opt/local/include/boost/python/class.hpp:229:11: note: candidate function template not viable: requires 2 arguments, but 3 were provided
        self& def(char const* name, F f)
              ^
    /opt/local/include/boost/python/class.hpp:245:11: note: candidate function template not viable: requires 4 arguments, but 3 were provided
        self& def(char const* name, Fn fn, A1 const& a1, A2 const& a2)
              ^
    /opt/local/include/boost/python/class.hpp:261:11: note: candidate function template not viable: requires 5 arguments, but 3 were provided
        self& def(char const* name, Fn fn, A1 const& a1, A2 const& a2, A3 const& a3)
              ^
    2 warnings and 1 error generated.
    error: command '/usr/bin/clang' failed with exit status 1

    ----------------------------------------

  Failed building wheel for pgmagick
Command *snip* failed with error code 1 in *snip*
$

bsechter-unext avatar Apr 11 '18 01:04 bsechter-unext

I am experiencing this same error when trying to build under macOS 10.13.6.

Does anyone have a solution to this?

mhucka avatar Oct 18 '18 20:10 mhucka