Forums

cannot load data from github via pa_django_autoconfigure: please use a personal access token instead.

hello, i tried 2 load data from my github repo, but the error showed up:

11:17 ~ $ pa_autoconfigure_django.py https://github.com/tongubin/django-first-site.git --nuke 
< Running API sanity checks >
   \
    ~<:>>>>>>>>>
Cloning into '/home/t0ngub1n/t0ngub1n.pythonanywhere.com'...
Username for 'https://github.com': tongubin
Password for 'https://tongubin@github.com': 
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/tongubin/django-first-site.git/': The requested URL returned error: 403
Traceback (most recent call last):
  File "/home/t0ngub1n/.local/bin/pa_autoconfigure_django.py", line 49, in <module>
    main(
  File "/home/t0ngub1n/.local/bin/pa_autoconfigure_django.py", line 31, in main
    project.download_repo(repo_url, nuke=nuke),
  File "/home/t0ngub1n/.local/lib/python3.9/site-packages/pythonanywhere/django_project.py", line 17, in download_repo
    subprocess.check_call(['git', 'clone', repo, str(self.project_path)])
  File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'clone', 'https://github.com/tongubin/django-first-site.git', '/home/t0ngub1n/t0ngub1n.pythonanywhere.com']' returned non-zero exit status 128.
11:18 ~ $

i thought that is a popular problem now but did not c any topics about that. plz help me

As the error message says "Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.". The GitHub blog post explains what you should do: https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/.