Skip to content

ModuleNotFoundError: No module named 'mathics_django.web.urls' #1153

@FreddyBaudine

Description

@FreddyBaudine

Dear all,
After installing Mathics from github as per the instruction in
https://mathics-development-guide.readthedocs.io/en/latest/installing.html, I got the following results:

  1. mathicsscript works as designed.
  2. mathicsserver leads to a missing components, viz.,
    ModuleNotFoundError: No module named 'mathics_django.web.urls'.

As I am an end user and not a developer, I can't make anything of the bunch of messages generated while running mathicsserver. Here they are:
`
C:\Users\Freddy>mathicsserver
Migrating database C:/Users/Freddy/AppData/Roaming/Python/Mathics/mathics.sqlite
Traceback (most recent call last):
File "C:\Users\Freddy\AppData\Local\Programs\Python\Python38\Lib\site-packages\mathics_django\mana
ge.py", line 14, in
execute_from_command_line(sys.argv)
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\core\managem
ent_init_.py", line 401, in execute_from_command_line
utility.execute()
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\core\managem
ent_init_.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\core\managem
ent\base.py", line 330, in run_from_argv
self.execute(*args, **cmd_options)
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\core\managem
ent\base.py", line 371, in execute
output = self.handle(*args, **options)
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\core\managem
ent\base.py", line 85, in wrapped
res = handle_func(*args, **kwargs)
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\core\managem
ent\commands\migrate.py", line 75, in handle
self.check(databases=[database])
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\core\managem
ent\base.py", line 392, in check
all_issues = checks.run_checks(
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\core\checks
registry.py", line 70, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\core\checks
urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\core\checks
urls.py", line 23, in check_resolver
return check_method()
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\urls\resolve
rs.py", line 408, in check
for pattern in self.url_patterns:
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\utils\functi
onal.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\urls\resolve
rs.py", line 589, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\utils\functi
onal.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\urls\resolve
rs.py", line 582, in urlconf_module
return import_module(self.urlconf_name)
File "c:\users\freddy\appdata\local\programs\python\python38\lib\importlib_init_.py", line 127,
in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\mathics_django\urls
.py", line 14, in
url(r'^', include('mathics_django.web.urls')),
File "c:\users\freddy\appdata\local\programs\python\python38\lib\site-packages\django\urls\conf.py
", line 34, in include
urlconf_module = import_module(urlconf_module)
File "c:\users\freddy\appdata\local\programs\python\python38\lib\importlib_init
.py", line 127,
in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mathics_django.web.urls'
error: failed to create database

C:\Users\Freddy>`

Unless I've made any mistake, is there either a workaround or a fix available?
Many thanks.
Regards,
Freddy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions