Django error - "ImportError: No module named urls"

661 views
Skip to first unread message

andrew.j....@gmail.com

unread,
Nov 18, 2021, 4:37:39 PM11/18/21
to OpenREM
Hello all,
First, I want to express my sincere appreciation to all those who have devoted so much time and effort in this project!
I'm performing a new install of 0.10.0 on a new Ubuntu 20.04 server. 

I'm following the instructions listed here and when I get to:

python manage.py makemigrations remapp

I'm left with the following python error traceback:

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 328, in execute
    django.setup()
  File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 115, in populate
    app_config.ready()
  File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/apps.py", line 22, in ready
    self.module.autodiscover()
  File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/__init__.py", line 24, in autodiscover
    autodiscover_modules('admin', register_to=site)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/module_loading.py", line 74, in autodiscover_modules
    import_module('%s.%s' % (app_config.name, module_to_search))
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/local/lib/python2.7/dist-packages/solo/admin.py", line 1, in <module>
    from django.urls import re_path
ImportError: No module named urls

I've made sure to "pip install django-crispy-forms==1.8.1", as instructed, but I still get the error. 
Any help would be appreciated.

Thanks,
Andrew

Ed McDonagh

unread,
Nov 19, 2021, 11:22:17 AM11/19/21
to andrew.j....@gmail.com, OpenREM
Hi Andrew

Can you try to install the previous version of solo - the September release I think might not be compatible with OpenREM 0.10.

pip install django-solo==1.1.5

--
You received this message because you are subscribed to the Google Groups "OpenREM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrem+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openrem/64ee27dc-d401-499c-99b7-d5bdbc6e1110n%40googlegroups.com.

andrew.j....@gmail.com

unread,
Nov 19, 2021, 12:57:38 PM11/19/21
to OpenREM
That worked. Thanks Ed.
Reply all
Reply to author
Forward
0 new messages