MickaelRigault / ztfquery

Access ZTF data from Python
Apache License 2.0
37 stars 18 forks source link

Installation problems #44

Open steveschulze opened 3 days ago

steveschulze commented 3 days ago

Hi Mickaël,

I tried to install ztfquery with poetry in a Python 3.11 environment on a Mac M1. I get this error

[tool.poetry] section not found in /MY_PATH/ztfquery/pyproject.toml

I also tried to install it with pip, and I get this error:

Requirement already satisfied: six>=1.5 in /SOME_PATH (from python-dateutil>=2.7->matplotlib->ztfquery==1.28.0) (1.16.0)
Collecting pyogrio>=0.7.2 (from geopandas->ztffields>=0.4.3->ztfquery==1.28.0)
  Using cached pyogrio-0.10.0-cp311-cp311-macosx_12_0_arm64.whl.metadata (5.5 kB)
Collecting pyproj>=3.3.0 (from geopandas->ztffields>=0.4.3->ztfquery==1.28.0)
  Using cached pyproj-3.7.0.tar.gz (225 kB)
  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
  ╰─> [1 lines of output]
      proj executable not found. Please set the PROJ_DIR variable. For more information see: https://pyproj4.github.io/pyproj/stable/installation.html
      [end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

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

Is the current version of ztfquery working on Python 3.11. If not I would set up a 3.8 environment.

Cheers,

Steve

MickaelRigault commented 2 days ago

poetry is not supported anymore.

Did you try to: pip install ztfquery

or, if you clone (and updated the repo)

cd ztfquery (where setup.* files are) pip install .

These should work

MickaelRigault commented 2 days ago

just updated the README that was indeed out of date.