Problems finding MagicWand and other packages
When I try running yarn dev
I get the following output which claims it can't import MagickWand. I've also run yarn test
and included the output from that below. I have freetype 2.9.1 and imagemagick 7.0.8-7 installed. Any suggestions?
(zesje) todds-mbp:zesje toddzimmerman$ yarn dev
yarn run v1.7.0
$ concurrently --kill-others --names "WEBPACK,PYTHON" --prefix-colors "bgBlue.bold,bgGreen.bold" "webpack-dev-server --hot --inline --progress --config webpack.dev.js" "ZESJE_SETTINGS=$(pwd)/zesje.dev.cfg python3 zesje"
[PYTHON] Traceback (most recent call last):
[PYTHON] File "/Users/toddzimmerman/anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py", line 180, in <module>
[PYTHON] libraries = load_library()
[PYTHON] File "/Users/toddzimmerman/anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py", line 135, in load_library
[PYTHON] raise IOError('cannot find library; tried paths: ' + repr(tried_paths))
[PYTHON] OSError: cannot find library; tried paths: []
[PYTHON]
[PYTHON] During handling of the above exception, another exception occurred:
[PYTHON]
[PYTHON] Traceback (most recent call last):
[PYTHON] File "/Users/toddzimmerman/anaconda3/envs/zesje/lib/python3.6/runpy.py", line 193, in _run_module_as_main
[PYTHON] "__main__", mod_spec)
[PYTHON] File "/Users/toddzimmerman/anaconda3/envs/zesje/lib/python3.6/runpy.py", line 85, in _run_code
[PYTHON] exec(code, run_globals)
[PYTHON] File "zesje/__main__.py", line 5, in <module>
[PYTHON] from zesje import app # noqa: E402
[PYTHON] File "/Users/toddzimmerman/Dropbox/Stout/__zesje/zesje/zesje/__init__.py", line 10, in <module>
[PYTHON] from .api import api_bp
[PYTHON] File "/Users/toddzimmerman/Dropbox/Stout/__zesje/zesje/zesje/api/__init__.py", line 13, in <module>
[PYTHON] from .emails import EmailTemplate, RenderedEmailTemplate, Email
[PYTHON] File "/Users/toddzimmerman/Dropbox/Stout/__zesje/zesje/zesje/api/emails.py", line 13, in <module>
[PYTHON] from .. import emails
[PYTHON] File "/Users/toddzimmerman/Dropbox/Stout/__zesje/zesje/zesje/emails.py", line 11, in <module>
[PYTHON] from wand.image import Image
[PYTHON] File "/Users/toddzimmerman/anaconda3/envs/zesje/lib/python3.6/site-packages/wand/image.py", line 20, in <module>
[PYTHON] from .api import MagickPixelPacket, libc, libmagick, library
[PYTHON] File "/Users/toddzimmerman/anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py", line 206, in <module>
[PYTHON] 'Try to install:\n ' + msg)
[PYTHON] ImportError: MagickWand shared library not found.
[PYTHON] You probably had not installed ImageMagick library.
[PYTHON] Try to install:
[PYTHON] brew install freetype imagemagick
[PYTHON] ZESJE_SETTINGS=/Users/toddzimmerman/Dropbox/Stout/__zesje/zesje/zesje.dev.cfg python3 zesje exited with code 1
--> Sending SIGTERM to other processes..
[WEBPACK] webpack-dev-server --hot --inline --progress --config webpack.dev.js exited with code null
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When I run yarn test
I get the following list of errors
(zesje) todds-mbp:zesje toddzimmerman$ yarn test
yarn run v1.7.0
$ yarn test:js; yarn test:py
$ jest
No tests found
In /Users/toddzimmerman/Dropbox/Stout/__zesje/zesje
47 files checked.
testMatch: **/__tests__/**/*.js?(x),**/?(*.)+(spec|test).js?(x) - 0 matches
testPathIgnorePatterns: /node_modules/ - 47 matches
Pattern: - 0 matches
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
$ python3 -m pytest -v -W error::RuntimeWarning
====================================================================================== test session starts =======================================================================================
platform darwin -- Python 3.6.5, pytest-3.6.3, py-1.5.4, pluggy-0.6.0 -- /Users/toddzimmerman/anaconda3/envs/zesje/bin/python3
cachedir: .pytest_cache
rootdir: /Users/toddzimmerman/Dropbox/Stout/__zesje/zesje, inifile: pytest.ini
collected 50 items / 5 errors
============================================================================================= ERRORS =============================================================================================
_________________________________________________________________________ ERROR collecting tests/test_check_keypoints.py _________________________________________________________________________
ImportError while importing test module '/Users/toddzimmerman/Dropbox/Stout/__zesje/zesje/tests/test_check_keypoints.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:180: in <module>
libraries = load_library()
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:135: in load_library
raise IOError('cannot find library; tried paths: ' + repr(tried_paths))
E OSError: cannot find library; tried paths: []
During handling of the above exception, another exception occurred:
tests/test_check_keypoints.py:3: in <module>
from zesje import scans
zesje/__init__.py:10: in <module>
from .api import api_bp
zesje/api/__init__.py:13: in <module>
from .emails import EmailTemplate, RenderedEmailTemplate, Email
zesje/api/emails.py:13: in <module>
from .. import emails
zesje/emails.py:11: in <module>
from wand.image import Image
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/image.py:20: in <module>
from .api import MagickPixelPacket, libc, libmagick, library
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:206: in <module>
'Try to install:\n ' + msg)
E ImportError: MagickWand shared library not found.
E You probably had not installed ImageMagick library.
E Try to install:
E brew install freetype imagemagick
_______________________________________________________________________ ERROR collecting tests/test_get_student_number.py ________________________________________________________________________
ImportError while importing test module '/Users/toddzimmerman/Dropbox/Stout/__zesje/zesje/tests/test_get_student_number.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:180: in <module>
libraries = load_library()
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:135: in load_library
raise IOError('cannot find library; tried paths: ' + repr(tried_paths))
E OSError: cannot find library; tried paths: []
During handling of the above exception, another exception occurred:
tests/test_get_student_number.py:5: in <module>
from zesje import scans
zesje/__init__.py:10: in <module>
from .api import api_bp
zesje/api/__init__.py:13: in <module>
from .emails import EmailTemplate, RenderedEmailTemplate, Email
zesje/api/emails.py:13: in <module>
from .. import emails
zesje/emails.py:11: in <module>
from wand.image import Image
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/image.py:20: in <module>
from .api import MagickPixelPacket, libc, libmagick, library
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:206: in <module>
'Try to install:\n ' + msg)
E ImportError: MagickWand shared library not found.
E You probably had not installed ImageMagick library.
E Try to install:
E brew install freetype imagemagick
_________________________________________________________________________ ERROR collecting tests/test_pdf_generation.py __________________________________________________________________________
ImportError while importing test module '/Users/toddzimmerman/Dropbox/Stout/__zesje/zesje/tests/test_pdf_generation.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:180: in <module>
libraries = load_library()
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:135: in load_library
raise IOError('cannot find library; tried paths: ' + repr(tried_paths))
E OSError: cannot find library; tried paths: []
During handling of the above exception, another exception occurred:
tests/test_pdf_generation.py:11: in <module>
from wand.color import Color as WandColor
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/color.py:9: in <module>
from .api import MagickPixelPacket, library
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:206: in <module>
'Try to install:\n ' + msg)
E ImportError: MagickWand shared library not found.
E You probably had not installed ImageMagick library.
E Try to install:
E brew install freetype imagemagick
__________________________________________________________________________ ERROR collecting tests/test_rotation_scan.py __________________________________________________________________________
ImportError while importing test module '/Users/toddzimmerman/Dropbox/Stout/__zesje/zesje/tests/test_rotation_scan.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:180: in <module>
libraries = load_library()
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:135: in load_library
raise IOError('cannot find library; tried paths: ' + repr(tried_paths))
E OSError: cannot find library; tried paths: []
During handling of the above exception, another exception occurred:
tests/test_rotation_scan.py:9: in <module>
from zesje import scans
zesje/__init__.py:10: in <module>
from .api import api_bp
zesje/api/__init__.py:13: in <module>
from .emails import EmailTemplate, RenderedEmailTemplate, Email
zesje/api/emails.py:13: in <module>
from .. import emails
zesje/emails.py:11: in <module>
from wand.image import Image
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/image.py:20: in <module>
from .api import MagickPixelPacket, libc, libmagick, library
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:206: in <module>
'Try to install:\n ' + msg)
E ImportError: MagickWand shared library not found.
E You probably had not installed ImageMagick library.
E Try to install:
E brew install freetype imagemagick
______________________________________________________________________________ ERROR collecting tests/test_scans.py ______________________________________________________________________________
ImportError while importing test module '/Users/toddzimmerman/Dropbox/Stout/__zesje/zesje/tests/test_scans.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:180: in <module>
libraries = load_library()
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:135: in load_library
raise IOError('cannot find library; tried paths: ' + repr(tried_paths))
E OSError: cannot find library; tried paths: []
During handling of the above exception, another exception occurred:
tests/test_scans.py:8: in <module>
from zesje import scans
zesje/__init__.py:10: in <module>
from .api import api_bp
zesje/api/__init__.py:13: in <module>
from .emails import EmailTemplate, RenderedEmailTemplate, Email
zesje/api/emails.py:13: in <module>
from .. import emails
zesje/emails.py:11: in <module>
from wand.image import Image
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/image.py:20: in <module>
from .api import MagickPixelPacket, libc, libmagick, library
../../../../anaconda3/envs/zesje/lib/python3.6/site-packages/wand/api.py:206: in <module>
'Try to install:\n ' + msg)
E ImportError: MagickWand shared library not found.
E You probably had not installed ImageMagick library.
E Try to install:
E brew install freetype imagemagick
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 5 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==================================================================================== 5 error in 2.37 seconds =====================================================================================
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Edited by Todd Zimmerman