I am trying to install ipython notebook on my mac OS 10.8.5 but it is telling me that I don't have pyzmq but I have already installed that using sudo pip install, and when I pip freeze, pyzmq is there. I have pyzmq version 14.
How can I fix this problem so that ipython will run in my browser?
Traceback (most recent call last):
File "/usr/local/bin/ipython", line 11, in <module>
sys.exit(start_ipython())
File "/Library/Python/2.7/site-packages/IPython/__init__.py", line 120, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "/Library/Python/2.7/site-packages/IPython/config/application.py", line 563, in launch_instance
app.initialize(argv)
File "<string>", line 2, in initialize
File "/Library/Python/2.7/site-packages/IPython/config/application.py", line 92, in catch_config_error
return method(app, *args, **kwargs)
File "/Library/Python/2.7/site-packages/IPython/terminal/ipapp.py", line 321, in initialize
super(TerminalIPythonApp, self).initialize(argv)
File "<string>", line 2, in initialize
File "/Library/Python/2.7/site-packages/IPython/config/application.py", line 92, in catch_config_error
return method(app, *args, **kwargs)
File "/Library/Python/2.7/site-packages/IPython/core/application.py", line 381, in initialize
self.parse_command_line(argv)
File "/Library/Python/2.7/site-packages/IPython/terminal/ipapp.py", line 316, in parse_command_line
return super(TerminalIPythonApp, self).parse_command_line(argv)
File "<string>", line 2, in parse_command_line
File "/Library/Python/2.7/site-packages/IPython/config/application.py", line 92, in catch_config_error
return method(app, *args, **kwargs)
File "/Library/Python/2.7/site-packages/IPython/config/application.py", line 475, in parse_command_line
return self.initialize_subcommand(subc, subargv)
File "<string>", line 2, in initialize_subcommand
File "/Library/Python/2.7/site-packages/IPython/config/application.py", line 92, in catch_config_error
return method(app, *args, **kwargs)
File "/Library/Python/2.7/site-packages/IPython/config/application.py", line 406, in initialize_subcommand
subapp = import_item(subapp)
File "/Library/Python/2.7/site-packages/IPython/utils/importstring.py", line 42, in import_item
module = __import__(package, fromlist=[obj])
File "/Library/Python/2.7/site-packages/IPython/html/notebookapp.py", line 40, in <module>
check_for_zmq('2.1.11', 'IPython.html')
File "/Library/Python/2.7/site-packages/IPython/utils/zmqrelated.py", line 37, in check_for_zmq
raise ImportError("%s requires pyzmq >= %s"%(required_by, minimum_version))
ImportError: IPython.html requires pyzmq >= 2.1.11
Related
I have installed Graphite in RHEL7 server using the source. I have created a database in Postgresql. Modified the local_settings.py with Postgresql database.
When I execute the below command for sync, it throws an error
PYTHONPATH=/app/graphite/webapp django-admin.py migrate --settings=graphite.settings --run-syncdb
Error :
Traceback (most recent call last): File "/usr/local/bin/django-admin.py", line 4, in <module>
__import__('pkg_resources').run_script('Django==2.2.1', 'django-admin.py') File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 666, in run_script
self.require(requires)[0].run_script(script_name, ns) File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1446, in run_script
exec(code, namespace, namespace) File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/EGG-INFO/scripts/django-admin.py", line 5, in <module>
management.execute_from_command_line() File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute() File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options) File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/core/management/base.py", line 361, in execute
self.check() File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/core/management/base.py", line 390, in check
include_deployment_checks=include_deployment_checks, File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/core/management/commands/migrate.py", line 64, in _run_checks
issues = run_checks(tags=[Tags.database]) File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/core/checks/registry.py", line 72, in run_checks
new_errors = check(app_configs=app_configs) File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/core/checks/database.py", line 9, in check_database_backends
for conn in connections.all(): File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/db/utils.py", line 216, in all
return [self[alias] for alias in self] File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/db/utils.py", line 213, in __iter__
return iter(self.databases) File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/utils/functional.py", line 80, in __get__
res = instance.__dict__[self.name] = self.func(instance) File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/db/utils.py", line 147, in databases
self._databases = settings.DATABASES File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/conf/__init__.py", line 79, in __getattr__
self._setup(name) File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/conf/__init__.py", line 66, in _setup
self._wrapped = Settings(settings_module) File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/conf/__init__.py", line 157, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed File "/app/graphite/webapp/graphite/settings.py", line 22, in <module>
from django.contrib.contenttypes.models import ContentType File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/contrib/contenttypes/models.py", line 133, in <module>
class ContentType(models.Model): File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/db/models/base.py", line 103, in __new__
app_config = apps.get_containing_app_config(module) File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/apps/registry.py", line 252, in get_containing_app_config
self.check_apps_ready() File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/apps/registry.py", line 134, in check_apps_ready
settings.INSTALLED_APPS File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/conf/__init__.py", line 79, in __getattr__
self._setup(name) File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/conf/__init__.py", line 66, in _setup
self._wrapped = Settings(settings_module) File "/usr/local/lib/python3.7/site-packages/Django-2.2.1-py3.7.egg/django/conf/__init__.py", line 176, in __init__
raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.") django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
The SECRET_KEY is added in local_settings.py, app_settings.py and settings.py. But still it thorws the same error. I have done the fresh installation of graphite and modified the DB values.
When I want to print any report I got this message : wkhtmltopdf failed (error code: -8). Message: b"
This problem only for Odoo 12 version but for the previous versions it work well ..
this link will show the warning message : Wkhtmltopdf warning
And this is the log :
Traceback (most recent call last):
File "/home/nebil/.environments/Odoo12/lib/python3.6/site-packages/werkzeug/serving.py", line 205, in run_wsgi
execute(self.server.app)
File "/home/nebil/.environments/Odoo12/lib/python3.6/site-packages/werkzeug/serving.py", line 193, in execute
application_iter = app(environ, start_response)
File "/home/nebil/Documents/odoo/odoo/service/server.py", line 350, in app
return self.app(e, s)
File "/home/nebil/Documents/odoo/odoo/service/wsgi_server.py", line 128, in application
return application_unproxied(environ, start_response)
File "/home/nebil/Documents/odoo/odoo/service/wsgi_server.py", line 117, in application_unproxied
result = odoo.http.root(environ, start_response)
File "/home/nebil/Documents/odoo/odoo/http.py", line 1317, in __call__
return self.dispatch(environ, start_response)
File "/home/nebil/Documents/odoo/odoo/http.py", line 1290, in __call__
return self.app(environ, start_wrapped)
File "/home/nebil/.environments/Odoo12/lib/python3.6/site-packages/werkzeug/wsgi.py", line 599, in __call__
return self.app(environ, start_response)
File "/home/nebil/Documents/odoo/odoo/http.py", line 1485, in dispatch
result = ir_http._dispatch()
File "/home/nebil/Documents/odoo/addons/auth_signup/models/ir_http.py", line 19, in _dispatch
return super(Http, cls)._dispatch()
File "/home/nebil/Documents/odoo/addons/web_editor/models/ir_http.py", line 22, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/home/nebil/Documents/odoo/addons/http_routing/models/ir_http.py", line 394, in _dispatch
result = super(IrHttp, cls)._dispatch()
File "/home/nebil/Documents/odoo/odoo/addons/base/models/ir_http.py", line 207, in _dispatch
return cls._handle_exception(e)
File "/home/nebil/Documents/odoo/odoo/addons/base/models/ir_http.py", line 177, in _handle_exception
return request._handle_exception(exception)
File "/home/nebil/Documents/odoo/odoo/http.py", line 773, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/home/nebil/Documents/odoo/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/nebil/Documents/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/home/nebil/Documents/odoo/odoo/addons/base/models/ir_http.py", line 203, in _dispatch
result = request.dispatch()
File "/home/nebil/Documents/odoo/odoo/http.py", line 832, in dispatch
r = self._call_function(**self.params)
File "/home/nebil/Documents/odoo/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/nebil/Documents/odoo/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/home/nebil/Documents/odoo/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/home/nebil/Documents/odoo/odoo/http.py", line 938, in __call__
return self.method(*args, **kw)
File "/home/nebil/Documents/odoo/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/home/nebil/Documents/odoo/addons/sale/controllers/portal.py", line 150, in portal_order_page
return self._show_report(model=order_sudo, report_type=report_type, report_ref='sale.action_report_saleorder', download=download)
File "/home/nebil/Documents/odoo/addons/portal/controllers/portal.py", line 280, in _show_report
report = getattr(report_sudo, method_name)([model.id], data={'report_type': report_type})[0]
File "/home/nebil/Documents/odoo/odoo/addons/base/models/ir_actions_report.py", line 686, in render_qweb_pdf
set_viewport_size=context.get('set_viewport_size'),
File "/home/nebil/Documents/odoo/odoo/addons/base/models/ir_actions_report.py", line 418, in _run_wkhtmltopdf
raise UserError(message % (str(process.returncode), err[-1000:]))
odoo.exceptions.UserError: ("Wkhtmltopdf failed (error code: -8). Message: b''", '') - - -
Please help me ..
I found a solution for this problem.
Try this:
sudo apt install ttf-mscorefonts-installer
sudo fc-cache -f -v
The problem come from the fonts. In Odoo12, default font for Bootstrap 4 is Noto Color Emoji and because of that, when you generate a report, wkhtmltopdf will crash. After this package you will have this font.
If problem persist, try to install also - http://download.odoo.com/fonts/Roboto-Regular.ttf
Tell me if it works. You can track this issue right here - https://github.com/odoo/odoo/issues/27487
I am new to Jupyter notebook when I try to create a Jupyter notebook, it fail to start the kernel by showing below error message, my python version is 3.5.2 and jupyter version is 4.2.0:
Traceback (most recent call last):
File "/home/andy/anaconda3/lib/python3.5/site-packages/traitlets/traitlets.py", line 526, in get
value = obj._trait_values[self.name]
KeyError: 'loop'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/andy/anaconda3/lib/python3.5/site-packages/notebook/base/handlers.py", line 457, in wrapper
result = yield gen.maybe_future(method(self, *args, **kwargs))
File "/home/andy/.local/lib/python3.5/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/home/andy/anaconda3/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/home/andy/.local/lib/python3.5/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(*exc_info)
File "/home/andy/anaconda3/lib/python3.5/site-packages/notebook/services/sessions/handlers.py", line 62, in post
kernel_id=kernel_id))
File "/home/andy/.local/lib/python3.5/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/home/andy/anaconda3/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/home/andy/.local/lib/python3.5/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(*exc_info)
File "/home/andy/anaconda3/lib/python3.5/site-packages/notebook/services/sessions/sessionmanager.py", line 79, in create_session
kernel_name)
File "/home/andy/.local/lib/python3.5/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/home/andy/anaconda3/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/home/andy/.local/lib/python3.5/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(*exc_info)
File "/home/andy/anaconda3/lib/python3.5/site-packages/notebook/services/sessions/sessionmanager.py", line 92, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
File "/home/andy/.local/lib/python3.5/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/home/andy/anaconda3/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/home/andy/.local/lib/python3.5/site-packages/tornado/gen.py", line 326, in wrapper
yielded = next(result)
File "/home/andy/anaconda3/lib/python3.5/site-packages/notebook/services/kernels/kernelmanager.py", line 87, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File "/home/andy/anaconda3/lib/python3.5/site-packages/jupyter_client/multikernelmanager.py", line 110, in start_kernel
km.start_kernel(**kwargs)
File "/home/andy/anaconda3/lib/python3.5/site-packages/jupyter_client/manager.py", line 258, in start_kernel
self.start_restarter()
File "/home/andy/anaconda3/lib/python3.5/site-packages/jupyter_client/ioloop/manager.py", line 49, in start_restarter
kernel_manager=self, loop=self.loop,
File "/home/andy/anaconda3/lib/python3.5/site-packages/traitlets/traitlets.py", line 554, in __get__
return self.get(obj, cls)
File "/home/andy/anaconda3/lib/python3.5/site-packages/traitlets/traitlets.py", line 533, in get
value = self._validate(obj, dynamic_default())
File "/home/andy/anaconda3/lib/python3.5/site-packages/traitlets/traitlets.py", line 589, in _validate
value = self.validate(obj, value)
File "/home/andy/anaconda3/lib/python3.5/site-packages/traitlets/traitlets.py", line 1681, in validate
self.error(obj, value)
File "/home/andy/anaconda3/lib/python3.5/site-packages/traitlets/traitlets.py", line 1528, in error
raise TraitError(e)
traitlets.traitlets.TraitError: The 'loop' trait of an IOLoopKernelManager instance must be a ZMQIOLoop, but a value of class 'tornado.platform.asyncio.AsyncIOMainLoop' (i.e. <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7f1dd34e8ef0>) was specified.
And I have also checked the kernel by using below command:
jupyter kernelspec list
Get below result:
Available kernels:
python3 /home/andy/anaconda3/share/jupyter/kernels/python3
Can anyone help me?
Jupyter 4.2.0 is pretty old, and is not compatible with Tornado versions newer than 5.0. You need to either upgrade to a newer version of Jupyter or downgrade to an older version of Tornado (with pip, this would be pip install "tornado<5.0". I don't know the conda equivalent)
Running
pyinstaller myfile.spec
Tracebacok below
Traceback (most recent call last):
File "/usr/local/bin/pyinstaller", line 9, in <module>
load_entry_point('PyInstaller==3.0', 'console_scripts', 'pyinstaller')()
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/__main__.py", line 99, in run
run_build(opts, spec_file, pyi_config)
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/__main__.py", line 47, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **opts.__dict__)
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/building/build_main.py", line 737, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/building/build_main.py", line 680, in build
exec(text, spec_namespace)
File "<string>", line 6, in <module>
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/building/build_main.py", line 207, in __init__
self.__postinit__()
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/building/datastruct.py", line 156, in __postinit__
self.assemble()
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/building/build_main.py", line 430, in assemble
imphook_object.update_dependencies(self.graph)
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/building/imphook.py", line 345, in update_dependencies
self._process_datas(mod_graph)
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/building/imphook.py", line 313, in _process_datas
self.datas.update(set(format_binaries_and_datas(self._module.datas)))
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/building/utils.py", line 422, in format_binaries_and_datas
src_root_path_or_glob))
PyInstaller.compat.FileNotFoundError: Path or glob "/usr/include/python2.7/pyconfig.h" not found or matches no files.
Pyinstaller needs an Ubuntu package, because it has several dependencies. This is not documented, but you need python-dev:
apt install build-essential python-dev
I'm on OS X 10.10.4 with Macports and Anaconda (condo 3.15.1).
During the process of building the robotic simulator ARGoS,
https://github.com/ilpincy/argos3
we ran into runtime 'qt' issues running the ARGoS examples.
[FATAL] Can't load library "/usr/local/lib/argos3/libargos3plugin_simulator_epuck.dylib" even after trying to add extensions for shared library (dylib) and module library (so):
/usr/local/lib/argos3/libargos3plugin_simulator_epuck.dylib: dlopen(/usr/local/lib/argos3/libargos3plugin_simulator_epuck.dylib, 1): Library not loaded: #rpath/./libQtOpenGL.4.dylib
I learned that cmake found 'qt' within Anaconda which had runtime problems.
-- Found Qt4: /Users/davidlaxer/anaconda/bin/qmake (found version "4.8.6")
Next, I installed qt4-mac:
sudo port install qt4-mac
---> Computing dependencies for qt4-mac
---> Fetching archive for qt4-mac
---> Attempting to fetch qt4-mac-4.8.7_0.darwin_14.x86_64.tbz2 from http://packages.macports.org/qt4-mac
---> Attempting to fetch qt4-mac-4.8.7_0.darwin_14.x86_64.tbz2.rmd160 from http://packages.macports.org/qt4-mac
---> Installing qt4-mac #4.8.7_0
---> Activating qt4-mac #4.8.7_0
NOTE: Qt database plugins for mysql55, postgresql91, and sqlite2 are NOT installed by this port; they are installed by qt4-mac-*-plugin instead.
---> Cleaning qt4-mac
---> Updating database of binaries
---> Scanning binaries for linking errors
---> No broken files found.
When I installed 'qt' with Macports, ipython qtconsole broke.
David-Laxers-MacBook-Pro:build_simulator davidlaxer$ ipython qtconsole
Traceback (most recent call last):
File "/Users/davidlaxer/anaconda/bin/ipython", line 6, in <module>
sys.exit(start_ipython())
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/__init__.py", line 120, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 573, in launch_instance
app.initialize(argv)
File "<string>", line 2, in initialize
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 321, in initialize
super(TerminalIPythonApp, self).initialize(argv)
File "<string>", line 2, in initialize
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/core/application.py", line 369, in initialize
self.parse_command_line(argv)
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 316, in parse_command_line
return super(TerminalIPythonApp, self).parse_command_line(argv)
File "<string>", line 2, in parse_command_line
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 471, in parse_command_line
return self.initialize_subcommand(subc, subargv)
File "<string>", line 2, in initialize_subcommand
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 402, in initialize_subcommand
subapp = import_item(subapp)
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/utils/importstring.py", line 42, in import_item
module = __import__(package, fromlist=[obj])
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/qt/console/qtconsoleapp.py", line 50, in <module>
from IPython.external.qt import QtCore, QtGui
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/external/qt.py", line 23, in <module>
QtCore, QtGui, QtSvg, QT_API = load_qt(api_opts)
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/external/qt_loaders.py", line 277, in load_qt
result = loaders[api]()
File "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/IPython/external/qt_loaders.py", line 184, in import_pyqt4
from PyQt4 import QtGui, QtCore, QtSvg
ImportError: dlopen(/Users/davidlaxer/anaconda/lib/python2.7/site-packages/PyQt4/QtGui.so, 2): Symbol not found: _iconv
Referenced from: /Users/davidlaxer/anaconda/lib//libxml2.2.dylib
Expected in: /opt/local/lib//libiconv.2.dylib
How is this supposed to work?