Skip to content
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

scilab-bin: Add 'scilab' executable to PATH, so as to make it integrate better into SageMath #51343

Closed
fusion809 opened this issue Dec 1, 2018 · 1 comment · Fixed by #51346

Comments

@fusion809
Copy link
Contributor

fusion809 commented Dec 1, 2018

Issue description

The scilab-bin package works fairly well, but unfortunately it doesn't add a scilab executable to PATH, rather its executables in PATH are named scilab-6 and scilab-6.0.1. This has an undesirable consequence, other than requiring users to type in extra characters when launching it from the command-line, which is that SageMath, installed via the sage package, cannot seem to call it when you try to use it within SageMath Notebook.

Here is a screenshot showing you what I mean:

screenshot_20181202_070514 annotated

Steps to reproduce

Install SageMath on NixOS 18.09, with nix-env -f '<nixos-unstable>' -iA sage and Scilab with nix-env -f '<nixos-unstable>' -iA scilab-bin. Then, start SageMath with sage and start the notebook with notebook() at the sage> prompt. Then, after setting an admin password, create a new notebook, select from the dropdown menu labelled in the above screenshot "scilab (optional)". Then, in a new cell, type in whatever Scilab command you want (e.g. 3^3 will do) and click the "evaluate" button. If you get the error shown in the above screenshot, then you have observed this bug.

Technical details

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.84, NixOS, 18.09.1446.db561c90ef3 (Jellyfish)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.1.3`
 - channels(fusion809): `""`
 - channels(root): `"nixos-18.09.1446.db561c90ef3, nixos-unstable-19.03pre159472.80738ed9dc0"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@fusion809
Copy link
Contributor Author

Adding a scilab executable to PATH manually, like with symlinks, manages to fix this issue FYI.

fusion809 added a commit to fusion809/nixpkgs that referenced this issue Dec 1, 2018
Should fix NixOS#51343, merely adding a scilab symlink within the bin/ directory, so that it can be detected by SageMath.
timokau pushed a commit that referenced this issue Dec 1, 2018
Should fix #51343, merely adding a scilab symlink within the bin/ directory, so that it can be detected by SageMath.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant