socketteer / loom

Multiversal tree writing interface for human-AI collaboration
1.02k stars 75 forks source link

Able to install with Python 3.9 but not 3.10 on M1 Mac (virtualenv) #16

Open sidhire opened 1 year ago

sidhire commented 1 year ago

Noting this here in case it helps others. With 3.10 I had issues installing pandas.

dfischer commented 1 year ago

Did you get this error?

pip install -r requirements.txt                                        (base) 
Collecting tokenizers>=0.13.2 (from -r requirements.txt (line 1))
  Using cached tokenizers-0.13.3-cp310-cp310-macosx_12_0_arm64.whl (3.9 MB)
Collecting transformers>=4.26.1 (from -r requirements.txt (line 2))
  Obtaining dependency information for transformers>=4.26.1 from https://files.pythonhosted.org/packages/21/02/ae8e595f45b6c8edee07913892b3b41f5f5f273962ad98851dc6a564bbb9/transformers-4.31.0-py3-none-any.whl.metadata
  Using cached transformers-4.31.0-py3-none-any.whl.metadata (116 kB)
Collecting amqp==5.0.2 (from -r requirements.txt (line 3))
  Using cached amqp-5.0.2-py3-none-any.whl (46 kB)
Collecting billiard==3.6.3.0 (from -r requirements.txt (line 4))
  Using cached billiard-3.6.3.0-py3-none-any.whl (89 kB)
Collecting celery==5.0.5 (from -r requirements.txt (line 5))
  Using cached celery-5.0.5-py3-none-any.whl (392 kB)
Collecting certifi==2020.12.5 (from -r requirements.txt (line 6))
  Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Collecting chardet==4.0.0 (from -r requirements.txt (line 7))
  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting click==7.1.2 (from -r requirements.txt (line 8))
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting click-didyoumean==0.0.3 (from -r requirements.txt (line 9))
  Using cached click-didyoumean-0.0.3.tar.gz (2.6 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting click-plugins==1.1.1 (from -r requirements.txt (line 10))
  Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Collecting click-repl==0.1.6 (from -r requirements.txt (line 11))
  Using cached click_repl-0.1.6-py3-none-any.whl (4.2 kB)
Collecting dill==0.3.3 (from -r requirements.txt (line 12))
  Using cached dill-0.3.3-py2.py3-none-any.whl (81 kB)
Collecting html2text==2020.1.16 (from -r requirements.txt (line 13))
  Using cached html2text-2020.1.16-py3-none-any.whl (32 kB)
Collecting idna==2.10 (from -r requirements.txt (line 14))
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting jsonlines==2.0.0 (from -r requirements.txt (line 15))
  Using cached jsonlines-2.0.0-py3-none-any.whl (6.3 kB)
Collecting kombu==5.0.2 (from -r requirements.txt (line 16))
  Using cached kombu-5.0.2-py2.py3-none-any.whl (180 kB)
Collecting multiprocess==0.70.11.1 (from -r requirements.txt (line 17))
  Using cached multiprocess-0.70.11.1-py39-none-any.whl (126 kB)
Collecting openai>=0.27.2 (from -r requirements.txt (line 18))
  Obtaining dependency information for openai>=0.27.2 from https://files.pythonhosted.org/packages/67/78/7588a047e458cb8075a4089d721d7af5e143ff85a2388d4a28c530be0494/openai-0.27.8-py3-none-any.whl.metadata
  Using cached openai-0.27.8-py3-none-any.whl.metadata (13 kB)
Collecting pandas==1.3.3 (from -r requirements.txt (line 19))
  Using cached pandas-1.3.3.tar.gz (4.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "/Users/0x44/c0d3/loom/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/0x44/c0d3/loom/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/0x44/c0d3/loom/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/kt/sj3m1nks7g74r92yhqvdc13c0000gn/T/pip-build-env-a1d65ick/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/private/var/folders/kt/sj3m1nks7g74r92yhqvdc13c0000gn/T/pip-build-env-a1d65ick/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/kt/sj3m1nks7g74r92yhqvdc13c0000gn/T/pip-build-env-a1d65ick/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 487, in run_setup
          super(_BuildMetaLegacyBackend,
        File "/private/var/folders/kt/sj3m1nks7g74r92yhqvdc13c0000gn/T/pip-build-env-a1d65ick/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 18, in <module>
      ModuleNotFoundError: No module named 'numpy'
      [end of output]
Shmoji commented 10 months ago

also having issues with installing when it gets to pandas - no solution so far

EDIT: creating conda env in the beginning with python3.9 solved it for me:

conda create --name loom python=3.9