Mathics3 / mathics-core

An open-source Mathematica. This repository contains the Python modules for WL Built-in functions, variables, core primitives, e.g. Symbol, a parser to create Expressions, and an evaluator to execute them.
https://mathics.org
Other
786 stars 48 forks source link

nothing happens #1159

Closed dchmelik closed 1 week ago

dchmelik commented 3 weeks ago

Description

I maintain mathics.SlackBuild (for people to do automated build/install of Mathics on Slackware GNU/Linux) which needs update. I updated everything, though you apparently haven't listed most dependencies (please do so independent of OS). Mathics ran on command-line but when I type 1+1 and press \<ENTER>, nothing happens. If you want to make sure it gets updated to be listed as such on your information page, I can let you use/test on a remove (virtual private) server (VPS) I sometimes install Mathics on, so we can keep recent stable versions available for Slackware. If this works and Mathics-omnibus gets updated, I'll do that next.

How to Reproduce

For a command-line environment: $mathics -e '1+1'

Output Given

Expected behavior

Calculate.

Your Environment

dbus-python-1.2.18-x86_64-3 kdev-python-21.12.1-x86_64-1 mathics-7.0.0-x86_64-1_SBo (testing/unreleased) mathics-django-7.0.0-x86_64-1_SBo (testing/unreleased) mathics_scanner-1.3.1-x86_64-1_SBo (testing/unreleased) python-Jinja2-3.0.3-x86_64-1 python-MarkupSafe-2.0.1-x86_64-1 python-PyYAML-6.0-x86_64-1 python-appdirs-1.4.4-x86_64-6 python-certifi-2021.10.8-x86_64-2 python-cffi-1.15.0-x86_64-2 python-chardet-4.0.0-x86_64-5 python-charset-normalizer-2.0.10-x86_64-1 python-distro-1.6.0-x86_64-2 python-dnspython-2.1.0-x86_64-3 python-docutils-0.17.1-x86_64-3 python-doxypypy-0.8.8.6-x86_64-1 python-doxyqml-0.5.1-x86_64-1 python-future-0.18.2-x86_64-7 python-idna-3.3-x86_64-2 python-importlib_metadata-8.5.0-x86_64-1_SBo python-markdown-3.3.4-x86_64-3 python-notify2-0.3.1-x86_64-10 python-packaging-21.3-x86_64-1 python-pbr-5.8.0-x86_64-1 python-pillow-8.4.0-x86_64-2 python-pip-21.3.1-x86_64-2 python-ply-3.11-x86_64-8 python-pycparser-2.21-x86_64-1 python-pygments-2.10.0-x86_64-3 python-pysol_cards-0.12.0-x86_64-2 python-random2-1.0.1-x86_64-5 python-requests-2.26.0-x86_64-3 python-sane-2.9.1-x86_64-5 python-setuptools-57.5.0-x86_64-2 python-setuptools_scm-6.3.2-x86_64-1 python-six-1.16.0-x86_64-3 python-tomli-1.2.2-x86_64-1 python-urllib3-1.26.8-x86_64-1 python-zipp-3.20.1-x86_64-1_SBo python2-2.7.18-x86_64-4 python2-module-collection-2.7.18-x86_64-6 python3-3.9.20-x86_64-1_slack15.0 python3-beniget-0.4.2.post1-x86_64-1_SBo python3-build-1.2.2-x86_64-1_SBo python3-django-4.2.13-x86_64-1_SBo python3-flit_core-3.9.0-x86_64-1_SBo python3-gast-0.5.5-x86_64-1_SBo python3-installer-0.7.0-x86_64-1_SBo python3-markdown-it-py-3.0.0-x86_64-1_SBo python3-mdurl-0.1.2-x86_64-1_SBo python3-meson-opt-1.5.1-noarch-1_SBo python3-mesonpy-0.15.0-x86_64-1_SBo python3-mpmath-1.3.0-x86_64-1_SBo python3-numpy-1.26.3-x86_64-3_SBo python3-packaging-opt-24.1-noarch-1_SBo python3-poetry-core-1.9.0-x86_64-1_SBo python3-pyproject-hooks-1.0.0-x86_64-1_SBo python3-pyproject-metadata-0.8.0-x86_64-1_SBo python3-pythondialog-3.5.3-x86_64-1_SBo python3-pythran-0.15.0-x86_64-1_SBo python3-rich-13.7.1-x86_64-1_SBo python3-scipy-1.12.0-x86_64-1_SBo python3-setuptools-opt-74.1.2-x86_64-1_SBo python3-setuptools-scm-opt-8.0.2-noarch-1_SBo python3-sympy-1.11.1-x86_64-2_SBo python3-tomlkit-0.13.2-x86_64-1_SBo python3-typing-extensions-4.12.2-x86_64-1_SBo python3-wheel-0.44.0-x86_64-1_SBo a few poorly-named dependencies (don't have python in name)

Desktop (please complete the following information):

rocky commented 3 weeks ago

I maintain mathics.SlackBuild (for people to do automated build/install of Mathics on Slackware GNU/Linux) which needs update.

Thanks for doing this.

I updated everything, though you apparently haven't listed most dependencies (please do so independent of OS).

If you are specific about which dependencies are missing, I will look into it.

Mathics ran on command-line but when I type 1+1 and press , nothing happens.

If you want to make sure it gets updated to be listed as such on your information page, I can let you use/test on a remove (virtual private) server (VPS) I sometimes install Mathics on, so we can keep recent stable versions available for Slackware.

Yes, this would be great.

If this works and Mathics-omnibus gets updated, I'll do that next.

Probably good. I would be interested in providing docker virtual environment setups for both OSes. The docker environment I will probably support would be the one for Ubuntu since I know that the best. However, if you want to support a Slack-build-based setup that you support that is possible too. Down the line, I can add you as a member to the GitHub repository, and the dockerhub organization.

However, one step at a time.

rocky commented 3 weeks ago

@dchmelik One other thing I meant to mention... When things work, please consider adding a SlackBuild section to https://mathics-development-guide.readthedocs.io/en/latest/installing.html#from-an-os-specific-repository

dchmelik commented 1 week ago

Possibly my home server was corrupted or has old installation, so I'm testing VPS. Now Mathics seems to run on both, and sums work. However, my home server has 'mathicsserver', which no longer exists in Mathics3 or mathics-core? Some dependencies, including unlisted in instructions, I found on VPS, are parts of the X Window System (libXau, libxcb, libXdmcp, of course not on many servers), click, cython, mpmath, numpy, pint, palettable, maybe (checking now) scipy, and SymPy, and Mathics says "cannot import name 'CompileError' from 'mathics.core.convert.function' (/usr/lib64/python3.9/site-packages/mathics/core/convert/function.py). Not able to load mathics.builtin.compilation. Check your installation. mathics.builtin loads from /usr/lib64/python3.9/site-packages/mathics/core/load". None this happens on home server, which I want to find why. You can close this issue unless want replies here on other things mentioned. If you email me from my profile or reply in Slack or let/invite me back into Matrix (got disconnected) I can give you VPS account. At this point I should be able to update mathics.SlackBuild as-is (besides adding django, scanner, done weeks ago) within matter of hours/days, because if someone SlackBuilds, they're expected to have full Slackware installation (seems has most depdendencies other than on SlackBuilds.org) rather than mostly stripped of X like my VPS.

rocky commented 1 week ago

However, my home server has 'mathicsserver', which no longer exists in Mathics3 or mathics-core?

mathicsserver is now in its own repository. It has been that way for 4 years.