sei-ec-remote / project-4-issues

Open an issue to receive help on project 4
0 stars 0 forks source link

backend deployment #142

Closed tzou2024 closed 2 years ago

tzou2024 commented 2 years ago

What stack are you using?

(ex: MERN(mongoose + react), DR(django + react), PEN, etc.)

DR

What's the problem you're trying to solve?

my backend won't deeply, I tried casey's fix bit it didn't work

Post any code you think might be relevant (one fenced block per file)

Enumerating objects: 279, done.
Counting objects: 100% (279/279), done.
Delta compression using up to 12 threads
Compressing objects: 100% (274/274), done.
Writing objects: 100% (279/279), 1.17 MiB | 1.94 MiB/s, done.
Total 279 (delta 63), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-20 stack
remote: -----> Determining which buildpack to use for this app
remote: -----> Python app detected
remote: -----> No Python version was specified. Using the buildpack default: python-3.10.6
remote:        To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing python-3.10.6
remote: -----> Installing pip 22.2.2, setuptools 63.4.3 and wheel 0.37.1
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        Collecting asgiref==3.5.2
remote:          Downloading asgiref-3.5.2-py3-none-any.whl (22 kB)
remote:        Collecting backports.zoneinfo==0.2.1
remote:          Downloading backports.zoneinfo-0.2.1.tar.gz (74 kB)
remote:          Installing build dependencies: started
remote:          Installing build dependencies: finished with status 'done'
remote:          Getting requirements to build wheel: started
remote:          Getting requirements to build wheel: finished with status 'done'
remote:          Preparing metadata (pyproject.toml): started
remote:          Preparing metadata (pyproject.toml): finished with status 'done'
remote:        Collecting dj-database-url==1.0.0
remote:          Downloading dj_database_url-1.0.0-py3-none-any.whl (6.6 kB)
remote:        Collecting Django==4.1
remote:          Downloading Django-4.1-py3-none-any.whl (8.1 MB)
remote:        Collecting django-cors-headers==3.13.0
remote:          Downloading django_cors_headers-3.13.0-py3-none-any.whl (13 kB)
remote:        Collecting django-rest-auth==0.9.5
remote:          Downloading django-rest-auth-0.9.5.tar.gz (53 kB)
remote:          Preparing metadata (setup.py): started
remote:          Preparing metadata (setup.py): finished with status 'done'
remote:        Collecting djangorestframework==3.13.1
remote:          Downloading djangorestframework-3.13.1-py3-none-any.whl (958 kB)
remote:        Collecting gunicorn==20.1.0
remote:          Downloading gunicorn-20.1.0-py3-none-any.whl (79 kB)
remote:        Collecting psycopg2-binary==2.9.3
remote:          Downloading psycopg2_binary-2.9.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
remote:        Collecting python-dotenv==0.20.0
remote:          Downloading python_dotenv-0.20.0-py3-none-any.whl (17 kB)
remote:        Collecting pytz==2022.2.1
remote:          Downloading pytz-2022.2.1-py2.py3-none-any.whl (500 kB)
remote:        Collecting six==1.16.0
remote:          Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
remote:        Collecting sqlparse==0.4.2
remote:          Downloading sqlparse-0.4.2-py3-none-any.whl (42 kB)
remote:        Collecting whitenoise==6.2.0
remote:          Downloading whitenoise-6.2.0-py3-none-any.whl (19 kB)
remote:        Building wheels for collected packages: backports.zoneinfo, django-rest-auth
remote:          Building wheel for backports.zoneinfo (pyproject.toml): started
remote:          Building wheel for backports.zoneinfo (pyproject.toml): finished with status 'error'
remote:          error: subprocess-exited-with-error
remote:          
remote:          × Building wheel for backports.zoneinfo (pyproject.toml) did not run successfully.
remote:          │ exit code: 1
remote:          ╰─> [43 lines of output]
remote:              /tmp/pip-build-env-4w49708r/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
remote:                warnings.warn(msg, warning_class)
remote:              running bdist_wheel
remote:              running build
remote:              running build_py
remote:              creating build
remote:              creating build/lib.linux-x86_64-cpython-310
remote:              creating build/lib.linux-x86_64-cpython-310/backports
remote:              copying src/backports/__init__.py -> build/lib.linux-x86_64-cpython-310/backports
remote:              creating build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              copying src/backports/zoneinfo/_version.py -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              copying src/backports/zoneinfo/__init__.py -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              copying src/backports/zoneinfo/_common.py -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              copying src/backports/zoneinfo/_zoneinfo.py -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              copying src/backports/zoneinfo/_tzpath.py -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              running egg_info
remote:              writing src/backports.zoneinfo.egg-info/PKG-INFO
remote:              writing dependency_links to src/backports.zoneinfo.egg-info/dependency_links.txt
remote:              writing requirements to src/backports.zoneinfo.egg-info/requires.txt
remote:              writing top-level names to src/backports.zoneinfo.egg-info/top_level.txt
remote:              reading manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
remote:              reading manifest template 'MANIFEST.in'
remote:              warning: no files found matching '*.png' under directory 'docs'
remote:              warning: no files found matching '*.svg' under directory 'docs'
remote:              no previously-included directories found matching 'docs/_build'
remote:              no previously-included directories found matching 'docs/_output'
remote:              adding license file 'LICENSE'
remote:              adding license file 'licenses/LICENSE_APACHE'
remote:              writing manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
remote:              copying src/backports/zoneinfo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              copying src/backports/zoneinfo/py.typed -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              running build_ext
remote:              building 'backports.zoneinfo._czoneinfo' extension
remote:              creating build/temp.linux-x86_64-cpython-310
remote:              creating build/temp.linux-x86_64-cpython-310/lib
remote:              gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/app/.heroku/python/include/python3.10 -c lib/zoneinfo_module.c -o build/temp.linux-x86_64-cpython-310/lib/zoneinfo_module.o -std=c99
remote:              lib/zoneinfo_module.c: In function ‘zoneinfo_fromutc’:
remote:              lib/zoneinfo_module.c:600:19: error: ‘_PyLong_One’ undeclared (first use in this function); did you mean ‘_PyLong_New’?
remote:                600 |             one = _PyLong_One;
remote:                    |                   ^~~~~~~~~~~
remote:                    |                   _PyLong_New
remote:              lib/zoneinfo_module.c:600:19: note: each undeclared identifier is reported only once for each function it appears in
remote:              error: command '/usr/bin/gcc' failed with exit code 1
remote:              [end of output]
remote:          
remote:          note: This error originates from a subprocess, and is likely not a problem with pip.
remote:          ERROR: Failed building wheel for backports.zoneinfo
remote:          Building wheel for django-rest-auth (setup.py): started
remote:          Building wheel for django-rest-auth (setup.py): finished with status 'done'
remote:          Created wheel for django-rest-auth: filename=django_rest_auth-0.9.5-py2.py3-none-any.whl size=86821 sha256=0fa138ddf01a6b7858438ba3e8be3ccbb1e19d0d6ddda3d4a8279cdb2a2dcb29
remote:          Stored in directory: /tmp/pip-ephem-wheel-cache-x_vr4p_m/wheels/6f/ac/51/80f8f39c7cd2f916d267a77895da2fa924f98cf1a2e07e5a03
remote:        Successfully built django-rest-auth
remote:        Failed to build backports.zoneinfo
remote:        ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed
remote:  !
remote:  ! ## Warning - The same version of this code has already been built: 52c0a728b6d07a0e8388ee38f57584e1ea1788cb
remote:  !
remote:  ! We have detected that you have triggered a build from source code with version 52c0a728b6d07a0e8388ee38f57584e1ea1788cb
remote:  ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote:  !
remote:  ! If you are developing on a branch and deploying via git you must run:
remote:  !
remote:  !     git push heroku <branchname>:main
remote:  !
remote:  ! This article goes into details on the behavior:
remote:  !   https://devcenter.heroku.com/articles/duplicate-build-version
remote: 
remote: Verifying deploy...
remote: 
remote: !   Push rejected to tzounotes.
remote: 
To https://git.heroku.com/tzounotes.git
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/tzounotes.git'

