Metadata issue installing Psiturk into Miniconda environment on M1 MacBook Air

17 views
Skip to first unread message

Christina Fernando

unread,
Aug 17, 2022, 3:24:50 PMAug 17
to PsiTurk

Hi all,

I am trying to install Psiturk into an environment on my new laptop [$ pip install psiturk // via https://psiturk.readthedocs.io/en/stable/install.html#install] and I am running into an issue (error message below).

I’ve updated pip to 22.2.1, though the error message mentions this isn’t the issue. I installed Miniconda as the bash version via https://docs.conda.io/en/latest/miniconda.html into my home directory. It’s the MacOSX-arm64.sh version and it is updated to 4.13.0. I’ve also updated setup tools incase that would be the issue. 

 I'm running macOS Monterey version 12.2.1 and the environment name is (psiturk_wordle_py39) /Users/christinafernando/miniconda3/envs/psiturk_wordle_py39

 

Here's the full error message. I've highlighted where it starts to fail and the main error message in red:

----------

(base) christinafernando@Christinas-MacBook-Air ~ % conda env list

# conda environments:

#

base                  *  /Users/christinafernando/miniconda3

psiturk_wordle_py39      /Users/christinafernando/miniconda3/envs/psiturk_wordle_py39

                         /Users/christinafernando/opt/miniconda3


(base) christinafernando@Christinas-MacBook-Air ~ % conda activate psiturk_wordle_py39

(psiturk_wordle_py39) christinafernando@Christinas-MacBook-Air ~ % pip install psiturk

Collecting psiturk

  Using cached PsiTurk-3.3.0-py3-none-any.whl (359 kB)

Collecting markupsafe~=2.0.1

  Using cached MarkupSafe-2.0.1-cp39-cp39-macosx_10_9_universal2.whl (18 kB)

Collecting itsdangerous~=1.1.0

  Using cached itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)

Collecting requests~=2.22.0

  Using cached requests-2.22.0-py2.py3-none-any.whl (57 kB)

Collecting psutil~=5.6.3

  Using cached psutil-5.6.7.tar.gz (448 kB)

  Preparing metadata (setup.py) ... done

Collecting boto3~=1.9.179

  Using cached boto3-1.9.253-py2.py3-none-any.whl (128 kB)

Collecting pyOpenSSL~=19.0.0

  Using cached pyOpenSSL-19.0.0-py2.py3-none-any.whl (53 kB)

Collecting GitPython~=3.1.0

  Using cached GitPython-3.1.27-py3-none-any.whl (181 kB)

Collecting botocore~=1.12.179

  Using cached botocore-1.12.253-py2.py3-none-any.whl (5.7 MB)

Collecting cmd2~=0.9.14

  Using cached cmd2-0.9.25-py3-none-any.whl (106 kB)

Collecting SQLAlchemy~=1.3.5

  Using cached SQLAlchemy-1.3.24.tar.gz (6.4 MB)

  Preparing metadata (setup.py) ... done

Collecting future~=0.17.1

  Using cached future-0.17.1.tar.gz (829 kB)

  Preparing metadata (setup.py) ... done

Collecting certifi~=2019.11.28

  Using cached certifi-2019.11.28-py2.py3-none-any.whl (156 kB)

Collecting python-dotenv~=0.12.0

  Using cached python_dotenv-0.12.0-py2.py3-none-any.whl (17 kB)

Collecting pytz~=2019.1

  Using cached pytz-2019.3-py2.py3-none-any.whl (509 kB)

Collecting python-dateutil~=2.8.1

  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)

Collecting Flask-Login~=0.4.1

  Using cached Flask-Login-0.4.1.tar.gz (14 kB)

  Preparing metadata (setup.py) ... done

Collecting Flask-RESTful~=0.3.7

  Using cached Flask_RESTful-0.3.9-py2.py3-none-any.whl (25 kB)

Collecting APScheduler~=3.6.1

  Using cached APScheduler-3.6.3-py2.py3-none-any.whl (58 kB)

