ariankordi / closedverse

Miiverse clone (offdevice) in Django released in late 2017. Gross and ancient please don't look at this
21 stars 17 forks source link

New error when trying to collect static #15

Closed stampylongr closed 5 years ago

stampylongr commented 5 years ago

Here is my output when trying to build on Heroku (it's not Heroku, I checked on my local machine too):

-----> Python app detected
-----> Installing python-3.7.3
-----> Installing pip
-----> Installing SQLite3
-----> Installing requirements with pip
       Collecting Django (from -r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 1))
         Downloading https://files.pythonhosted.org/packages/d6/57/66997ca6ef17d2d0f0ebcd860bc6778095ffee04077ca8985928175da358/Django-2.2.4-py3-none-any.whl (7.5MB)
       Collecting django-heroku (from -r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 2))
         Downloading https://files.pythonhosted.org/packages/59/af/5475a876c5addd5a3494db47d9f7be93cc14d3a7603542b194572791b6c6/django_heroku-0.3.1-py2.py3-none-any.whl
       Collecting gunicorn (from -r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 3))
         Downloading https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl (112kB)
       Collecting urllib3 (from -r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 4))
         Downloading https://files.pythonhosted.org/packages/e6/60/247f23a7121ae632d62811ba7f273d0e58972d75e58a94d329d51550a47d/urllib3-1.25.3-py2.py3-none-any.whl (150kB)
       Collecting lxml (from -r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 5))
         Downloading https://files.pythonhosted.org/packages/e7/a8/40115c84414c017e1a293f331709eb7534303d3ccd11ef805ac09b1481e7/lxml-4.4.1-cp37-cp37m-manylinux1_x86_64.whl (5.7MB)
       Collecting passlib (from -r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 6))
         Downloading https://files.pythonhosted.org/packages/ee/a7/d6d238d927df355d4e4e000670342ca4705a72f0bf694027cf67d9bcf5af/passlib-1.7.1-py2.py3-none-any.whl (498kB)
       Collecting bcrypt (from -r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 7))
         Downloading https://files.pythonhosted.org/packages/8b/1d/82826443777dd4a624e38a08957b975e75df859b381ae302cfd7a30783ed/bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56kB)
       Collecting mysqlclient (from -r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 8))
         Downloading https://files.pythonhosted.org/packages/4d/38/c5f8bac9c50f3042c8f05615f84206f77f03db79781db841898fde1bb284/mysqlclient-1.4.4.tar.gz (86kB)
       Collecting pillow (from -r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 9))
         Downloading https://files.pythonhosted.org/packages/a4/da/2bd281c875686230eabc13d20ab590ea617563b0e746abfb0698c4d5b645/Pillow-6.1.0-cp37-cp37m-manylinux1_x86_64.whl (2.1MB)
       Collecting django-markdown-deux (from -r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 10))
         Downloading https://files.pythonhosted.org/packages/80/a5/d61ee6fc26cbb0d737986ed23e13309c88f2ae7f1fcdf2460a525323a3ed/django-markdown-deux-1.0.5.zip
       Collecting django-markdown2 (from -r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 11))
         Downloading https://files.pythonhosted.org/packages/f9/62/eadc690275c3a66e08e2d9b3bf5576285f0df896fc787faa45691900b2f6/django-markdown2-0.3.1.tar.gz
       Collecting whitenoise (from -r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 12))
         Downloading https://files.pythonhosted.org/packages/96/75/92afb2d8912ac19646f67a2c69bb8683e5aab78db3b0791bfd3e7ed022bb/whitenoise-4.1.3-py2.py3-none-any.whl
       Collecting pytz (from Django->-r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 1))
         Downloading https://files.pythonhosted.org/packages/87/76/46d697698a143e05f77bec5a526bf4e56a0be61d63425b68f4ba553b51f2/pytz-2019.2-py2.py3-none-any.whl (508kB)
       Collecting sqlparse (from Django->-r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 1))
         Downloading https://files.pythonhosted.org/packages/ef/53/900f7d2a54557c6a37886585a91336520e5539e3ae2423ff1102daf4f3a7/sqlparse-0.3.0-py2.py3-none-any.whl
       Collecting psycopg2 (from django-heroku->-r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 2))
         Downloading https://files.pythonhosted.org/packages/5c/1c/6997288da181277a0c29bc39a5f9143ff20b8c99f2a7d059cfb55163e165/psycopg2-2.8.3.tar.gz (377kB)
       Collecting dj-database-url>=0.5.0 (from django-heroku->-r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 2))
         Downloading https://files.pythonhosted.org/packages/d4/a6/4b8578c1848690d0c307c7c0596af2077536c9ef2a04d42b00fabaa7e49d/dj_database_url-0.5.0-py2.py3-none-any.whl
       Collecting six>=1.4.1 (from bcrypt->-r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 7))
         Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
       Collecting cffi>=1.1 (from bcrypt->-r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 7))
         Downloading https://files.pythonhosted.org/packages/a0/ea/37fe21475c884f88a2ae496cab10e8f84f0cc11137be860af9eb37a3edb9/cffi-1.12.3-cp37-cp37m-manylinux1_x86_64.whl (430kB)
       Collecting markdown2 (from django-markdown-deux->-r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 10))
         Downloading https://files.pythonhosted.org/packages/89/d2/6aef45472f7956646fdc4cc5284e6f9d00476497a8d167c30b0f78bb75a5/markdown2-2.3.8-py2.py3-none-any.whl
       Collecting pycparser (from cffi>=1.1->bcrypt->-r /tmp/build_0e927a39a75e7f355a605f2cb188a2cb/requirements.txt (line 7))
         Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
       Installing collected packages: pytz, sqlparse, Django, whitenoise, psycopg2, dj-database-url, django-heroku, gunicorn, urllib3, lxml, passlib, six, pycparser, cffi, bcrypt, mysqlclient, pillow, markdown2, django-markdown-deux, django-markdown2
         Running setup.py install for psycopg2: started
           Running setup.py install for psycopg2: finished with status 'done'
         Running setup.py install for pycparser: started
           Running setup.py install for pycparser: finished with status 'done'
         Running setup.py install for mysqlclient: started
           Running setup.py install for mysqlclient: finished with status 'done'
         Running setup.py install for django-markdown-deux: started
           Running setup.py install for django-markdown-deux: finished with status 'done'
         Running setup.py install for django-markdown2: started
           Running setup.py install for django-markdown2: finished with status 'done'
       Successfully installed Django-2.2.4 bcrypt-3.1.7 cffi-1.12.3 dj-database-url-0.5.0 django-heroku-0.3.1 django-markdown-deux-1.0.5 django-markdown2-0.3.1 gunicorn-19.9.0 lxml-4.4.1 markdown2-2.3.8 mysqlclient-1.4.4 passlib-1.7.1 pillow-6.1.0 psycopg2-2.8.3 pycparser-2.19 pytz-2019.2 six-1.12.0 sqlparse-0.3.0 urllib3-1.25.3 whitenoise-4.1.3