If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?

What is your best guess as to the source of the problem?

What things have you already tried to solve the problem?

Paste a link to your repository here

kestler01 commented 2 years ago

@timmshinbone @ejparnell

tzou2024 commented 2 years ago
Enumerating objects: 283, done.
Counting objects: 100% (283/283), done.
Delta compression using up to 12 threads
Compressing objects: 100% (278/278), done.
Writing objects: 100% (283/283), 1.17 MiB | 2.08 MiB/s, done.
Total 283 (delta 66), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-20 stack
remote: -----> Determining which buildpack to use for this app
remote: -----> Python app detected
remote: -----> No Python version was specified. Using the buildpack default: python-3.10.6
remote:        To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing python-3.10.6
remote: -----> Installing pip 22.2.2, setuptools 63.4.3 and wheel 0.37.1
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        Collecting asgiref==3.5.2
remote:          Downloading asgiref-3.5.2-py3-none-any.whl (22 kB)
remote:        Collecting backports.zoneinfo==0.2.1
remote:          Downloading backports.zoneinfo-0.2.1.tar.gz (74 kB)
remote:          Installing build dependencies: started
remote:          Installing build dependencies: finished with status 'done'
remote:          Getting requirements to build wheel: started
remote:          Getting requirements to build wheel: finished with status 'done'
remote:          Preparing metadata (pyproject.toml): started
remote:          Preparing metadata (pyproject.toml): finished with status 'done'
remote:        Collecting dj-database-url==1.0.0
remote:          Downloading dj_database_url-1.0.0-py3-none-any.whl (6.6 kB)
remote:        Collecting Django==4.1
remote:          Downloading Django-4.1-py3-none-any.whl (8.1 MB)
remote:        Collecting django-cors-headers==3.13.0
remote:          Downloading django_cors_headers-3.13.0-py3-none-any.whl (13 kB)
remote:        Collecting django-rest-auth==0.9.5
remote:          Downloading django-rest-auth-0.9.5.tar.gz (53 kB)
remote:          Preparing metadata (setup.py): started
remote:          Preparing metadata (setup.py): finished with status 'done'
remote:        Collecting djangorestframework==3.13.1
remote:          Downloading djangorestframework-3.13.1-py3-none-any.whl (958 kB)
remote:        Collecting gunicorn==20.1.0
remote:          Downloading gunicorn-20.1.0-py3-none-any.whl (79 kB)
remote:        Collecting psycopg2-binary==2.9.3
remote:          Downloading psycopg2_binary-2.9.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
remote:        Collecting python-dotenv==0.20.0
remote:          Downloading python_dotenv-0.20.0-py3-none-any.whl (17 kB)
remote:        Collecting pytz==2022.2.1
remote:          Downloading pytz-2022.2.1-py2.py3-none-any.whl (500 kB)
remote:        Collecting six==1.16.0
remote:          Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
remote:        Collecting sqlparse==0.4.2
remote:          Downloading sqlparse-0.4.2-py3-none-any.whl (42 kB)
remote:        Collecting whitenoise==6.2.0
remote:          Downloading whitenoise-6.2.0-py3-none-any.whl (19 kB)
remote:        Building wheels for collected packages: backports.zoneinfo, django-rest-auth
remote:          Building wheel for backports.zoneinfo (pyproject.toml): started
remote:          Building wheel for backports.zoneinfo (pyproject.toml): finished with status 'error'
remote:          error: subprocess-exited-with-error
remote:          
remote:          × Building wheel for backports.zoneinfo (pyproject.toml) did not run successfully.
remote:          │ exit code: 1
remote:          ╰─> [43 lines of output]
remote:              /tmp/pip-build-env-xcyt2uxc/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
remote:                warnings.warn(msg, warning_class)
remote:              running bdist_wheel
remote:              running build
remote:              running build_py
remote:              creating build
remote:              creating build/lib.linux-x86_64-cpython-310
remote:              creating build/lib.linux-x86_64-cpython-310/backports
remote:              copying src/backports/__init__.py -> build/lib.linux-x86_64-cpython-310/backports
remote:              creating build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              copying src/backports/zoneinfo/_common.py -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              copying src/backports/zoneinfo/_tzpath.py -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              copying src/backports/zoneinfo/__init__.py -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              copying src/backports/zoneinfo/_version.py -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              copying src/backports/zoneinfo/_zoneinfo.py -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              running egg_info
remote:              writing src/backports.zoneinfo.egg-info/PKG-INFO
remote:              writing dependency_links to src/backports.zoneinfo.egg-info/dependency_links.txt
remote:              writing requirements to src/backports.zoneinfo.egg-info/requires.txt
remote:              writing top-level names to src/backports.zoneinfo.egg-info/top_level.txt
remote:              reading manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
remote:              reading manifest template 'MANIFEST.in'
remote:              warning: no files found matching '*.png' under directory 'docs'
remote:              warning: no files found matching '*.svg' under directory 'docs'
remote:              no previously-included directories found matching 'docs/_build'
remote:              no previously-included directories found matching 'docs/_output'
remote:              adding license file 'LICENSE'
remote:              adding license file 'licenses/LICENSE_APACHE'
remote:              writing manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
remote:              copying src/backports/zoneinfo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              copying src/backports/zoneinfo/py.typed -> build/lib.linux-x86_64-cpython-310/backports/zoneinfo
remote:              running build_ext
remote:              building 'backports.zoneinfo._czoneinfo' extension
remote:              creating build/temp.linux-x86_64-cpython-310
remote:              creating build/temp.linux-x86_64-cpython-310/lib
remote:              gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/app/.heroku/python/include/python3.10 -c lib/zoneinfo_module.c -o build/temp.linux-x86_64-cpython-310/lib/zoneinfo_module.o -std=c99
remote:              lib/zoneinfo_module.c: In function ‘zoneinfo_fromutc’:
remote:              lib/zoneinfo_module.c:600:19: error: ‘_PyLong_One’ undeclared (first use in this function); did you mean ‘_PyLong_New’?
remote:                600 |             one = _PyLong_One;
remote:                    |                   ^~~~~~~~~~~
remote:                    |                   _PyLong_New
remote:              lib/zoneinfo_module.c:600:19: note: each undeclared identifier is reported only once for each function it appears in
remote:              error: command '/usr/bin/gcc' failed with exit code 1
remote:              [end of output]
remote:          
remote:          note: This error originates from a subprocess, and is likely not a problem with pip.
remote:          ERROR: Failed building wheel for backports.zoneinfo
remote:          Building wheel for django-rest-auth (setup.py): started
remote:          Building wheel for django-rest-auth (setup.py): finished with status 'done'
remote:          Created wheel for django-rest-auth: filename=django_rest_auth-0.9.5-py2.py3-none-any.whl size=86821 sha256=555f9a1dbc5365ed75d9f43fb4222c256efe45304a3985bf5501f812656857a3
remote:          Stored in directory: /tmp/pip-ephem-wheel-cache-r49hhmr3/wheels/6f/ac/51/80f8f39c7cd2f916d267a77895da2fa924f98cf1a2e07e5a03
remote:        Successfully built django-rest-auth
remote:        Failed to build backports.zoneinfo
remote:        ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !   Push rejected to tzounotes.
remote: 
To https://git.heroku.com/tzounotes.git
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/tzounotes.git'