Collecting setproctitle~=1.1.10

  Using cached setproctitle-1.1.10.zip (34 kB)

  Preparing metadata (setup.py) ... done

Collecting Faker~=1.0.7

  Using cached Faker-1.0.8-py2.py3-none-any.whl (877 kB)

Collecting Flask~=1.1.4

  Using cached Flask-1.1.4-py2.py3-none-any.whl (94 kB)

Collecting pytest~=6.1.1

  Using cached pytest-6.1.2-py3-none-any.whl (272 kB)

Collecting user-agents~=2.0

  Using cached user_agents-2.2.0-py3-none-any.whl (9.6 kB)

Collecting fuzzywuzzy~=0.17.0

  Using cached fuzzywuzzy-0.17.0-py2.py3-none-any.whl (13 kB)

Collecting docopt~=0.6.2

  Using cached docopt-0.6.2.tar.gz (25 kB)

  Preparing metadata (setup.py) ... done

Collecting gunicorn[gevent]~=20.0.4

  Using cached gunicorn-20.0.4-py2.py3-none-any.whl (77 kB)

Collecting urllib3~=1.25.3

  Using cached urllib3-1.25.11-py2.py3-none-any.whl (127 kB)

Collecting six>=1.4.0

  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)

Collecting tzlocal>=1.2

  Using cached tzlocal-4.2-py3-none-any.whl (19 kB)

Requirement already satisfied: setuptools>=0.7 in ./miniconda3/envs/psiturk_wordle_py39/lib/python3.9/site-packages (from APScheduler~=3.6.1->psiturk) (63.3.0)

Collecting jmespath<1.0.0,>=0.7.1

  Using cached jmespath-0.10.0-py2.py3-none-any.whl (24 kB)

Collecting s3transfer<0.3.0,>=0.2.0

  Using cached s3transfer-0.2.1-py2.py3-none-any.whl (70 kB)

Collecting docutils<0.16,>=0.10

  Using cached docutils-0.15.2-py3-none-any.whl (547 kB)

Collecting attrs>=16.3.0

  Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)

Collecting colorama>=0.3.7

  Using cached colorama-0.4.5-py2.py3-none-any.whl (16 kB)

Collecting wcwidth>=0.1.7

  Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)

Collecting pyperclip>=1.6

  Using cached pyperclip-1.8.2.tar.gz (20 kB)

  Preparing metadata (setup.py) ... done

Collecting text-unidecode==1.2

  Using cached text_unidecode-1.2-py2.py3-none-any.whl (77 kB)

Collecting Jinja2<3.0,>=2.10.1

  Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)

Collecting Werkzeug<2.0,>=0.15

  Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)

Collecting click<8.0,>=5.1

  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)

Collecting aniso8601>=0.82

  Using cached aniso8601-9.0.1-py2.py3-none-any.whl (52 kB)

Collecting gitdb<5,>=4.0.1

  Using cached gitdb-4.0.9-py3-none-any.whl (63 kB)

