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

Octave installed via flatpak is not found #323

Open
bagustris opened this issue Jun 13, 2024 · 5 comments
Open

Octave installed via flatpak is not found #323

bagustris opened this issue Jun 13, 2024 · 5 comments

Comments

@bagustris
Copy link

bagustris commented Jun 13, 2024

The newest Octave usually is easier to install via Flatpak, but using this way oct2py cannot recognize the installed Octave.

I also already make an alias for octave to point octave installed from flathub and it can called directly from terminal using octave command. I also already updated my PATH to include binary of octave in flatpak (export PATH="/var/lib/flatpak/exports/bin:$PATH").

$ octave --version
GNU Octave, version 9.2.0
Copyright (C) 1993-2024 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.

Octave was configured for "x86_64-pc-linux-gnu".

Home page:            https://octave.org
Support resources:    https://octave.org/support
Improve Octave:       https://octave.org/get-involved

$ ipython
Python 3.8.10 (default, Nov 22 2023, 10:22:35) 
Type 'copyright', 'credits' or 'license' for more information
IPython 8.10.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import oct2py
octave not found, please see README

In [2]: 

Is there any step to link the octave installed from Flatpak to this oct2py?
I am using Ubuntu 20.4 with the latest Octave version 9.2.0
I suspect the error probably is caused by different names of binaries, i.e., octave vs org.octave.Octave

@blink1073
Copy link
Owner

Hi @bagustris, have you tried setting OCTAVE_EXECUTABLE?

@bagustris
Copy link
Author

There is no information how to set OCTAVE_EXECUTABLE. So, I assumed the following thing and it didn't work

(asd) bagus:~$ OCTAVE_EXECUTABLE='/var/lib/flatpak/exports/bin/org.octave.Octave' 
(asd) bagus:~$ python
Python 3.9.19 | packaged by conda-forge | (main, Mar 20 2024, 12:50:21) 
[GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import oct2py
octave not found, please see README
>>>

@blink1073
Copy link
Owner

From the README, "Alternatively, you can set an OCTAVE_EXECUTABLE or OCTAVE environment variable that points to octave executable itself.". Is /var/lib/flatpak/exports/bin/org.octave.Octave an executable file?

@bagustris
Copy link
Author

bagustris commented Jun 14, 2024

Yes, it is executable. I can run octave cli mode from that file.

$ /var/lib/flatpak/exports/bin/org.octave.Octave
QSocketNotifier: Can only be used with threads started with QThread
qt.qpa.qgnomeplatform: Could not find color scheme  ""
GNU Octave, version 9.2.0
Copyright (C) 1993-2024 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Home page:            https://octave.org
Support resources:    https://octave.org/support
Improve Octave:       https://octave.org/get-involved

For changes from previous versions, type 'news'.

octave:1> 

@blink1073
Copy link
Owner

I'm not sure then, I'm not familiar with flatpack.

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

No branches or pull requests

2 participants