'when deploy django app to heroku it show this type of error what to do?
error: [Errno 2] No such file or directory: 'build/scripts-3.9/runner'
----------------------------------------
ERROR: Failed building wheel for MyProject
Running setup.py clean for MyProject
Building wheel for psycopg2 (setup.py): started
Building wheel for psycopg2 (setup.py): finished with status 'done'
Created wheel for psycopg2: filename=psycopg2-2.9.3-cp39-cp39-linux_x86_64.whl size=579697 sha256=aff6ba164506cddbb1b1b007118ccf1363be963eb13deff8c671df4c4604c5d0
Stored in directory: /tmp/pip-ephem-wheel-cache-urp59i8g/wheels/b3/a1/6e/5a0e26314b15eb96a36263b80529ce0d64382540ac7b9544a9
Successfully built comtypes iface psycopg2
Failed to build MyProject
Installing collected packages: sqlparse, pyparsing, asgiref, whitenoise, tomli, py, psycopg2, pluggy, packaging, MarkupSafe, iniconfig, Django, dj-database-url, attrs, tzdata, pywifi, pytest, MyProject, Jinja2, iface, gunicorn, django-heroku, comtypes, colorama, atomicwrites
Running setup.py install for MyProject: started
Running setup.py install for MyProject: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /app/.heroku/python/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_t5d7cl9/myproject_6028566010f545bea380a8fe2531b2ca/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_t5d7cl9/myproject_6028566010f545bea380a8fe2531b2ca/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-vwqkuw1t/install-record.txt --single-version-externally-managed --compile --install-headers /app/.heroku/python/include/python3.9/MyProject
cwd: /tmp/pip-install-_t5d7cl9/myproject_6028566010f545bea380a8fe2531b2ca/
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/pkgA
copying pkgA/modA_2.py -> build/lib/pkgA
copying pkgA/modA_1.py -> build/lib/pkgA
copying pkgA/__init__.py -> build/lib/pkgA
creating build/lib/pkgB
copying pkgB/__init__.py -> build/lib/pkgB
copying pkgB/modeB.py -> build/lib/pkgB
running build_scripts
creating build/scripts-3.9
warning: build_scripts: runner is an empty file (skipping)
error: [Errno 2] No such file or directory: 'build/scripts-3.9/runner'
----------------------------------------
ERROR: Command errored out with exit status 1: /app/.heroku/python/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_t5d7cl9/myproject_6028566010f545bea380a8fe2531b2ca/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_t5d7cl9/myproject_6028566010f545bea380a8fe2531b2ca/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-vwqkuw1t/install-record.txt --single-version-externally-managed --compile --install-headers /app/.heroku/python/include/python3.9/MyProject Check the logs for full command output.
! Push rejected, failed to compile Python app. ! Push failed
when i try to deploy my django project with postgres DB it show like this when i was using sqlite i works but in postgrase this error happening please Help
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