Collecting gevent>=0.13

  Using cached gevent-21.12.0.tar.gz (6.2 MB)

  Installing build dependencies ... done

  Getting requirements to build wheel ... done

  Preparing metadata (pyproject.toml) ... error

  error: subprocess-exited-with-error

  

  × Preparing metadata (pyproject.toml) did not run successfully.

  │ exit code: 1

  ╰─> [125 lines of output]

      running dist_info

      creating /private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-modern-metadata-tho0044q/gevent.egg-info

      writing /private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-modern-metadata-tho0044q/gevent.egg-info/PKG-INFO

      writing dependency_links to /private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-modern-metadata-tho0044q/gevent.egg-info/dependency_links.txt

      writing entry points to /private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-modern-metadata-tho0044q/gevent.egg-info/entry_points.txt

      writing requirements to /private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-modern-metadata-tho0044q/gevent.egg-info/requires.txt

      writing top-level names to /private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-modern-metadata-tho0044q/gevent.egg-info/top_level.txt

      writing manifest file '/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-modern-metadata-tho0044q/gevent.egg-info/SOURCES.txt'

      reading manifest file '/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-modern-metadata-tho0044q/gevent.egg-info/SOURCES.txt'

      reading manifest template 'MANIFEST.in'

      warning: no files found matching 'changelog.rst'

      warning: no files found matching 'Makefile.ext'

      warning: no files found matching 'known_failures.py'

      warning: no files found matching '.pep8'

      no previously-included directories found matching '*/__pycache__'

      warning: no previously-included files matching '*.so' found anywhere in distribution

      warning: no previously-included files matching '*.o' found anywhere in distribution

      warning: no previously-included files matching '*.lo' found anywhere in distribution

      warning: no previously-included files matching '*.la' found anywhere in distribution

      warning: no previously-included files matching '.dirstamp' found anywhere in distribution

      warning: no previously-included files matching 'config.log' found anywhere in distribution

      warning: no previously-included files matching 'config.status' found anywhere in distribution

      warning: no previously-included files matching 'config.cache' found anywhere in distribution

      no previously-included directories found matching 'docs/_build'

      warning: no previously-included files matching '*.pyc' found anywhere in distribution

      warning: no previously-included files matching '.coverage' found under directory 'src/greentest'

      no previously-included directories found matching 'src/greentest/htmlcov'

      warning: no previously-included files matching 'stamp-h?' found under directory 'deps/c-ares'

      warning: no previously-included files matching 'ares_build.h.orig' found under directory 'deps/c-ares'

      warning: no previously-included files matching '_corecffi.c' found under directory 'src/gevent'

      warning: no previously-included files found matching 'configure-output'

      warning: no previously-included files found matching 'configure-output.txt'

      warning: no previously-included files found matching 'deps/TAGS'

      warning: no previously-included files found matching 'deps/c-ares/ares_build.h'

      warning: no previously-included files found matching 'deps/c-ares/ares_config.h'

      warning: no previously-included files found matching 'deps/c-ares/libcares.pc'

      warning: no previously-included files found matching 'deps/c-ares/libtool'

      warning: no previously-included files found matching 'deps/c-ares/Makefile'

      no previously-included directories found matching 'deps/c-ares/.deps'

      no previously-included directories found matching 'deps/c-ares/.libs'

      no previously-included directories found matching 'deps/libev/.deps'

      no previously-included directories found matching 'deps/libev/.libs'

      warning: no previously-included files matching 'Makefile' found under directory 'deps/libev'

      warning: no previously-included files matching 'libtool' found under directory 'deps/libev'

      warning: no previously-included files matching 'stamp-h?' found under directory 'deps/libev'

      warning: no previously-included files matching 'config.h' found under directory 'deps/libev'

      no previously-included directories found matching 'deps/libuv/.deps'

      no previously-included directories found matching 'deps/libuv/.libs'

      no previously-included directories found matching 'deps/libuv/src/.deps'

      no previously-included directories found matching 'deps/libuv/src/unix/.deps'

      no previously-included directories found matching 'deps/libuv/src/win/.deps'

      no previously-included directories found matching 'deps/libuv/test/.deps'

      no previously-included directories found matching 'deps/libuv/autom4te.cache'

      no previously-included directories found matching 'deps/libuv/m4'

      warning: no previously-included files matching 'Makefile' found under directory 'deps/libuv'

      warning: no previously-included files matching 'Makefile.in' found under directory 'deps/libuv'

      warning: no previously-included files matching 'ar-lib' found under directory 'deps/libuv'

      warning: no previously-included files matching 'aclocal.m4' found under directory 'deps/libuv'

      warning: no previously-included files matching 'compile' found under directory 'deps/libuv'

      warning: no previously-included files matching 'configure' found under directory 'deps/libuv'

      warning: no previously-included files matching 'depcomp' found under directory 'deps/libuv'

      warning: no previously-included files matching 'install-sh' found under directory 'deps/libuv'

      warning: no previously-included files matching 'libtool' found under directory 'deps/libuv'

      warning: no previously-included files matching 'libuv.pc' found under directory 'deps/libuv'

      warning: no previously-included files matching 'ltmain.sh' found under directory 'deps/libuv'

      warning: no previously-included files matching 'missing' found under directory 'deps/libuv'

      adding license file 'LICENSE'

      adding license file 'NOTICE'

      adding license file 'AUTHORS'

      writing manifest file '/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-modern-metadata-tho0044q/gevent.egg-info/SOURCES.txt'

      creating '/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-modern-metadata-tho0044q/gevent-21.12.0.dist-info'

      Traceback (most recent call last):

        File "/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>

          main()

        File "/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main

          json_out['return_val'] = hook(**hook_input['kwargs'])

        File "/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel

          return hook(metadata_directory, config_settings)

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel

          self.run_setup()

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 482, in run_setup

          super(_BuildMetaLegacyBackend,

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 335, in run_setup

          exec(code, locals())

        File "<string>", line 481, in <module>

        File "<string>", line 348, in run_setup

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup

          return distutils.core.setup(**attrs)

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup

          return run_commands(dist)

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands

          dist.run_commands()

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_commands

          self.run_command(cmd)

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command

          super().run_command(command)

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 992, in run_command

          cmd_obj.run()

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/command/dist_info.py", line 101, in run

          bdist_wheel = self.get_finalized_command('bdist_wheel')

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 305, in get_finalized_command

          cmd_obj = self.distribution.get_command_obj(command, create)

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 864, in get_command_obj

          klass = self.get_command_class(command)

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 954, in get_command_class

          self.cmdclass[command] = cmdclass = ep.load()

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/setuptools/_vendor/importlib_metadata/__init__.py", line 194, in load

          module = import_module(match.group('module'))

        File "/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/python3.9/importlib/__init__.py", line 127, in import_module

          return _bootstrap._gcd_import(name[level:], package, level)

        File "<frozen importlib._bootstrap>", line 1030, in _gcd_import

        File "<frozen importlib._bootstrap>", line 1007, in _find_and_load

        File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked

        File "<frozen importlib._bootstrap>", line 680, in _load_unlocked

        File "<frozen importlib._bootstrap_external>", line 850, in exec_module

        File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 26, in <module>

          from .macosx_libfile import calculate_macosx_platform_tag

        File "/private/var/folders/9g/1l0wwl6j08j9lc5c8mmvlxvr0000gn/T/pip-build-env-gq4_kq5e/overlay/lib/python3.9/site-packages/wheel/macosx_libfile.py", line 41, in <module>

          import ctypes

        File "/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/python3.9/ctypes/__init__.py", line 8, in <module>

          from _ctypes import Union, Structure, Array

      ImportError: dlopen(/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/python3.9/lib-dynload/_ctypes.cpython-39-darwin.so, 0x0002): Library not loaded: @rpath/libffi.7.dylib

        Referenced from: /Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/python3.9/lib-dynload/_ctypes.cpython-39-darwin.so

        Reason: tried: '/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/libffi.7.dylib' (no such file), '/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/libffi.7.dylib' (no such file), '/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/python3.9/lib-dynload/../../libffi.7.dylib' (no such file), '/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/libffi.7.dylib' (no such file), '/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/libffi.7.dylib' (no such file), '/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/python3.9/lib-dynload/../../libffi.7.dylib' (no such file), '/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/libffi.7.dylib' (no such file), '/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/bin/../lib/libffi.7.dylib' (no such file), '/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/lib/libffi.7.dylib' (no such file), '/Users/christinafernando/miniconda3/envs/psiturk_wordle_py39/bin/../lib/libffi.7.dylib' (no such file), '/usr/local/lib/libffi.7.dylib' (no such file), '/usr/lib/libffi.7.dylib' (no such file)

      [end of output]

  

  note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed


× Encountered error while generating package metadata.

╰─> See above for output.


note: This is an issue with the package mentioned above, not pip.

hint: See above for details.

--------

I've also posted this on Stack Overflow with a neater code block if that helps: https://stackoverflow.com/questions/73200549/error-message-when-trying-to-install-psiturk-into-miniconda-environment-m1-chip 

Any thoughts? Let me know if you require any further information. 

Reply all
Reply to author
Forward
0 new messages