Closed jamasole closed 11 months ago
Dear customer,
could it be possible to have the full output of this installation try , in order to reproduce on our site ?
Thanks Alain
Dear Jamasole,
Documentation suggest this : Guidelines for installing myQLM on MacOS
It’s recommended to use the official Python distribution (without virtual environment or without anaconda) on MacOS.
Could you try again without your anaconda environment ?
Regards Alain
Here's the complete installation output message. It's done within an ad hoc created environment in Anaconda.
(myQLM) javier@Javiers-MacBook-Pro ~ % pip install myqlm Collecting myqlm Using cached myqlm-1.4.0-py3-none-any.whl (2.0 kB) Collecting myqlm-simulators>=1.4.0 Using cached myqlm_simulators-1.4.0-py3-none-any.whl (19 kB) Collecting qat-variational>=1.3.0 Using cached qat_variational-1.3.0-cp38-cp38-macosx_10_9_intel.whl (1.1 MB) Collecting qat-core>=1.4.0 Using cached qat_core-1.4.0-cp38-cp38-macosx_10_9_intel.whl (3.1 MB) Collecting qat-devices>=0.1.2 Using cached qat_devices-0.1.2-cp38-cp38-macosx_10_9_intel.whl (203 kB) Collecting qat-lang>=2.1.0 Using cached qat_lang-2.1.0-cp38-cp38-macosx_10_9_intel.whl (2.3 MB) Collecting qat-comm>=1.3.0 Using cached qat_comm-1.3.1-cp38-cp38-macosx_10_9_intel.whl (2.3 MB) Collecting numpy Using cached numpy-1.21.2-cp38-cp38-macosx_10_9_x86_64.whl (16.9 MB) Collecting thrift==0.13.0 Using cached thrift-0.13.0-py3-none-any.whl Collecting six>=1.7.2 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting dill Using cached dill-0.3.4-py2.py3-none-any.whl (86 kB) Collecting bitstring Using cached bitstring-3.1.9-py3-none-any.whl (38 kB) Collecting wand Using cached Wand-0.6.7-py2.py3-none-any.whl (139 kB) Collecting Pillow Downloading Pillow-8.4.0-cp38-cp38-macosx_10_10_x86_64.whl (3.0 MB) |████████████████████████████████| 3.0 MB 1.3 MB/s Collecting matplotlib Using cached matplotlib-3.4.3-cp38-cp38-macosx_10_9_x86_64.whl (7.2 MB) Collecting svgwrite Using cached svgwrite-1.4.1-py3-none-any.whl (66 kB) Collecting networkx Using cached networkx-2.6.3-py3-none-any.whl (1.9 MB) Collecting ply==3.11 Using cached ply-3.11-py2.py3-none-any.whl (49 kB) Collecting pyDOE Using cached pyDOE-0.3.8-py3-none-any.whl Collecting cycler>=0.10 Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB) Collecting kiwisolver>=1.0.1 Using cached kiwisolver-1.3.2-cp38-cp38-macosx_10_9_x86_64.whl (61 kB) Collecting python-dateutil>=2.7 Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) Collecting pyparsing>=2.2.1 Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB) Collecting scipy Using cached scipy-1.7.1-cp38-cp38-macosx_10_9_x86_64.whl (32.6 MB) Installing collected packages: six, thrift, python-dateutil, pyparsing, Pillow, numpy, kiwisolver, cycler, wand, svgwrite, qat-comm, matplotlib, dill, bitstring, scipy, qat-core, ply, networkx, qat-lang, pyDOE, qat-variational, qat-devices, myqlm-simulators, myqlm ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. openfermion 1.0.1 requires h5py>=2.8, which is not installed. openfermion 1.0.1 requires nbformat, which is not installed. openfermion 1.0.1 requires requests~=2.18, which is not installed. openfermion 1.0.1 requires sympy, which is not installed. google-api-core 1.26.2 requires packaging>=14.3, which is not installed. google-api-core 1.26.2 requires pytz, which is not installed. google-api-core 1.26.2 requires requests<3.0.0dev,>=2.18.0, which is not installed. cirq 0.10.0 requires pandas, which is not installed. cirq 0.10.0 requires requests~=2.18, which is not installed. cirq 0.10.0 requires sympy, which is not installed. Successfully installed Pillow-8.4.0 bitstring-3.1.9 cycler-0.10.0 dill-0.3.4 kiwisolver-1.3.2 matplotlib-3.4.3 myqlm-1.4.0 myqlm-simulators-1.4.0 networkx-2.6.3 numpy-1.21.2 ply-3.11 pyDOE-0.3.8 pyparsing-2.4.7 python-dateutil-2.8.2 qat-comm-1.3.1 qat-core-1.4.0 qat-devices-0.1.2 qat-lang-2.1.0 qat-variational-1.3.0 scipy-1.7.1 six-1.16.0 svgwrite-1.4.1 thrift-0.13.0 wand-0.6.7 (myQLM) javier@Javiers-MacBook-Pro ~ %
Preferably I would avoid installing another Python distribution as I have read there can be conflict issues with the one installed by Anaconda. So far Anaconda is working seamlessly with all the python based programs I have encountered, including of course Qiskit.
Yours
Javier
Dear Javier,
I try to reproduce without anaconda your trouble, unfortunately, I could not met the symptoms you had.
MacOSX 11.6 Python 3.8.10 pip 21.3
MacBook-Pro-Sop:~ alainmassiot$ pip -V
pip 21.3 from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip (python 3.8)
MacBook-Pro-Sop:~ alainmassiot$
MacBook-Pro-Sop:~ alainmassiot$
MacBook-Pro-Sop:~ alainmassiot$
MacBook-Pro-Sop:~ alainmassiot$ pip install jupyter
Collecting jupyter
Using cached jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting notebook
Downloading notebook-6.4.4-py3-none-any.whl (9.9 MB)
|████████████████████████████████| 9.9 MB 878 kB/s
Collecting ipykernel
Downloading ipykernel-6.4.1-py3-none-any.whl (124 kB)
|████████████████████████████████| 124 kB 9.5 MB/s
Collecting qtconsole
Downloading qtconsole-5.1.1-py3-none-any.whl (119 kB)
|████████████████████████████████| 119 kB 10.6 MB/s
Collecting ipywidgets
Downloading ipywidgets-7.6.5-py2.py3-none-any.whl (121 kB)
|████████████████████████████████| 121 kB 10.0 MB/s
Collecting jupyter-console
Downloading jupyter_console-6.4.0-py3-none-any.whl (22 kB)
Collecting nbconvert
Downloading nbconvert-6.2.0-py3-none-any.whl (553 kB)
|████████████████████████████████| 553 kB 5.8 MB/s
Collecting ipython<8.0,>=7.23.1
Downloading ipython-7.28.0-py3-none-any.whl (788 kB)
|████████████████████████████████| 788 kB 7.3 MB/s
Collecting ipython-genutils
Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting appnope
Downloading appnope-0.1.2-py2.py3-none-any.whl (4.3 kB)
Collecting debugpy<2.0,>=1.0.0
Downloading debugpy-1.5.0-cp38-cp38-macosx_10_15_x86_64.whl (1.7 MB)
|████████████████████████████████| 1.7 MB 7.9 MB/s
Collecting tornado<7.0,>=4.2
Downloading tornado-6.1-cp38-cp38-macosx_10_9_x86_64.whl (416 kB)
|████████████████████████████████| 416 kB 7.3 MB/s
Collecting jupyter-client<8.0
Downloading jupyter_client-7.0.6-py3-none-any.whl (125 kB)
|████████████████████████████████| 125 kB 6.3 MB/s
Collecting matplotlib-inline<0.2.0,>=0.1.0
Downloading matplotlib_inline-0.1.3-py3-none-any.whl (8.2 kB)
Collecting traitlets<6.0,>=4.1.0
Downloading traitlets-5.1.0-py3-none-any.whl (101 kB)
|████████████████████████████████| 101 kB 2.9 MB/s
Collecting nbformat>=4.2.0
Downloading nbformat-5.1.3-py3-none-any.whl (178 kB)
|████████████████████████████████| 178 kB 5.6 MB/s
Collecting jupyterlab-widgets>=1.0.0
Downloading jupyterlab_widgets-1.0.2-py3-none-any.whl (243 kB)
|████████████████████████████████| 243 kB 1.2 MB/s
Collecting widgetsnbextension~=3.5.0
Downloading widgetsnbextension-3.5.1-py2.py3-none-any.whl (2.2 MB)
|████████████████████████████████| 2.2 MB 5.5 MB/s
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
Downloading prompt_toolkit-3.0.20-py3-none-any.whl (370 kB)
|████████████████████████████████| 370 kB 11.7 MB/s
Collecting pygments
Downloading Pygments-2.10.0-py3-none-any.whl (1.0 MB)
|████████████████████████████████| 1.0 MB 8.6 MB/s
Collecting testpath
Downloading testpath-0.5.0-py3-none-any.whl (84 kB)
|████████████████████████████████| 84 kB 5.0 MB/s
Collecting pandocfilters>=1.4.1
Downloading pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB)
Collecting jupyter-core
Downloading jupyter_core-4.8.1-py3-none-any.whl (86 kB)
|████████████████████████████████| 86 kB 7.0 MB/s
Collecting bleach
Downloading bleach-4.1.0-py2.py3-none-any.whl (157 kB)
|████████████████████████████████| 157 kB 5.0 MB/s
Collecting entrypoints>=0.2.2
Using cached entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Collecting jinja2>=2.4
Downloading Jinja2-3.0.2-py3-none-any.whl (133 kB)
|████████████████████████████████| 133 kB 1.1 MB/s
Collecting mistune<2,>=0.8.1
Downloading mistune-0.8.4-py2.py3-none-any.whl (16 kB)
Collecting defusedxml
Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting jupyterlab-pygments
Downloading jupyterlab_pygments-0.1.2-py2.py3-none-any.whl (4.6 kB)
Collecting nbclient<0.6.0,>=0.5.0
Downloading nbclient-0.5.4-py3-none-any.whl (66 kB)
|████████████████████████████████| 66 kB 7.0 MB/s
Collecting Send2Trash>=1.5.0
Downloading Send2Trash-1.8.0-py3-none-any.whl (18 kB)
Collecting prometheus-client
Downloading prometheus_client-0.11.0-py2.py3-none-any.whl (56 kB)
|████████████████████████████████| 56 kB 3.2 MB/s
Collecting pyzmq>=17
Downloading pyzmq-22.3.0-cp38-cp38-macosx_10_9_x86_64.whl (1.3 MB)
|████████████████████████████████| 1.3 MB 5.1 MB/s
Collecting argon2-cffi
Downloading argon2_cffi-21.1.0-cp35-abi3-macosx_10_14_x86_64.whl (38 kB)
Collecting terminado>=0.8.3
Downloading terminado-0.12.1-py3-none-any.whl (15 kB)
Collecting qtpy
Downloading QtPy-1.11.2-py2.py3-none-any.whl (58 kB)
|████████████████████████████████| 58 kB 6.8 MB/s
Collecting decorator
Downloading decorator-5.1.0-py3-none-any.whl (9.1 kB)
Collecting backcall
Downloading backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting jedi>=0.16
Downloading jedi-0.18.0-py2.py3-none-any.whl (1.4 MB)
|████████████████████████████████| 1.4 MB 8.9 MB/s
Collecting pickleshare
Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Requirement already satisfied: setuptools>=18.5 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from ipython<8.0,>=7.23.1->ipykernel->jupyter) (56.0.0)
Collecting pexpect>4.3
Using cached pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.0.1-cp38-cp38-macosx_10_9_x86_64.whl (13 kB)
Collecting nest-asyncio>=1.5
Downloading nest_asyncio-1.5.1-py3-none-any.whl (5.0 kB)
Collecting python-dateutil>=2.1
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
|████████████████████████████████| 247 kB 7.6 MB/s
Collecting jsonschema!=2.5.0,>=2.4
Downloading jsonschema-4.1.0-py3-none-any.whl (69 kB)
|████████████████████████████████| 69 kB 5.7 MB/s
Collecting wcwidth
Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting ptyprocess
Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting cffi>=1.0.0
Downloading cffi-1.15.0-cp38-cp38-macosx_10_9_x86_64.whl (178 kB)
|████████████████████████████████| 178 kB 4.6 MB/s
Collecting six>=1.9.0
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting webencodings
Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting packaging
Downloading packaging-21.0-py3-none-any.whl (40 kB)
|████████████████████████████████| 40 kB 4.6 MB/s
Collecting pycparser
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
|████████████████████████████████| 112 kB 9.0 MB/s
Collecting parso<0.9.0,>=0.8.0
Downloading parso-0.8.2-py2.py3-none-any.whl (94 kB)
|████████████████████████████████| 94 kB 5.5 MB/s
Collecting attrs>=17.4.0
Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB)
|████████████████████████████████| 53 kB 1.8 MB/s
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
Downloading pyrsistent-0.18.0-cp38-cp38-macosx_10_9_x86_64.whl (68 kB)
|████████████████████████████████| 68 kB 8.5 MB/s
Collecting pyparsing>=2.0.2
Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Installing collected packages: traitlets, six, pyrsistent, attrs, wcwidth, tornado, pyzmq, python-dateutil, pyparsing, ptyprocess, parso, nest-asyncio, jupyter-core, jsonschema, ipython-genutils, entrypoints, webencodings, pygments, pycparser, prompt-toolkit, pickleshare, pexpect, packaging, nbformat, matplotlib-inline, MarkupSafe, jupyter-client, jedi, decorator, backcall, appnope, testpath, pandocfilters, nbclient, mistune, jupyterlab-pygments, jinja2, ipython, defusedxml, debugpy, cffi, bleach, terminado, Send2Trash, prometheus-client, nbconvert, ipykernel, argon2-cffi, notebook, widgetsnbextension, qtpy, jupyterlab-widgets, qtconsole, jupyter-console, ipywidgets, jupyter
Successfully installed MarkupSafe-2.0.1 Send2Trash-1.8.0 appnope-0.1.2 argon2-cffi-21.1.0 attrs-21.2.0 backcall-0.2.0 bleach-4.1.0 cffi-1.15.0 debugpy-1.5.0 decorator-5.1.0 defusedxml-0.7.1 entrypoints-0.3 ipykernel-6.4.1 ipython-7.28.0 ipython-genutils-0.2.0 ipywidgets-7.6.5 jedi-0.18.0 jinja2-3.0.2 jsonschema-4.1.0 jupyter-1.0.0 jupyter-client-7.0.6 jupyter-console-6.4.0 jupyter-core-4.8.1 jupyterlab-pygments-0.1.2 jupyterlab-widgets-1.0.2 matplotlib-inline-0.1.3 mistune-0.8.4 nbclient-0.5.4 nbconvert-6.2.0 nbformat-5.1.3 nest-asyncio-1.5.1 notebook-6.4.4 packaging-21.0 pandocfilters-1.5.0 parso-0.8.2 pexpect-4.8.0 pickleshare-0.7.5 prometheus-client-0.11.0 prompt-toolkit-3.0.20 ptyprocess-0.7.0 pycparser-2.20 pygments-2.10.0 pyparsing-2.4.7 pyrsistent-0.18.0 python-dateutil-2.8.2 pyzmq-22.3.0 qtconsole-5.1.1 qtpy-1.11.2 six-1.16.0 terminado-0.12.1 testpath-0.5.0 tornado-6.1 traitlets-5.1.0 wcwidth-0.2.5 webencodings-0.5.1 widgetsnbextension-3.5.1
MacBook-Pro-Sop:~ alainmassiot$ pip install myqlm
Collecting myqlm
Downloading myqlm-1.4.0-py3-none-any.whl (2.0 kB)
Collecting qat-lang>=2.1.0
Downloading qat_lang-2.1.0-cp38-cp38-macosx_10_9_intel.whl (2.3 MB)
|████████████████████████████████| 2.3 MB 920 kB/s
Collecting myqlm-simulators>=1.4.0
Downloading myqlm_simulators-1.4.0-py3-none-any.whl (19 kB)
Collecting qat-core>=1.4.0
Downloading qat_core-1.4.0-cp38-cp38-macosx_10_9_intel.whl (3.1 MB)
|████████████████████████████████| 3.1 MB 2.3 MB/s
Collecting qat-devices>=0.1.2
Downloading qat_devices-0.1.2-cp38-cp38-macosx_10_9_intel.whl (203 kB)
|████████████████████████████████| 203 kB 9.6 MB/s
Collecting qat-variational>=1.3.0
Downloading qat_variational-1.3.0-cp38-cp38-macosx_10_9_intel.whl (1.1 MB)
|████████████████████████████████| 1.1 MB 8.5 MB/s
Collecting qat-comm>=1.3.0
Downloading qat_comm-1.3.1-cp38-cp38-macosx_10_9_intel.whl (2.3 MB)
|████████████████████████████████| 2.3 MB 7.3 MB/s
Collecting numpy
Downloading numpy-1.21.2-cp38-cp38-macosx_10_9_x86_64.whl (16.9 MB)
|████████████████████████████████| 16.9 MB 6.5 MB/s
Collecting thrift==0.13.0
Downloading thrift-0.13.0.tar.gz (59 kB)
|████████████████████████████████| 59 kB 7.0 MB/s
Preparing metadata (setup.py) ... done
Requirement already satisfied: six>=1.7.2 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from thrift==0.13.0->qat-comm>=1.3.0->myqlm) (1.16.0)
Collecting bitstring
Downloading bitstring-3.1.9-py3-none-any.whl (38 kB)
Collecting wand
Downloading Wand-0.6.7-py2.py3-none-any.whl (139 kB)
|████████████████████████████████| 139 kB 9.1 MB/s
Collecting matplotlib
Downloading matplotlib-3.4.3-cp38-cp38-macosx_10_9_x86_64.whl (7.2 MB)
|████████████████████████████████| 7.2 MB 10.4 MB/s
Collecting Pillow
Downloading Pillow-8.4.0-cp38-cp38-macosx_10_10_x86_64.whl (3.0 MB)
|████████████████████████████████| 3.0 MB 8.5 MB/s
Collecting svgwrite
Downloading svgwrite-1.4.1-py3-none-any.whl (66 kB)
|████████████████████████████████| 66 kB 7.2 MB/s
Collecting dill
Downloading dill-0.3.4-py2.py3-none-any.whl (86 kB)
|████████████████████████████████| 86 kB 2.8 MB/s
Collecting networkx
Downloading networkx-2.6.3-py3-none-any.whl (1.9 MB)
|████████████████████████████████| 1.9 MB 13.4 MB/s
Collecting ply==3.11
Downloading ply-3.11-py2.py3-none-any.whl (49 kB)
|████████████████████████████████| 49 kB 2.3 MB/s
Collecting pyDOE
Downloading pyDOE-0.3.8.zip (22 kB)
Preparing metadata (setup.py) ... done
Collecting kiwisolver>=1.0.1
Downloading kiwisolver-1.3.2-cp38-cp38-macosx_10_9_x86_64.whl (61 kB)
|████████████████████████████████| 61 kB 552 kB/s
Requirement already satisfied: pyparsing>=2.2.1 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from matplotlib->qat-core>=1.4.0->myqlm) (2.4.7)
Requirement already satisfied: python-dateutil>=2.7 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from matplotlib->qat-core>=1.4.0->myqlm) (2.8.2)
Collecting cycler>=0.10
Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting scipy
Downloading scipy-1.7.1-cp38-cp38-macosx_10_9_x86_64.whl (32.6 MB)
|████████████████████████████████| 32.6 MB 1.4 MB/s
Building wheels for collected packages: thrift, pyDOE
Building wheel for thrift (setup.py) ... done
Created wheel for thrift: filename=thrift-0.13.0-cp38-cp38-macosx_10_9_x86_64.whl size=177156 sha256=577d156fd382ed7f20c3e139a1e944b434cb5a8737c5e0629e2c16cca1efbd28
Stored in directory: /Users/alainmassiot/Library/Caches/pip/wheels/0a/52/7e/8054b57725b8f2b9ddbaacb81b271b939681cc03f8231e6ebc
Building wheel for pyDOE (setup.py) ... done
Created wheel for pyDOE: filename=pyDOE-0.3.8-py3-none-any.whl size=18177 sha256=a47fe6c15b40ffa3528cf917d406eb0351a27f8867a7dd6b6464109fba5871e7
Stored in directory: /Users/alainmassiot/Library/Caches/pip/wheels/00/3e/fa/5705bf59c2053c17c4799c3ab66a2e356c32f40a3044fe2134
Successfully built thrift pyDOE
Installing collected packages: thrift, Pillow, numpy, kiwisolver, cycler, wand, svgwrite, qat-comm, matplotlib, dill, bitstring, scipy, qat-core, ply, networkx, qat-lang, pyDOE, qat-variational, qat-devices, myqlm-simulators, myqlm
Successfully installed Pillow-8.4.0 bitstring-3.1.9 cycler-0.10.0 dill-0.3.4 kiwisolver-1.3.2 matplotlib-3.4.3 myqlm-1.4.0 myqlm-simulators-1.4.0 networkx-2.6.3 numpy-1.21.2 ply-3.11 pyDOE-0.3.8 qat-comm-1.3.1 qat-core-1.4.0 qat-devices-0.1.2 qat-lang-2.1.0 qat-variational-1.3.0 scipy-1.7.1 svgwrite-1.4.1 thrift-0.13.0 wand-0.6.7
Could it be possible for you to retry without anaconda ?
Regards
Alain
I'm used to use python within Anaconda. Adding another distribution will force me to mess around with the bash paths, which I'm not skilled enough to do. Whenever this is solved for myQLM I'll be happy to give it a try.
Hi Javier,
could you give me anaconda release you use ? and venv file you are sourcing in order for us to be in exactly same configuration ?
Thanks Regards Alain
Sure Alain, I'm using version 1.10.0 and I created an environement only for hosting myQLM. It has python 3.8 and as for the venv I'm not sure, there is a folder with that name, and the init.py file starts as follows
""" Virtual environment (venv) package for Python. Based on PEP 405. Copyright (C) 2011-2014 Vinay Sajip. Licensed to the PSF under a contributor agreement. """
Dear Javier,
It works for me, here are the different steps I ran :
MacBook-Pro-Sop:~ alainmassiot$ /usr/local/anaconda3/bin/conda create -n myqlm python=3.8 Collecting package metadata (current_repodata.json): done Solving environment: done
==> WARNING: A newer version of conda exists. <== current version: 4.10.1 latest version: 4.10.3
Please update conda by running
$ conda update -n base -c defaults conda
environment location: /usr/local/anaconda3/envs/myqlm
added / updated specs:
The following packages will be downloaded:
package | build
---------------------------|-----------------
ca-certificates-2021.9.30 | hecd8cb5_1 116 KB
certifi-2021.10.8 | py38hecd8cb5_0 151 KB
libcxx-12.0.0 | h2f01273_0 805 KB
openssl-1.1.1l | h9ed2024_0 2.2 MB
pip-21.2.4 | py38hecd8cb5_0 1.8 MB
python-3.8.12 | h88f2d9e_0 10.3 MB
setuptools-58.0.4 | py38hecd8cb5_0 791 KB
sqlite-3.36.0 | hce871da_0 1.1 MB
tk-8.6.11 | h7bc2e8c_0 3.0 MB
wheel-0.37.0 | pyhd3eb1b0_1 33 KB
------------------------------------------------------------
Total: 20.3 MB
The following NEW packages will be INSTALLED:
ca-certificates pkgs/main/osx-64::ca-certificates-2021.9.30-hecd8cb5_1 certifi pkgs/main/osx-64::certifi-2021.10.8-py38hecd8cb5_0 libcxx pkgs/main/osx-64::libcxx-12.0.0-h2f01273_0 libffi pkgs/main/osx-64::libffi-3.3-hb1e8313_2 ncurses pkgs/main/osx-64::ncurses-6.2-h0a44026_1 openssl pkgs/main/osx-64::openssl-1.1.1l-h9ed2024_0 pip pkgs/main/osx-64::pip-21.2.4-py38hecd8cb5_0 python pkgs/main/osx-64::python-3.8.12-h88f2d9e_0 readline pkgs/main/osx-64::readline-8.1-h9ed2024_0 setuptools pkgs/main/osx-64::setuptools-58.0.4-py38hecd8cb5_0 sqlite pkgs/main/osx-64::sqlite-3.36.0-hce871da_0 tk pkgs/main/osx-64::tk-8.6.11-h7bc2e8c_0 wheel pkgs/main/noarch::wheel-0.37.0-pyhd3eb1b0_1 xz pkgs/main/osx-64::xz-5.2.5-h1de35cc_0 zlib pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3
Proceed ([y]/n)? y
Downloading and Extracting Packages sqlite-3.36.0 | 1.1 MB | ##################################### | 100% pip-21.2.4 | 1.8 MB | ##################################### | 100% wheel-0.37.0 | 33 KB | ##################################### | 100% tk-8.6.11 | 3.0 MB | ##################################### | 100% python-3.8.12 | 10.3 MB | ##################################### | 100% setuptools-58.0.4 | 791 KB | ########9 | 24% setuptools-58.0.4 | 791 KB | ##################################### | 100% ca-certificates-2021 | 116 KB | ##################################### | 100% certifi-2021.10.8 | 151 KB | ##################################### | 100% libcxx-12.0.0 | 805 KB | ##################################### | 100% openssl-1.1.1l | 2.2 MB | ##################################### | 100% Preparing transaction: done Verifying transaction: - WARNING conda.core.path_actions:verify(962): Unable to create environments file. Path not writable. environment location: /Users/alainmassiot/.conda/environments.txt
done Executing transaction: \ WARNING conda.core.envs_manager:register_env(50): Unable to register environment. Path not writable or missing. environment location: /usr/local/anaconda3/envs/myqlm registry file: /Users/alainmassiot/.conda/environments.txt done #
#
#
#
/usr/local/anaconda3/bin/conda activate myqlm
(base) MacBook-Pro-Sop:~ alainmassiot$ conda init bash no change /usr/local/anaconda3/condabin/conda no change /usr/local/anaconda3/bin/conda no change /usr/local/anaconda3/bin/conda-env no change /usr/local/anaconda3/bin/activate no change /usr/local/anaconda3/bin/deactivate no change /usr/local/anaconda3/etc/profile.d/conda.sh no change /usr/local/anaconda3/etc/fish/conf.d/conda.fish no change /usr/local/anaconda3/shell/condabin/Conda.psm1 no change /usr/local/anaconda3/shell/condabin/conda-hook.ps1 no change /usr/local/anaconda3/lib/python3.8/site-packages/xontrib/conda.xsh no change /usr/local/anaconda3/etc/profile.d/conda.csh no change /Users/alainmassiot/.bash_profile No action taken.
(base) MacBook-Pro-Sop:~ alainmassiot$ conda activate myqlm
(myqlm) MacBook-Pro-Sop:~ alainmassiot$ pip install jupyter
Collecting jupyter Using cached jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB) Collecting ipykernel Downloading ipykernel-6.4.2-py3-none-any.whl (124 kB) |████████████████████████████████| 124 kB 367 kB/s Collecting ipywidgets Using cached ipywidgets-7.6.5-py2.py3-none-any.whl (121 kB) Collecting jupyter-console Using cached jupyter_console-6.4.0-py3-none-any.whl (22 kB) Collecting notebook Downloading notebook-6.4.5-py3-none-any.whl (9.9 MB) |████████████████████████████████| 9.9 MB 3.7 MB/s Collecting qtconsole Using cached qtconsole-5.1.1-py3-none-any.whl (119 kB) Collecting nbconvert Using cached nbconvert-6.2.0-py3-none-any.whl (553 kB) Collecting appnope Using cached appnope-0.1.2-py2.py3-none-any.whl (4.3 kB) Collecting traitlets<6.0,>=4.1.0 Using cached traitlets-5.1.0-py3-none-any.whl (101 kB) Collecting matplotlib-inline<0.2.0,>=0.1.0 Using cached matplotlib_inline-0.1.3-py3-none-any.whl (8.2 kB) Collecting ipython<8.0,>=7.23.1 Using cached ipython-7.28.0-py3-none-any.whl (788 kB) Collecting jupyter-client<8.0 Using cached jupyter_client-7.0.6-py3-none-any.whl (125 kB) Collecting tornado<7.0,>=4.2 Using cached tornado-6.1-cp38-cp38-macosx_10_9_x86_64.whl (416 kB) Collecting debugpy<2.0,>=1.0.0 Downloading debugpy-1.5.1-cp38-cp38-macosx_10_15_x86_64.whl (1.7 MB) |████████████████████████████████| 1.7 MB 5.3 MB/s Collecting ipython-genutils Using cached ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB) Collecting pickleshare Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB) Collecting pexpect>4.3 Using cached pexpect-4.8.0-py2.py3-none-any.whl (59 kB) Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 Using cached prompt_toolkit-3.0.20-py3-none-any.whl (370 kB) Collecting jedi>=0.16 Using cached jedi-0.18.0-py2.py3-none-any.whl (1.4 MB) Requirement already satisfied: setuptools>=18.5 in /usr/local/anaconda3/envs/myqlm/lib/python3.8/site-packages (from ipython<8.0,>=7.23.1->ipykernel->jupyter) (58.0.4) Collecting backcall Using cached backcall-0.2.0-py2.py3-none-any.whl (11 kB) Collecting pygments Using cached Pygments-2.10.0-py3-none-any.whl (1.0 MB) Collecting decorator Using cached decorator-5.1.0-py3-none-any.whl (9.1 kB) Collecting parso<0.9.0,>=0.8.0 Using cached parso-0.8.2-py2.py3-none-any.whl (94 kB) Collecting entrypoints Using cached entrypoints-0.3-py2.py3-none-any.whl (11 kB) Collecting python-dateutil>=2.1 Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) Collecting jupyter-core>=4.6.0 Using cached jupyter_core-4.8.1-py3-none-any.whl (86 kB) Collecting pyzmq>=13 Using cached pyzmq-22.3.0-cp38-cp38-macosx_10_9_x86_64.whl (1.3 MB) Collecting nest-asyncio>=1.5 Using cached nest_asyncio-1.5.1-py3-none-any.whl (5.0 kB) Collecting ptyprocess>=0.5 Using cached ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB) Collecting wcwidth Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB) Collecting six>=1.5 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting jupyterlab-widgets>=1.0.0 Using cached jupyterlab_widgets-1.0.2-py3-none-any.whl (243 kB) Collecting nbformat>=4.2.0 Using cached nbformat-5.1.3-py3-none-any.whl (178 kB) Collecting widgetsnbextension~=3.5.0 Using cached widgetsnbextension-3.5.1-py2.py3-none-any.whl (2.2 MB) Collecting jsonschema!=2.5.0,>=2.4 Downloading jsonschema-4.1.2-py3-none-any.whl (69 kB) |████████████████████████████████| 69 kB 252 kB/s Collecting attrs>=17.4.0 Using cached attrs-21.2.0-py2.py3-none-any.whl (53 kB) Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 Using cached pyrsistent-0.18.0-cp38-cp38-macosx_10_9_x86_64.whl (68 kB) Collecting terminado>=0.8.3 Using cached terminado-0.12.1-py3-none-any.whl (15 kB) Collecting argon2-cffi Using cached argon2_cffi-21.1.0-cp35-abi3-macosx_10_14_x86_64.whl (38 kB) Collecting prometheus-client Using cached prometheus_client-0.11.0-py2.py3-none-any.whl (56 kB) Collecting Send2Trash>=1.5.0 Using cached Send2Trash-1.8.0-py3-none-any.whl (18 kB) Collecting jinja2 Using cached Jinja2-3.0.2-py3-none-any.whl (133 kB) Collecting cffi>=1.0.0 Using cached cffi-1.15.0-cp38-cp38-macosx_10_9_x86_64.whl (178 kB) Collecting pycparser Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB) Collecting MarkupSafe>=2.0 Using cached MarkupSafe-2.0.1-cp38-cp38-macosx_10_9_x86_64.whl (13 kB) Collecting nbclient<0.6.0,>=0.5.0 Using cached nbclient-0.5.4-py3-none-any.whl (66 kB) Collecting jupyterlab-pygments Using cached jupyterlab_pygments-0.1.2-py2.py3-none-any.whl (4.6 kB) Collecting mistune<2,>=0.8.1 Using cached mistune-0.8.4-py2.py3-none-any.whl (16 kB) Collecting bleach Using cached bleach-4.1.0-py2.py3-none-any.whl (157 kB) Collecting testpath Using cached testpath-0.5.0-py3-none-any.whl (84 kB) Collecting defusedxml Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB) Collecting pandocfilters>=1.4.1 Using cached pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB) Collecting webencodings Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB) Collecting packaging Using cached packaging-21.0-py3-none-any.whl (40 kB) Collecting pyparsing>=2.0.2 Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB) Collecting qtpy Using cached QtPy-1.11.2-py2.py3-none-any.whl (58 kB) Installing collected packages: traitlets, six, pyrsistent, attrs, wcwidth, tornado, pyzmq, python-dateutil, pyparsing, ptyprocess, parso, nest-asyncio, jupyter-core, jsonschema, ipython-genutils, entrypoints, webencodings, pygments, pycparser, prompt-toolkit, pickleshare, pexpect, packaging, nbformat, matplotlib-inline, MarkupSafe, jupyter-client, jedi, decorator, backcall, appnope, testpath, pandocfilters, nbclient, mistune, jupyterlab-pygments, jinja2, ipython, defusedxml, debugpy, cffi, bleach, terminado, Send2Trash, prometheus-client, nbconvert, ipykernel, argon2-cffi, notebook, widgetsnbextension, qtpy, jupyterlab-widgets, qtconsole, jupyter-console, ipywidgets, jupyter Successfully installed MarkupSafe-2.0.1 Send2Trash-1.8.0 appnope-0.1.2 argon2-cffi-21.1.0 attrs-21.2.0 backcall-0.2.0 bleach-4.1.0 cffi-1.15.0 debugpy-1.5.1 decorator-5.1.0 defusedxml-0.7.1 entrypoints-0.3 ipykernel-6.4.2 ipython-7.28.0 ipython-genutils-0.2.0 ipywidgets-7.6.5 jedi-0.18.0 jinja2-3.0.2 jsonschema-4.1.2 jupyter-1.0.0 jupyter-client-7.0.6 jupyter-console-6.4.0 jupyter-core-4.8.1 jupyterlab-pygments-0.1.2 jupyterlab-widgets-1.0.2 matplotlib-inline-0.1.3 mistune-0.8.4 nbclient-0.5.4 nbconvert-6.2.0 nbformat-5.1.3 nest-asyncio-1.5.1 notebook-6.4.5 packaging-21.0 pandocfilters-1.5.0 parso-0.8.2 pexpect-4.8.0 pickleshare-0.7.5 prometheus-client-0.11.0 prompt-toolkit-3.0.20 ptyprocess-0.7.0 pycparser-2.20 pygments-2.10.0 pyparsing-2.4.7 pyrsistent-0.18.0 python-dateutil-2.8.2 pyzmq-22.3.0 qtconsole-5.1.1 qtpy-1.11.2 six-1.16.0 terminado-0.12.1 testpath-0.5.0 tornado-6.1 traitlets-5.1.0 wcwidth-0.2.5 webencodings-0.5.1 widgetsnbextension-3.5.1 (myqlm) MacBook-Pro-Sop:~ alainmassiot$ (myqlm) MacBook-Pro-Sop:~ alainmassiot$ pip install myqlm Collecting myqlm Downloading myqlm-1.4.1-py3-none-any.whl (2.0 kB) Collecting qat-comm>=1.3.1 Downloading qat_comm-1.3.2-cp38-cp38-macosx_10_9_intel.whl (2.4 MB) |████████████████████████████████| 2.4 MB 442 kB/s Collecting qat-core>=1.4.1 Downloading qat_core-1.4.1-cp38-cp38-macosx_10_9_intel.whl (3.2 MB) |████████████████████████████████| 3.2 MB 2.7 MB/s Collecting qat-lang>=2.1.1 Downloading qat_lang-2.1.1-cp38-cp38-macosx_10_9_intel.whl (2.3 MB) |████████████████████████████████| 2.3 MB 6.1 MB/s Collecting myqlm-simulators>=1.4.0 Downloading myqlm_simulators-1.4.1-py3-none-any.whl (19 kB) Collecting qat-devices>=0.1.3 Downloading qat_devices-0.1.3-cp38-cp38-macosx_10_9_intel.whl (224 kB) |████████████████████████████████| 224 kB 1.1 MB/s Collecting qat-variational>=1.3.1 Downloading qat_variational-1.3.1-cp38-cp38-macosx_10_9_intel.whl (1.2 MB) |████████████████████████████████| 1.2 MB 43 kB/s Collecting numpy Downloading numpy-1.21.3-cp38-cp38-macosx_10_9_x86_64.whl (16.9 MB) |████████████████████████████████| 16.9 MB 176 kB/s Collecting thrift==0.13.0 Using cached thrift-0.13.0-cp38-cp38-macosx_10_9_x86_64.whl Requirement already satisfied: six>=1.7.2 in /usr/local/anaconda3/envs/myqlm/lib/python3.8/site-packages (from thrift==0.13.0->qat-comm>=1.3.1->myqlm) (1.16.0) Collecting bitstring Using cached bitstring-3.1.9-py3-none-any.whl (38 kB) Collecting svgwrite Using cached svgwrite-1.4.1-py3-none-any.whl (66 kB) Collecting matplotlib Using cached matplotlib-3.4.3-cp38-cp38-macosx_10_9_x86_64.whl (7.2 MB) Collecting Pillow Using cached Pillow-8.4.0-cp38-cp38-macosx_10_10_x86_64.whl (3.0 MB) Collecting wand Using cached Wand-0.6.7-py2.py3-none-any.whl (139 kB) Collecting dill Using cached dill-0.3.4-py2.py3-none-any.whl (86 kB) Collecting networkx Using cached networkx-2.6.3-py3-none-any.whl (1.9 MB) Collecting ply==3.11 Using cached ply-3.11-py2.py3-none-any.whl (49 kB) Collecting pyDOE Using cached pyDOE-0.3.8-py3-none-any.whl Collecting kiwisolver>=1.0.1 Using cached kiwisolver-1.3.2-cp38-cp38-macosx_10_9_x86_64.whl (61 kB) Collecting cycler>=0.10 Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB) Requirement already satisfied: python-dateutil>=2.7 in /usr/local/anaconda3/envs/myqlm/lib/python3.8/site-packages (from matplotlib->qat-core>=1.4.1->myqlm) (2.8.2) Requirement already satisfied: pyparsing>=2.2.1 in /usr/local/anaconda3/envs/myqlm/lib/python3.8/site-packages (from matplotlib->qat-core>=1.4.1->myqlm) (2.4.7) Collecting scipy Using cached scipy-1.7.1-cp38-cp38-macosx_10_9_x86_64.whl (32.6 MB) Installing collected packages: thrift, Pillow, numpy, kiwisolver, cycler, wand, svgwrite, qat-comm, matplotlib, dill, bitstring, scipy, qat-core, ply, networkx, qat-lang, pyDOE, qat-variational, qat-devices, myqlm-simulators, myqlm Successfully installed Pillow-8.4.0 bitstring-3.1.9 cycler-0.10.0 dill-0.3.4 kiwisolver-1.3.2 matplotlib-3.4.3 myqlm-1.4.1 myqlm-simulators-1.4.1 networkx-2.6.3 numpy-1.21.3 ply-3.11 pyDOE-0.3.8 qat-comm-1.3.2 qat-core-1.4.1 qat-devices-0.1.3 qat-lang-2.1.1 qat-variational-1.3.1 scipy-1.7.1 svgwrite-1.4.1 thrift-0.13.0 wand-0.6.7
Regards
Alain
I seem to have an install that did not give any error message. However the first call in a ipython cell gives the message below.
ImportError Traceback (most recent call last)
/var/folders/2d/f73d4k_56xz544p02ybrx7h00000gn/T/ipykernel_76965/1360301489.py in
ImportError: dlopen(/Users/javier/opt/anaconda3/envs/myQLM/lib/python3.8/site-packages/qat/init.so, 2): Library not loaded: @rpath/lib/libpython3.8.dylib Referenced from: /Users/javier/opt/anaconda3/envs/myQLM/lib/python3.8/site-packages/qat/init.so Reason: image not found
I have checked and the init.so is indeed in the folder.
I get something similar where pip
installing myqlm gives a segmentation fault under OSX and Python 3.9.6
from conda.
In [2]: from qat.lang.AQASM import Program, H, CNOT
zsh: segmentation fault ipython
Same thing happens under myqlm
1.5.1
I had no problems installing myqlm
in an anaconda environment, but I run into the same problem with not finding libpython3.8.dylib
, either when running python -m qat.magics.install
or trying to load any of the qat
libraries:
Error while finding module specification for 'qat.magics.install' (ImportError: dlopen(/Users/alastair/opt/anaconda3/lib/python3.8/site-packages/qat/__init__.so, 0x0002): Library not loaded: '@rpath/lib/libpython3.8.dylib' Referenced from: '/Users/alastair/opt/anaconda3/lib/python3.8/site-packages/qat/__init__.so' Reason: tried: '/Library/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib' (no such file), '/opt/homebrew/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib' (no such file), '/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib' (no such file), '/Library/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib' (no such file), '/opt/homebrew/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib' (no such file), '/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib' (no such file), '/Users/alastair/opt/anaconda3/lib/lib/libpython3.8.dylib' (no such file), '/Users/alastair/opt/anaconda3/bin/../lib/lib/libpython3.8.dylib' (no such file), '/Users/alastair/opt/anaconda3/lib/lib/libpython3.8.dylib' (no such file), '/Users/alastair/opt/anaconda3/bin/../lib/lib/libpython3.8.dylib' (no such file), '/usr/local/lib/libpython3.8.dylib' (no such file), '/usr/lib/libpython3.8.dylib' (no such file))
The issue seems to be that myqlm is searching for libpython in ~/opt/anaconda3/lib/lib/
rather than just ~/opt/anaconda3/lib/
That looks like a bug, but I'm not sure if its myqlm
or something with the environment at fault.
I have the same issue, also with other versions of Python (3.9, 3.10) and also with pyenv virtualenvs. It seems this issue is in an unsolved state for several months now.
Kernel is restarting after running
import qat
I installed myqml on Mac via pip. I have python 3.9.15 in conda environment.
Try Installing Latest version of myqlm 1.9.4 which supports Conda. If you are using a Conda environment or python installed using anaconda, try using conda install -c myqlm myqlm
.
Describe the bug I have installed myQLM on a dedicated environment in Anaconda. I'm using python 3.8 and pip version is 21.2.4, seemingly the latest. Upon installation I get the following error message.
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. openfermion 1.0.1 requires h5py>=2.8, which is not installed. openfermion 1.0.1 requires nbformat, which is not installed. openfermion 1.0.1 requires requests~=2.18, which is not installed. openfermion 1.0.1 requires sympy, which is not installed. google-api-core 1.26.2 requires packaging>=14.3, which is not installed. google-api-core 1.26.2 requires pytz, which is not installed. google-api-core 1.26.2 requires requests<3.0.0dev,>=2.18.0, which is not installed. cirq 0.10.0 requires pandas, which is not installed. cirq 0.10.0 requires requests~=2.18, which is not installed. cirq 0.10.0 requires sympy, which is not installed. Successfully installed Pillow-8.3.2 bitstring-3.1.9 cycler-0.10.0 dill-0.3.4 kiwisolver-1.3.2 matplotlib-3.4.3 myqlm-1.4.0 myqlm-simulators-1.4.0 networkx-2.6.3 numpy-1.21.2 ply-3.11 pyDOE-0.3.8 pyparsing-2.4.7 python-dateutil-2.8.2 qat-comm-1.3.1 qat-core-1.4.0 qat-devices-0.1.2 qat-lang-2.1.0 qat-variational-1.3.0 scipy-1.7.1 six-1.16.0 svgwrite-1.4.1 thrift-0.13.0 wand-0.6.7 (myQLM) javier@Javiers-MacBook-Pro ~ %
When I open a notebook and write "from qat.lang.AQASM import Program, H, CNOT"
I get the following import message
ImportError Traceback (most recent call last) /var/folders/rz/wkvbtxjs3f558tvm2bhy08_r0000gn/T/ipykernel_92387/1643804880.py in
----> 1 from qat.lang.AQASM import Program, H, CNOT
ImportError: dlopen(/Applications/anaconda3/envs/myQLM/lib/python3.8/site-packages/qat/init.so, 2): Library not loaded: @rpath/lib/libpython3.8.dylib Referenced from: /Applications/anaconda3/envs/myQLM/lib/python3.8/site-packages/qat/init.so Reason: image not found
I need some help as I have repeated the procedure in two computers with the same result. The Operating System is OSX 11.6
Thank you