Issue with Heroku Getting Started

25 views
Skip to first unread message

J Maryott

unread,
May 14, 2020, 8:03:16 AM5/14/20
to Django users
Wondering if anyone may be able to shed some light on this...I've cloned the latest dev. version of Django from Git, and though I'm a bit of a newbie here, and this might sound totally dumb to the professionals (I'm unsure), I also tried     pip install django.utils    as a last ditch effort. It seemed to download a package successfully, but still I'm receiving the same error.

I've made it about halfway though the "Getting Started with Python" tutorial on the Heroku Dev Center (https://devcenter.heroku.com/articles/getting-started-with-python#run-the-app-locally), and I get the following error when attempting to run collectstatic:


python manage.py collectstatic
Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
  File "C:\Users\jakem\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\django\__init__.py", line 1, in <module>
    from django.utils.version import get_version
ModuleNotFoundError: No module named 'django.utils'

Jorge Gimeno

unread,
May 15, 2020, 11:29:29 AM5/15/20
to django...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1be60359-eb10-4def-90dc-762d1315e66a%40googlegroups.com.

Can you type pip freeze into your terminal and copy/paste the output here, please?

-Jorge

J Maryott

unread,
May 15, 2020, 4:23:49 PM5/15/20
to Django users
C:\Users\jakem\python-getting-started>pip freeze
asgiref==3.2.7
dj-database-url==0.5.0
Django==3.0.6
django-heroku==0.3.1
django-utils==0.0.2
gunicorn==20.0.4
psycopg2==2.8.5
pytz==2020.1
sqlparse==0.3.1
whitenoise==5.0.1

On Friday, May 15, 2020 at 11:29:29 AM UTC-4, jlgimeno71 wrote:
On Thu, May 14, 2020 at 5:02 AM J Maryott <jmar...@knox.edu> wrote:
Wondering if anyone may be able to shed some light on this...I've cloned the latest dev. version of Django from Git, and though I'm a bit of a newbie here, and this might sound totally dumb to the professionals (I'm unsure), I also tried     pip install django.utils    as a last ditch effort. It seemed to download a package successfully, but still I'm receiving the same error.

I've made it about halfway though the "Getting Started with Python" tutorial on the Heroku Dev Center (https://devcenter.heroku.com/articles/getting-started-with-python#run-the-app-locally), and I get the following error when attempting to run collectstatic:


python manage.py collectstatic
Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
  File "C:\Users\jakem\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\django\__init__.py", line 1, in <module>
    from django.utils.version import get_version
ModuleNotFoundError: No module named 'django.utils'

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.

Jorge Gimeno

unread,
May 15, 2020, 8:16:11 PM5/15/20
to django...@googlegroups.com
Is this in a virtual environment? Are you using pipenv?

-Jorge

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/eda9f804-4949-4cdd-9b34-8bf7db3b049a%40googlegroups.com.

John McClain

unread,
May 15, 2020, 8:28:22 PM5/15/20
to django...@googlegroups.com
try removing this 

django-utils==0.0.2 

from requirements then run again to see next error

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/eda9f804-4949-4cdd-9b34-8bf7db3b049a%40googlegroups.com.


--
John McClain

Cell: 085-1977-823
Skype: jmcclain0129

Jorge Gimeno

unread,
May 15, 2020, 8:39:16 PM5/15/20
to django...@googlegroups.com
On Fri, May 15, 2020 at 5:27 PM John McClain <jmccla...@gmail.com> wrote:
try removing this 

django-utils==0.0.2 

from requirements then run again to see next error

Good catch!  I'll bet there's a name collision here.

-Jorge

John McClain

unread,
May 16, 2020, 5:53:32 AM5/16/20
to django...@googlegroups.com
did it work?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages