How can I install Gunicorn for python 2.7.18

I am trying to run a python app which need gunicron I tried adding package gunicorn 19.0.0 and build successful. Then I did “state install gunicorn” which gives error

Something Went Wrong
────────────────────
x Could not install dependencies
x Build error: &{Artifacts: BuildEngine:0xc0006ce740 BuildRequestID:42794eba-f368-4b67-8c1b-f4aab45bbd82 Errors:[Build failures: gunicorn Test failures: gunicorn] IsRetryable:false LogURI:https://s3.amazonaws.com/camel-builds/ActivePython/x86_64-linux-glibc-2.17/20221003T055503Z/ActivePython-2.7.18.0000-linux-x86_64-glibc-2.17-fdce6cee.log Message:One or more packages failed to build RecipeID:c5de36b8-3a6c-53e5-b30d-b030b9b8cf2c Timestamp:2022-10-03T05:55:08.000Z Type:0xc0006ce7a0}

and I check the log and it shows like this

To increase the verbosity of these log files use the ACTIVESTATE_CLI_BUILD_VERBOSE=true environment variable
Solving recipe
Recipe solved

How can I solve this and install succfuly gunicorn

my python command from terminal to run gunicorn is like this

python2 gunicorn --config gunicorn_config.py wsgi:app

and it gives me an error

/home/adssys/.cache/activestate/e87cd0cd/bin/python: can’t open file ‘gunicorn’: [Errno 2] No such file or directory

Please help
thank you

Gopijtech,

Welcome to the ActiveState Platform! A couple of things to think about:

  • Your project includes a Windows build, but I’ll assume you’re not using a Windows machine however, since Gunicorn is Unix only…
  • Try running “state pull” to refresh your local environment. This will download any new packages you added to your project, and should re-download Gunicorn.

Let me know if it successfully installs, or else provide the error message along with your operating system and version.