-----> $ python manage.py collectstatic --noinput
       Traceback (most recent call last):
         File "manage.py", line 22, in <module>
           execute_from_command_line(sys.argv)
         File "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
           utility.execute()
         File "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/__init__.py", line 357, in execute
           django.setup()
         File "/app/.heroku/python/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
           apps.populate(settings.INSTALLED_APPS)
         File "/app/.heroku/python/lib/python3.7/site-packages/django/apps/registry.py", line 114, in populate
           app_config.import_models()
         File "/app/.heroku/python/lib/python3.7/site-packages/django/apps/config.py", line 211, in import_models
           self.models_module = import_module(models_module_name)
         File "/app/.heroku/python/lib/python3.7/importlib/__init__.py", line 127, in import_module
           return _bootstrap._gcd_import(name[level:], package, level)
         File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
         File "<frozen importlib._bootstrap>", line 983, in _find_and_load
         File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
         File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
         File "<frozen importlib._bootstrap_external>", line 724, in exec_module
         File "<frozen importlib._bootstrap_external>", line 860, in get_code
         File "<frozen importlib._bootstrap_external>", line 791, in source_to_code
         File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
         File "/tmp/build_0e927a39a75e7f355a605f2cb188a2cb/closedverse_main/models.py", line 147
           addr = models.CharField(max_length=64, null=True, blank=True)
              ^
       SyntaxError: invalid syntax
 !     Error while running '$ python manage.py collectstatic --noinput'.
       See traceback above for details.
       You may need to update application code to resolve this error.
       Or, you can disable collectstatic for this application:
          $ heroku config:set DISABLE_COLLECTSTATIC=1
       https://devcenter.heroku.com/articles/django-assets
 !     Push rejected, failed to compile Python app.
 !     Push failed

My version of Closedverse is a modified version of Oasis' fork (it located here), and I get the same error message when using this repository. What should I do?