-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'mathics_django.web.urls' #1153
Comments
This error is due to a mismatch between versions of the different parts of Mathics. In the course of the week, we expect to release a new version of all the parts of Mathics, which shouldn't generate this kind of errors. |
Hi Juan Mauricio, |
@FreddyBaudine, indeed, this is something that we are trying to fix in this new release. Previous versions of Mathics were monolithic, so if you just downloaded the project from github, all the parts were updated at a time. However, as the project grows, the system becomes more and more complicate to test and maintain. This is why the development team decides to split the project in smaller and more stable parts. However, this decision requires time for implementing certain adjustments. Please have a little of patience... |
Hi Juan Mauricio, By trial and error I succeeded in getting the full complement of Mathics installed and running. In fact, I first uninstalled Mathics-Django which I had first installed from github, then used the command pip install Mathics-Django from the site https://pypi.org/project/Mathics-Django/ to re-install it. It seems that I may have found the right match out of the mismatch between the different parts of Mathics you mentioned in a previous post for this application to work. Your input in this regard is most needed. Many thanks in advance for your help. |
We've known about this for a while. See #1078, and we have been working on it. In fact PR #635 goes back 5 years, although this has been broken forever. (Not implemented features is a default behavior.) Our challenge isn't finding problems. It is finding people who are willing to spend the time to fix the problems. I mean here programmers who don't need to be told how to build a Python package, and aren't phased when they hit a Python traceback and can read a Python traceback and start troubleshooting, fix the code, and submit a Pull Request. If this isn't you, then consider using the docker images, or older released packages like Conda-forge or https://repology.org/project/mathics/versions. However, for now if you want the cutting-edge edge code, you may get cuts. If you are looking for a more polished program, obviously there is Mathematica. It has a lot more features too. As for the brokenness in building from development: the problem there is that there is a large bit of restructuring that needs to go on at least so I can be able to wrap my hands around this project, expand and improve it. The fact that we went from 1.x to 2.0 is a reflection of this. See the beginning of the 2.0.0 Release notes https://github.com/mathics/Mathics/releases and also the beginning of 1.1.1 release notes. I'll revise this at some point to mention the instability. Unfortunately the 2.0.0 release could and should have happened a month earlier. If it had, fewer people would have run into the "module not found" issue. This is caused by a mismatch between using development versions with the latest released versions because released versions because these are incompatible. Because it didn't happen sooner, the window of people falling into this was more larger. And even now after the 2.0.0 release, I see there are still lingering but small problems especially in the Django front end which we'll address down the line as we get spare time to address. (Again if you use the docker image this isn't a problem.) |
Hi Rocky, Thanks for your reply which, I have to say, put me somewhat ill at ease as I felt guilty for making use of your software. Clearly, your prose indicates you must somehow be on edge and under pressure. In my post, I was just asking a question and, with respect, there is no reason to get on one's high horses. I am a mathematician (retired) not an IT person. I understand that with that quality I can't be of much help to you except, possibly, as a tester. I truly recognise the tremendous amount of work that this development represents for you and your team. That being said, I trust you're endeavouring to do so for your users. Otherwise, what the heck is there for putting so much energy in this enterprise of yours. I was seduced by Mathics as it sounded as a credible alternative to - a lighter and hence quicker to learn than - Mathematica, which is a pricey proprietary software. Keep up with the good job. Regards, |
Dear Freddy, the issue with the (2D) graphics is due to a change in the standard of one of the libraries we use to render in the graphics interface (to be precise, MathML) Kind regards, |
BTW, thanks for checking the installation process in your system. Rocky was working a lot to put all the pieces together, and now we need to check how robust is the new system. |
Sorry, that wasn't my intention.
Again, sorry - that was not my intention.
Here, as a general rule, I would suggest that before reporting a problem, look at the already opened problems. It can also help you gauge the state of the project.
In the open source world, you should think or consider yourself as part of the "team". (I have found when people are asked to contribute, in whatever way that is within their means, it seems to adjust their expectations on how fast something might get done.)
One way that you can help is that when you find documentation or instructions that are misleading or wrong, feel free to submit changes. There are wikis in many of the repositories that anyone can edit. However the development guide for the docs are in its own repository https://github.com/Mathics3/mathics-development-guide and the source to the mathics.org website is also in a github repostitory: https://github.com/mathics/mathics.github.io You can read about the github collaboration system here. |
So, in a resume, I guess this issue can be closed. The graphics issues are mentioned in Issue #1078, which I hope get solved soon. |
Hi Mauricio, You closed this issue a bit too soon for I had hoped, in answering your before last post, to thank you for your invitation to go on testing your software on my system (Windows 7 Professional, Service Pack 1, 64-bit). After launching mathicsserver. `C:\Users\Freddy\Desktop\Mathics\Mathics3>C:\Users\Freddy\AppData\Local\Programs\Python\Python38\Scripts\mathic database initialized sucessfully Django front end version 2.0.1.dev Copyright (C) 2011-2021 The Mathics Team. Quit by pressing CTRL-BREAK Open the graphical user interface at [16/Feb/2021 16:42:19] "GET / HTTP/1.1" 200 9771 Shall I have to open a new issue? |
Hi again, |
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:
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
The text was updated successfully, but these errors were encountered: