https://prefect.io logo
Title
e

Emma Rizzi

02/06/2023, 8:13 AM
Hi, we are using prefect 1.2.4 and our flows all fails building now without any change in our code. It seems the error comes from the
pip install prefect
generated automatically while building the flows :
Getting requirements to build wheel did not run successfully
error stack in thread!
Step 3/11 : RUN pip install pip --upgrade
 ---> Running in 2b9d742ff912
Requirement already satisfied: pip in /usr/local/lib/python3.10/site-packages (22.3.1)
Collecting pip
  Downloading pip-23.0-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 15.7 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.3.1
    Uninstalling pip-22.3.1:
      Successfully uninstalled pip-22.3.1
Successfully installed pip-23.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: <https://pip.pypa.io/warnings/venv>
Removing intermediate container 2b9d742ff912
 ---> fdf3f3c5dec8
Step 4/11 : RUN pip show prefect || pip install git+<https://github.com/PrefectHQ/prefect.git@1.2.4#egg=prefect[all_orchestration_extras]>
 ---> Running in f43f00c10cd4
WARNING: Package(s) not found: prefect
DEPRECATION: git+<https://github.com/PrefectHQ/prefect.git@1.2.4#egg=prefect[all_orchestration_extras]> contains an egg fragment with a non-PEP 508 name pip 25.0 will enforce this behaviour change. A possible replacement is to use the req @ url syntax, and remove the egg fragment. Discussion can be found at <https://github.com/pypa/pip/issues/11617>
Collecting prefect[all_orchestration_extras]
  Cloning <https://github.com/PrefectHQ/prefect.git> (to revision 1.2.4) to /tmp/pip-install-_y34glnk/prefect_6f91992f3c104a15b5a5237854017690
  Running command git clone --filter=blob:none --quiet <https://github.com/PrefectHQ/prefect.git> /tmp/pip-install-_y34glnk/prefect_6f91992f3c104a15b5a5237854017690
  Running command git checkout -q 16322bdc56065f1d48ddad0285cf98edfb055a85
  Resolved <https://github.com/PrefectHQ/prefect.git> to commit 16322bdc56065f1d48ddad0285cf98edfb055a85
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in prefect setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
      [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.
The command '/bin/sh -c pip show prefect || pip install git+<https://github.com/PrefectHQ/prefect.git@1.2.4#egg=prefect[all_orchestration_extras]>' returned a non-zero code: 1
my guess is some pip upgrade incompatibility but haven't digged into it yet
if anyone comes accross this thread, I solved it by upgrading to prefect 1.4.1
🙌 1
j

Jeff Cave

02/24/2023, 5:47 PM
Worked for me as well, thanks for the solution @Emma Rizzi!
😊 1