conda-forge / pyqt-feedstock

A conda-smithy repository for pyqt.
BSD 3-Clause "New" or "Revised" License
5 stars 35 forks source link

Failure importing PyQt5 on Mac #26

Closed astrofrog closed 7 years ago

astrofrog commented 7 years ago

If I install PyQt5 from conda-forge, I run into the following error:

In [1]: from PyQt5 import QtGui, QtCore, QtWidgets, QtTest
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-82d8b7a471f4> in <module>()
----> 1 from PyQt5 import QtGui, QtCore, QtWidgets, QtTest

ImportError: dlopen(/Users/tom/miniconda3/envs/dev/lib/python3.6/site-packages/PyQt5/QtGui.so, 2): Symbol not found: _PySlice_AdjustIndices
  Referenced from: /Users/tom/miniconda3/envs/dev/lib/python3.6/site-packages/PyQt5/QtGui.so
  Expected in: flat namespace
 in /Users/tom/miniconda3/envs/dev/lib/python3.6/site-packages/PyQt5/QtGui.so
astrofrog commented 7 years ago

Here's the output of conda list:

# packages in environment at /Users/tom/miniconda3/envs/dev:
#
_license                  1.1                      py36_1  
ads                       0.12.2                    <pip>
alabaster                 0.7.9                    py36_0  
altair                    1.2.0                     <pip>
anaconda-client           1.6.2                    py36_0  
anaconda-project          0.4.1                    py36_0  
aniso8601                 1.2.0                     <pip>
apipkg                    1.4                       <pip>
APLpy                     1.1.1                     <pip>
appdirs                   1.4.0                     <pip>
appnope                   0.1.0                    py36_0  
args                      0.1.0                     <pip>
arrow                     0.10.0                    <pip>
arrow                     0.10.0                   py36_0    conda-forge
astrodendro               0.2.0                     <pip>
autopep8                  1.3.1                     <pip>
babel                     2.3.4                    py36_0  
beancount                 2.0b13                    <pip>
beancount-fava            1.2                       <pip>
beautifulsoup4            4.5.3                    py36_0  
beautifulsoup4            4.5.3                     <pip>
binaryornot               0.4.3                    py36_2    conda-forge
binaryornot               0.4.0                     <pip>
bokeh                     0.12.4                   py36_0  
bottle                    0.12.13                   <pip>
cairo                     1.14.6                        4    conda-forge
chardet                   2.3.0                     <pip>
chardet                   2.3.0                    py36_0  
click                     6.7                      py36_0  
click                     6.7                       <pip>
clint                     0.5.1                     <pip>
cloog                     0.18.0                        0  
cloudpickle               0.2.2                    py36_2    conda-forge
clyent                    1.2.2                    py36_0  
colorama                  0.3.7                     <pip>
cookiecutter              1.5.1                    py36_0    conda-forge
cookiecutter              1.5.1                     <pip>
coverage                  4.3.4                     <pip>
curl                      7.52.1                        0  
cycler                    0.10.0                   py36_0  
cycler                    0.10.0                    <pip>
cython                    0.25.2                   py36_0  
dask                      0.13.0                   py36_0    conda-forge
dask                      0.13.0                    <pip>
dbus                      1.10.10                       3    conda-forge
decorator                 4.0.10                   py36_1  
dill                      0.2.6                     <pip>
dill                      0.2.6                    py36_0    conda-forge
docutils                  0.12                     py36_2  
entrypoints               0.2.2                    py36_0  
execnet                   1.4.1                     <pip>
ExifRead                  2.1.2                     <pip>
expat                     2.1.0                         2    conda-forge
flake8                    3.2.1                     <pip>
Flask                     0.12                      <pip>
flask                     0.12                     py36_0  
Flask-Babel               0.11.1                    <pip>
Flask-RESTful             0.3.5                     <pip>
fontconfig                2.12.1                        4    conda-forge
freetype                  2.7                           1    conda-forge
future                    0.16.0                   py36_1  
future                    0.16.0                    <pip>
gcc                       4.8.5                         7  
gdcm                      2.6.6                    py36_0    conda-forge
geos                      3.5.0                         0  
gettext                   0.19.8                        1  
ginga                     2.6.1                     <pip>
gitdb2                    2.0.0                     <pip>
GitPython                 2.1.3                     <pip>
glib                      2.51.4                        0    conda-forge
glueviz                   0.10.3                    <pip>
glueviz-meta              0.0.dev0                  <pip>
gmp                       6.1.2                         0    conda-forge
google-api-python-client  1.6.2                     <pip>
graphite2                 1.3.9                         0    conda-forge
gsl                       2.2.1                         0  
h5py                      2.7.0               np111py36_0  
harfbuzz                  1.4.3                         0    conda-forge
hdf5                      1.8.17                        8    conda-forge
html5lib                  0.999                    py36_0  
httplib2                  0.10.3                    <pip>
httpretty                 0.8.10                    <pip>
Hyperion                  0.9.8                     <pip>
Hyperion                  0.9.9                     <pip>
icu                       58.1                          1    conda-forge
imageio                   2.1.2                    py36_0    conda-forge
imagesize                 0.7.1                    py36_0  
ipykernel                 4.5.2                    py36_0  
ipython                   6.0.0                    py36_0  
ipython_genutils          0.1.0                    py36_0  
isl                       0.12.2                        1  
itsdangerous              0.24                      <pip>
itsdangerous              0.24                     py36_0  
jbig                      2.1                           0  
jinja2                    2.8                      py36_1  
jinja2-time               0.2.0                     <pip>
jinja2-time               0.2.0                    py36_1    conda-forge
jpeg                      9b                            0    conda-forge
jsonschema                2.5.1                    py36_0  
jupyter_client            4.4.0                    py36_0  
jupyter_core              4.2.1                    py36_0  
keyring                   9.3.1                    py36_0  
lettherebe                0.0.2                     <pip>
libffi                    3.2.1                         1  
libgcc                    4.8.5                         1  
libgfortran               3.0.0                         0    conda-forge
libiconv                  1.14                          0  
libpng                    1.6.28                        0    conda-forge
libpq                     9.5.4                         0  
libtiff                   4.0.6                         7    conda-forge
libxml2                   2.9.4                         0  
libxslt                   1.1.29                        0  
locket                    0.2.0                    py36_1    conda-forge
lxml                      3.7.3                    py36_0  
lxml                      3.7.2                     <pip>
Markdown                  2.6.7                     <pip>
markdown2                 2.3.2                     <pip>
markupsafe                0.23                     py36_2  
matplotlib                2.0.2               np111py36_0    conda-forge
mccabe                    0.5.3                     <pip>
mistune                   0.7.3                    py36_1  
mkl                       11.3.3                        0  
mock                      2.0.0                    py36_0  
montage-wrapper           0.9.9.dev0                <pip>
mpc                       1.0.3                         3    conda-forge
mpfr                      3.1.5                         0    conda-forge
mpich                     3.2                           3    conda-forge
mpmath                    0.19                     py36_1  
nbconvert                 4.2.0                    py36_0  
nbformat                  4.2.0                    py36_0  
ncurses                   5.9                          10  
networkx                  1.11                     py36_0  
nibabel                   2.1.0                     <pip>
nose                      1.3.7                     <pip>
notebook                  4.3.0                    py36_0  
numpy                     1.11.2                   py36_0  
numpydoc                  0.6.0                     <pip>
oauth2client              4.0.0                     <pip>
olefile                   0.44                     py36_0    conda-forge
openssl                   1.0.2j                        0  
orcid                     0.7.0                     <pip>
owslib                    0.14.0                   py36_0    conda-forge
packaging                 16.8                      <pip>
pandas                    0.19.1              np111py36_0  
pandoc                    1.19.2.1                      0  
pango                     1.40.4                        0    conda-forge
partd                     0.3.7                    py36_0    conda-forge
path.py                   9.0.1                    py36_0  
pbr                       1.10.0                   py36_0  
pcre                      8.39                          1  
pep8                      1.7.0                     <pip>
pexpect                   4.0.1                    py36_0  
pickleshare               0.7.4                    py36_0  
pillow                    4.1.1                    py36_0    conda-forge
pip                       9.0.1                    py36_1  
pipdeptree                0.10.1                    <pip>
pixman                    0.34.0                        0  
pkginfo                   1.4.1                     <pip>
plotly                    2.0.0                     <pip>
plotly                    2.0.5                    py36_0    conda-forge
ply                       3.9                       <pip>
poyo                      0.4.1                    py36_0    conda-forge
poyo                      0.4.1                     <pip>
proj4                     4.9.3                         2    conda-forge
prompt_toolkit            1.0.9                    py36_0  
psrecord                  1.0                       <pip>
psutil                    5.1.3                    py36_0  
psycopg2                  2.6.2                    py36_0  
ptyprocess                0.5.1                    py36_0  
py                        1.4.31                   py36_0  
pyasn1                    0.2.3                     <pip>
pyasn1-modules            0.0.8                     <pip>
pycodestyle               2.2.0                     <pip>
pydicom                   1.0.0a1                   <pip>
pyepsg                    0.3.1                    py36_0    conda-forge
pyflakes                  1.3.0                     <pip>
PyGithub                  1.33                      <pip>
pygments                  2.1.3                    py36_0  
PyJWT                     1.4.2                     <pip>
pyModeS                   1.0.7                     <pip>
PyOpenGL                  3.1.0                     <pip>
pyopengl                  3.1.0                    py36_0    conda-forge
pyparsing                 2.1.10                    <pip>
pyparsing                 2.1.4                    py36_0  
pyproj                    1.9.5.1                  py36_0  
pyqt                      5.6.0                    py36_2    conda-forge
pyqtgraph                 0.10.0                    <pip>
pyshp                     1.2.10                   py36_0    conda-forge
pytest                    3.0.5                    py36_0  
pytest-arraydiff          0.1                       <pip>
pytest-cov                2.4.0                     <pip>
pytest-xdist              1.15.0                    <pip>
python                    3.6.0                         0  
python-dateutil           2.6.0                    py36_0  
python-magic              0.4.12                    <pip>
python.app                1.2                      py36_4  
pytz                      2016.10                  py36_0  
pywavelets                0.5.2               np111py36_0  
pyyaml                    3.12                     py36_0  
pyzmq                     16.0.2                   py36_0  
qt                        5.6.2                         1    conda-forge
qtconsole                 4.2.1                    py36_1  
qtconsole                 4.2.1                     <pip>
qtpy                      1.2.1                    py36_0  
QtPy                      1.1.2                     <pip>
r                         3.3.2                  r3.3.2_0    https://repo.continuum.io/pkgs/r
r-base                    3.3.2                         5    conda-forge
r-boot                    1.3_18                 r3.3.2_0    https://repo.continuum.io/pkgs/r
r-class                   7.3_14                 r3.3.2_0    https://repo.continuum.io/pkgs/r
r-cluster                 2.0.5                  r3.3.2_0    https://repo.continuum.io/pkgs/r
r-codetools               0.2_15                 r3.3.2_0    https://repo.continuum.io/pkgs/r
r-foreign                 0.8_67                 r3.3.2_0    https://repo.continuum.io/pkgs/r
r-kernsmooth              2.23_15                r3.3.2_0    https://repo.continuum.io/pkgs/r
r-lattice                 0.20_34                r3.3.2_0    https://repo.continuum.io/pkgs/r
r-mass                    7.3_45                 r3.3.2_0    https://repo.continuum.io/pkgs/r
r-matrix                  1.2_7.1                r3.3.2_0    https://repo.continuum.io/pkgs/r
r-mgcv                    1.8_16                 r3.3.2_0    https://repo.continuum.io/pkgs/r
r-nlme                    3.1_128                r3.3.2_0    https://repo.continuum.io/pkgs/r
r-nnet                    7.3_12                 r3.3.2_0    https://repo.continuum.io/pkgs/r
r-recommended             3.3.2                  r3.3.2_0    https://repo.continuum.io/pkgs/r
r-rpart                   4.1_10                 r3.3.2_0    https://repo.continuum.io/pkgs/r
r-spatial                 7.3_11                 r3.3.2_0    https://repo.continuum.io/pkgs/r
r-survival                2.40_1                 r3.3.2_0    https://repo.continuum.io/pkgs/r
raster-axes               0.1.dev0                  <pip>
readline                  6.2                           2  
reproject                 0.3.1                     <pip>
requests                  2.12.4                   py36_0  
requests                  2.13.0                    <pip>
requests-toolbelt         0.7.1                     <pip>
restructuredtext-lint     0.17.2                    <pip>
rpy2                      2.8.5                     <pip>
rsa                       3.4.2                     <pip>
ruamel_yaml               0.11.14                  py36_1  
scikit-image              0.13.0              np111py36_0    conda-forge
scipy                     0.18.1              np111py36_0  
seaborn                   0.7.1                     <pip>
sedfitter                 0.9.7.dev0                <pip>
selenium                  3.0.2                     <pip>
setuptools                34.2.0                    <pip>
setuptools                27.2.0                   py36_0  
shapely                   1.5.17              np111py36_2    conda-forge
simplegeneric             0.8.1                    py36_1  
simplejson                3.10.0                    <pip>
singledispatch            3.4.0.3                  py36_0  
sip                       4.18                     py36_1    conda-forge
six                       1.10.0                   py36_0  
smmap2                    2.0.1                     <pip>
smopy                     0.0.6                     <pip>
snowballstemmer           1.2.1                    py36_0  
spectral-cube             0.4.0                     <pip>
specutils                 0.2.2                     <pip>
specviz                   0.3.0                     <pip>
specviz                   0.2.2rc5.dev686           <pip>
sphinx                    1.5.6                    py36_0  
sphinx-automodapi         0.2                       <pip>
sphinx_rtd_theme          0.2.4                    py36_0  
sphinxcontrib-websupport  1.0.1                     <pip>
sqlite                    3.13.0                        0  
sunpy                     0.8.dev0                  <pip>
sympy                     1.0                      py36_0  
termcolor                 1.1.0                    py36_1    conda-forge
terminado                 0.6                      py36_0  
tk                        8.5.18                        0  
toolz                     0.8.2                    py36_0    conda-forge
toolz                     0.8.2                     <pip>
tornado                   4.4.2                    py36_0  
traitlets                 4.3.1                    py36_0  
twine                     1.8.1                     <pip>
typing                    3.6.1                     <pip>
uritemplate               3.0.0                     <pip>
vega                      0.4.4                     <pip>
wcwidth                   0.1.7                    py36_0  
werkzeug                  0.11.15                  py36_0  
Werkzeug                  0.11.15                   <pip>
wheel                     0.29.0                   py36_0  
whichcraft                0.4.0                     <pip>
whichcraft                0.4.1                    py36_0    conda-forge
wordcloud                 1.3.1                     <pip>
xlrd                      1.0.0                    py36_1    conda-forge
xlrd                      1.0.0                     <pip>
xz                        5.2.2                         0  
yaml                      0.1.6                         0  
yt                        3.3.5               np111py36_2    conda-forge
zeromq                    4.1.3                         0  
zlib                      1.2.8                         3  

I don't get this in a clean environment, but this still indicates a problem since the dependencies should be defined such that this doesn't happen.

ccordoba12 commented 7 years ago

@mingwandroid, what is the fix for the missing _PySlice_AdjustIndices symbol?

jakirkham commented 7 years ago

Bump the build number to rebuild with the new Python 3.6.1 package.

ccordoba12 commented 7 years ago

That's what I thought, but I wanted to confirm with someone else.

@astrofrog, do you mind to create a PR for this?

astrofrog commented 7 years ago

I don't have any time to do this at the moment, sorry!

ccordoba12 commented 7 years ago

Will do later today then.

ccordoba12 commented 7 years ago

Done in #27.

jakirkham commented 7 years ago

Does this affect PyQt4 as well?

ccordoba12 commented 7 years ago

I don't know. Could you try it, please?

jakirkham commented 7 years ago

I had no problems running the code snippet below with python 3.6.0 or 3.6.1 on conda-forge. So I think we are ok.

>>> from PyQt4 import QtGui, QtCore, QtTest

Note: There's no QtWidgets in PyQt4, but this is as expected.