Issue #30 resolved

Build fails with "ValueError: invalid literal for int() with base 10: 'x' "

Anonymous avatarAnonymous created an issue

Build log:

[ec2-user@k1]/pgmagick-0.5.3% python setup.py build include header path: /usr/include/GraphicsMagick/ library path: /usr/lib64/libGraphicsMagick++ GraphicsMagick version: 1.2.x Traceback (most recent call last): File "setup.py", line 115, in <module> _version = map(int, _version.split('.')) ValueError: invalid literal for int() with base 10: 'x'

It barfs on this line: _version = map(int, _version.split('.'))

_version is getting set above in

if not _version: _version = get_version_from_devheaders(include_dirs)

get_version_from_devheaders sets _version to return '1.2.x'

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.