pgmagick
pgmagick copied to clipboard
wheel package
https://pypi.python.org/pypi/pgmagick/0.7.2
- macOSX 10.12 and 10.13
- (in progress) manylinux1
Nice move forward!
What version of GM do you intend to link against in manylinux? Will it be bundled in the wheel?
I will try to build with GM 1.3.26, include static binary in wheel package.
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*
$
I am experiencing this same error when trying to build under macOS 10.13.6.
Does anyone have a solution to this?