I am using pythonanywhere for the first time. I want to deploy one django app. The required versions are django>=2.0 and python>=3.6. I am using the following commands:
pip3.6 install --user pythonanywhere
then,
pa_autoconfigure_django.py https://github.com/DEBADRIBASAK/MyFirstBlog.git --nuke
(I am using --nuke because there was a web-app previously and I wanted to remove it) It is collecting the required packages and it is failing at the collectstatic step:
< Running API sanity checks >
\
~<:>>>>>>>>>
Cloning into '/home/ricky123/ricky123.pythonanywhere.com'...
remote: Enumerating objects: 48, done.
remote: Counting objects: 100% (48/48), done.
remote: Compressing objects: 100% (45/45), done.
remote: Total 48 (delta 6), reused 39 (delta 2), pack-reused 0
Unpacking objects: 100% (48/48), done.
Checking connectivity... done.
< Creating virtualenv with Python3.5 >
\
~<:>>>>>>>>>
Removing ricky123.pythonanywhere.com...
Running virtualenv with interpreter /usr/bin/python3.5
Using base prefix '/usr'
New python executable in /home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/bin/python3.5
Also creating executable in /home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/bin/preactivate
virtualenvwrapper.user_scripts creating /home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/bin/postactivate
virtualenvwrapper.user_scripts creating /home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/bin/get_env_details
< Pip installing django (this may take a couple of minutes) >
\
~<:>>>>>>>>>
Looking in links: /usr/share/pip-wheels
Collecting django
Using cached https://files.pythonhosted.org/packages/fd/9a/0c028ea0fe4f5803dda1a7afabeed958d0c8b79b0fe762ffbf728db3b90d/Django-2.1.4-py3-none-any.whl
Collecting pytz (from django)
Using cached https://files.pythonhosted.org/packages/f8/0e/2365ddc010afb3d79147f1dd544e5ee24bf4ece58ab99b16fbb465ce6dc0/pytz-2018.7-py2.py3-none-any.whl
Installing collected packages: pytz, django
Successfully installed django-2.1.4 pytz-2018.7
< Creating web app via API >
\
~<:>>>>>>>>>
< Adding static files mappings for /static/ and /media/ >
\
~<:>>>>>>>>>
< Updating wsgi file at /var/www/ricky123_pythonanywhere_com_wsgi.py >
\
~<:>>>>>>>>>
< Updating settings.py >
\
~<:>>>>>>>>>
< Running collectstatic >
\
~<:>>>>>>>>>
Traceback (most recent call last):
File "/home/ricky123/ricky123.pythonanywhere.com/manage.py", line 15, in <module>
~<:>>>>>>>>>
execute_from_command_line(sys.argv)
File "/home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/lib/python3.5/site-packages/django/core/management/__init__.py", line 381, in execut
e_from_command_line
utility.execute()
File "/home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/lib/python3.5/site-packages/django/core/management/__init__.py", line 375, in execut
e
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/lib/python3.5/site-packages/django/core/management/base.py", line 316, in run_from_a
rgv
self.execute(*args, **cmd_options)
File "/home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/lib/python3.5/site-packages/django/core/management/base.py", line 353, in execute
output = self.handle(*args, **options)
File "/home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/collectst
atic.py", line 188, in handle
collected = self.collect()
File "/home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/collectst
atic.py", line 105, in collect
for path, storage in finder.list(self.ignore_patterns):
File "/home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/lib/python3.5/site-packages/django/contrib/staticfiles/finders.py", line 125, in lis
t
for path in utils.get_files(storage, ignore_patterns):
File "/home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/lib/python3.5/site-packages/django/contrib/staticfiles/utils.py", line 23, in get_fi
les
directories, files = storage.listdir(location)
File "/home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/lib/python3.5/site-packages/django/core/files/storage.py", line 313, in listdir
for entry in os.listdir(path):
FileNotFoundError: [Errno 2] No such file or directory: '/home/ricky123/static'
Traceback (most recent call last):
File "/home/ricky123/.local/bin/pa_autoconfigure_django.py", line 52, in <module>
main(arguments['<git-repo-url>'], arguments['--domain'], arguments['--python'], nuke=arguments.get('--nuke'))
File "/home/ricky123/.local/bin/pa_autoconfigure_django.py", line 42, in main
project.run_collectstatic()
File "/home/ricky123/.local/lib/python3.6/site-packages/pythonanywhere/django_project.py", line 87, in run_collectstatic
'--noinput',
File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/ricky123/.virtualenvs/ricky123.pythonanywhere.com/bin/python', '/home/ricky123/ricky123.pythonanywhe
re.com/manage.py', 'collectstatic', '--noinput']' returned non-zero exit status 1.
Can anyone give any solution?