wumpus / paramsurvey

Middleware to facilitate running parameter surveys on your laptop or cluster
Apache License 2.0
1 stars 0 forks source link

Issue using paramsurvey on my machine (python 3.11) #5

Closed ptiede closed 2 months ago

ptiede commented 1 year ago

I am having an issue installing paramsurvey on my machine. I am guessing this has to do with the fact that I just had to update my system to python 3.11. When I try to pip install paramsurvey I get the following error:

> pip install --user paramsurvey
Collecting paramsurvey
  Using cached paramsurvey-0.4.18.tar.gz (159 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      /usr/lib/python3.11/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!

              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************

      !!
        dist.fetch_build_eggs(dist.setup_requires)
      error in paramsurvey setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.7.*'
      [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

This suggests the fix pip install --use-pep517 but that still fails on my machine with the error

> pip install --use-pep517 --user paramsurvey
Collecting paramsurvey
  Using cached paramsurvey-0.4.18.tar.gz (159 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in paramsurvey setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.7.*'
      [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.
Python 3.11.3
OS: EndeavourOS 
Kernel: Linux 6.3.2-arch1-1
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         48 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  32
  On-line CPU(s) list:   0-31
Vendor ID:               AuthenticAMD
  Model name:            AMD Ryzen 9 7950X 16-Core Processor
wumpus commented 1 year ago

Paul,

There's some chaos in the python world these days, but here's a recipe for installing under python 3.11:

So to dodge these 2 problems:

I would release new packages to fix this, but, setuptools-scm has been broken for a while and that causes me problems. Maybe that's fixed, I'll look again.

wumpus commented 1 year ago

Oh, man, the pandas guys removed DataFrame.append() after all &$#&^^$*#$^&

wumpus commented 1 year ago

Paul, I have pushed new versions of pandas-appender and paramsurvey to pypi which ought to fix this problem.

There is a (new) limitation of numpy<2, however.

wumpus commented 2 months ago

Paul, the latest release should keep you happy.