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

wand.image import failed on imagemagick 6.9.6.2 #310

Closed
changwoo opened this issue Oct 22, 2016 · 1 comment
Closed

wand.image import failed on imagemagick 6.9.6.2 #310

changwoo opened this issue Oct 22, 2016 · 1 comment
Assignees
Labels
bug

Comments

@changwoo
Copy link

@changwoo changwoo commented Oct 22, 2016

From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841548

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/lib/python3/dist-packages/wand/image.py", line 21, in <module>
      from .color import Color
    File "/usr/lib/python3/dist-packages/wand/color.py", line 12, in <module>
      from .version import QUANTUM_DEPTH
    File "/usr/lib/python3/dist-packages/wand/version.py", line 95, in <module>
      *map(int, MAGICK_RELEASE_DATE_STRING.split('-')))
  TypeError: Required argument 'month' (pos 2) not found

The format of the release date seems to be changed.

@changwoo
Copy link
Author

@changwoo changwoo commented Oct 22, 2016

tests/misc_test.py:test_version() should be fixed too.

_________________________________ test_version _________________________________

    def test_version():
        """Test version strings."""
        match = re.match('^ImageMagick\s+\d+\.\d+\.\d+(?:-\d+)?', MAGICK_VERSION)
        assert match
        assert isinstance(MAGICK_VERSION_INFO, tuple)
        assert (len(MAGICK_VERSION_INFO) ==
                match.group(0).count('.') + match.group(0).count('-') + 1)
        assert all(isinstance(v, int) for v in MAGICK_VERSION_INFO)
        assert isinstance(MAGICK_VERSION_NUMBER, numbers.Integral)
        assert isinstance(MAGICK_RELEASE_DATE, datetime.date)
>       assert (MAGICK_RELEASE_DATE_STRING ==
                MAGICK_RELEASE_DATE.strftime('%Y-%m-%d'))
E       assert '20161010' == '2016-10-10'
E         - 20161010
E         + 2016-10-10
E         ?     +  +

@dahlia dahlia reopened this Oct 24, 2016
lsh-0 added a commit to elifesciences/elife-bot that referenced this issue Mar 13, 2019
bumps version of pyFunctional to resolve incompatible versions of arrow
giorgiosironi added a commit to elifesciences/elife-bot that referenced this issue Mar 18, 2019
…issues/310"

This reverts commit fabe544.

Attempts to fix elifesciences/issues#4826 on
the current environment, which prevents deployments of new code due to
the version of Wand being suspected of crashing the `ConvertImagesToJPG`
activity.
giorgiosironi added a commit to elifesciences/elife-bot that referenced this issue Mar 18, 2019
Revert "bumps version of Wand to fix bug github.com/emcconville/wand/issues/310"
gnott added a commit to elifesciences/elife-bot that referenced this issue Mar 18, 2019
…le/wand/issues/310""

This reverts commit ee3b5b2.

Might be ready to test the upgraded requirements again after merging a potential fix for Wand usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants