--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+un...@continuum.io.
To post to this group, send email to co...@continuum.io.
Visit this group at http://groups.google.com/a/continuum.io/group/conda/.
Michal
To unsubscribe from this group and stop receiving emails from it, send an email to conda+unsubscribe@continuum.io.
(myenv)~$ conda list
# packages in environment at /Users/szeitlin/anaconda/envs/myenv:
#
Traceback (most recent call last):
File "/Users/szeitlin/anaconda/envs/myenv/lib/python3.4/site-packages/pip-1.4.1-py3.4.egg/pip/backwardcompat/__init__.py", line 123, in <module>
from ssl import match_hostname, CertificateError
File "/Users/szeitlin/anaconda/envs/myenv/lib/python3.4/ssl.py", line 97, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: dlopen(/Users/szeitlin/anaconda/envs/myenv/lib/python3.4/lib-dynload/_ssl.so, 2): Symbol not found: _SSLv2_method
Referenced from: /Users/szeitlin/anaconda/envs/myenv/lib/python3.4/lib-dynload/_ssl.so
Expected in: /Users/szeitlin/anaconda/envs/myenv/lib/python3.4/lib-dynload/../../libssl.1.0.0.dylib
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/szeitlin/anaconda/envs/myenv/bin/pip", line 4, in <module>
from pip import main
File "/Users/szeitlin/anaconda/envs/myenv/lib/python3.4/site-packages/pip-1.4.1-py3.4.egg/pip/__init__.py", line 9, in <module>
from pip.log import logger
File "/Users/szeitlin/anaconda/envs/myenv/lib/python3.4/site-packages/pip-1.4.1-py3.4.egg/pip/log.py", line 7, in <module>
from pip import backwardcompat
File "/Users/szeitlin/anaconda/envs/myenv/lib/python3.4/site-packages/pip-1.4.1-py3.4.egg/pip/backwardcompat/__init__.py", line 125, in <module>
from ssl_match_hostname import match_hostname, CertificateError
ImportError: No module named 'ssl_match_hostname'
# Warning: subprocess call to pip failed
However, after hours of digging through SO, I was able to determine that part of the problem was due to python3.
So I fixed my problem outside of conda by reinstalling python3 using homebrew, and then I was able to install psycopg2 with pip3.
sudo brew install python3 --with-brewed-openssl --build-from-source
pip3 install --upgrade pip
Successfully installed pip-7.1.0
pip3 install psycopg2
psycopg2 in /usr/local/lib/python3.4/site-packages
But I still get:
(myenv)~$ conda install psycopg2
Fetching package metadata: Could not connect to https://repo.continuum.io/pkgs/pro/noarch/
.Could not connect to https://repo.continuum.io/pkgs/pro/osx-64/
.Could not connect to https://repo.continuum.io/pkgs/free/noarch/
.Could not connect to https://repo.continuum.io/pkgs/free/osx-64/
.
Solving package specifications: .
Package plan for installation in environment /Users/szeitlin/anaconda/envs/myenv:
The following packages will be downloaded:
package | build
---------------------------|-----------------
psycopg2-2.6 | py34_1 287 KB
The following NEW packages will be INSTALLED:
psycopg2: 2.6-py34_1
Proceed ([y]/n)? y
Fetching packages ...
Could not connect to https://repo.continuum.io/pkgs/free/osx-64/psycopg2-2.6-py34_1.tar.bz2
Error: Connection error: Can't connect to HTTPS URL because the SSL module is not available.: https://repo.continuum.io/pkgs/free/osx-64/psycopg2-2.6-py34_1.tar.bz2
I finally gave up and just installed it in this env using pip3, and that worked.
But when I try to run django, it still says:
ImportError: dlopen(/Users/szeitlin/anaconda/envs/myenv/lib/python3.4/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: libssl.1.0.0.dylib
Referenced from: /Users/szeitlin/anaconda/envs/myenv/lib/python3.4/site-packages/psycopg2/_psycopg.so
Reason: image not found
So I'm not sure if the problem is specific to conda per se, because it seems like conda is not talking to pip, and there's still some confusion about where the various ssl pieces need to be for homebrew and conda to both find them (and I've run into some incompatibility with those symlinks before).
I don't know how to tell django to look where the working versions of libssl.1.0.0.dylib are, short of making a new env. In the past when I've had problems like this, I wasn't able to find a better workaround.
I may still have to uninstall conda and then reinstall it, because right now I can't use it to install any new packages.
So I don't know if that helps...
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/feab34c3-d97e-42a3-a204-575edb8d55c7%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.