Hello,
I faced the following issue while trying to set up Django on my Mac. While
installing requirements .txt this error pops up
ERROR: Command errored out with exit status 1:
command:
/Users/rishabhgajra/Desktop/Airavata/airavata-django-portal/venv/bin/python3 -u
-c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/var/folders/t8/1vd440zj3tg720bp0ldgt0t40000gn/T/pip-install-ktmv4oay/Pillow/setup.py'"'"';
__file__='"'"'/private/var/folders/t8/1vd440zj3tg720bp0ldgt0t40000gn/T/pip-install-ktmv4oay/Pillow/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install
--record
/private/var/folders/t8/1vd440zj3tg720bp0ldgt0t40000gn/T/pip-record-enbm2eku/install-record.txt
--single-version-externally-managed --compile --install-headers
/Users/rishabhgajra/Desktop/Airavata/airavata-django-portal/venv/include/site/python3.7/Pillow
cwd:
/private/var/folders/t8/1vd440zj3tg720bp0ldgt0t40000gn/T/pip-install-ktmv4oay/Pillow/
ERROR: Command errored out with exit status 1:
/Users/rishabhgajra/Desktop/Airavata/airavata-django-portal/venv/bin/python3 -u
-c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/var/folders/t8/1vd440zj3tg720bp0ldgt0t40000gn/T/pip-install-ktmv4oay/Pillow/setup.py'"'"';
__file__='"'"'/private/var/folders/t8/1vd440zj3tg720bp0ldgt0t40000gn/T/pip-install-ktmv4oay/Pillow/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install
--record
/private/var/folders/t8/1vd440zj3tg720bp0ldgt0t40000gn/T/pip-record-enbm2eku/install-record.txt
--single-version-externally-managed --compile --install-headers
/Users/rishabhgajra/Desktop/Airavata/airavata-django-portal/venv/include/site/python3.7/Pillow
Check the logs for full command output.
I tried installing pillow manually after this and tried moving to further steps
It asked me to install wagtail dependency which I did.
On this step >python3 manage.py migrate
ImportError: cannot import name 'six' from 'django.utils'
(/Users/rishabhgajra/Desktop/Airavata/airavata-django-portal/venv/lib/python3.7/site-packages/django/utils/__init__.py)
During handling of the above exception, another exception occurred:
It gives this error
> "trying to load '%s': %s" % (entry[1], e)
> django.template.library.InvalidTemplateLibrary: Invalid template library
> specified. ImportError raised when trying to load
> 'rest_framework.templatetags.rest_framework': cannot import name 'six' from
> 'django.utils'
> (/Users/rishabhgajra/Desktop/Airavata/airavata-django-portal/venv/lib/python3.7/site-packages/django/utils/__init__.py)
>>>> Next attempt
The command works when I dont do a virtual env for python
I tried debugging online and it says maybe my Django installation is the
problem. This is my third attempt from scratch the earlier two were some
version support mismatch between sqlite and wagtail were I had to reverse some
versions of sql lite to older version.
Got this error: Maybe its a Mac issue
> Traceback (most recent call last):
> File
> "/Users/rishabhgajra/anaconda3/lib/python3.7/site-packages/django/db/backends/utils.py",
> line 62, in execute
> return self.cursor.execute(sql)
> File
> "/Users/rishabhgajra/anaconda3/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py",
> line 326, in execute
> return Database.Cursor.execute(self, query)
> sqlite3.OperationalError: no such table: wagtailcore_page__old
>
> The above exception was the direct cause of the following exception:
> File
> "/Users/rishabhgajra/anaconda3/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py",
> line 326, in execute
> return Database.Cursor.execute(self, query)
> django.db.utils.OperationalError: Problem installing fixtures: no such table:
> wagtailcore_page__old
Can I know what’s causing this and a possible way to debug or some solution ?
Thanks,
Rishabh.