silmaril

joined 1 year ago
[–] [email protected] 1 points 4 months ago (1 children)

Great to hear!

I'd phrase this differently: The "system version" is the version that was used by the build system.

Most users don't build the application themselves, so this is some system they have zero knowledge about, which means this information is not helpful at all.

I understood "your system" as "the system I am using to run this software".

I know this might be hard for developers sometimes, but please try to phrase all documentation (except chapters about actual development, builds etc.) from the user's point of view. Build systems are no part of a typical user's environment ;-)

[–] [email protected] 1 points 4 months ago (3 children)

Would it be possible to display the Python version and/or it's executable path in the CAS configuration dialog?

That's where I would look for this information and it wouldn't leave any potential for documentation not being up to date.

The FAQ currently states:

On Linux distributions it usually means LabPlot only works with the system version of Python.

What is the "system version"?

On my system python3 --version returns Python 3.10.12, but print(sys.version) in LabPlot returns 3.11.9 (main, Nov 10 2011, 15:00:00) [GCC 13.2.0]

The information about Python versions on Windows seems to be correct, but I would recommend to mention the LabPlot version we are talking about in the FAQ, since this will probably change in future versions.

[–] [email protected] 1 points 4 months ago (5 children)

Does this mean that as a user of the binary build, I have to install the correct Python version to be used by LabPlot / Cantor on my machine? And the current version will need Python 3.11.x and won’t work if Python 3.12.x is the only version installed?

How can I determine the required Python version from LabPlot in case it’s not already installed?

[–] [email protected] 1 points 4 months ago (7 children)

And while we're at it: How does LabPlot decide which python version to use?

On my Linux system, there is no python and python3 points to Python 3.10.12.

LabPlot uses Python 3.11.9 and Python 3.12.2 is also installed.

Which mechanism is used by LabPlot to find the Python version to use? And (how) can I tweak it to make it use 3.12?

[–] [email protected] 1 points 4 months ago (9 children)

In the help you get when pressing F1 inside LabPlot: https://docs.kde.org/stable5/en/labplot/labplot2/CASworksheet.html

But it's great to hear this info is wrong!

I just tried this in LabPlot:

import sys
print(sys.version)

and the result was

3.11.9 (main, Nov 10 2011, 15:00:00) [GCC 13.2.0]

BTW: What does "CAS" stand for?

[–] [email protected] 1 points 4 months ago (1 children)

I think it should be quite simple to make this possible.

All we need is a parameter for the python binary path in the CAS Python configuration.

This could be improved further by adding such a parameter to the project, which would override the global value if it is set and which could be a relative path, too. (OK, maybe we would also need some kind of automatism to find the correct binary both on Windows and Linux, because the path from the venv to the acutal python binary is different depending on the system).

[–] [email protected] 1 points 4 months ago (11 children)

I just looked at the documentation and saw that LabPlot only supports Python 2.x, which makes it entirely uninteresting to me.

I'd love to see support for current Python versions, including following new releases, which might be easier to achieve with 3.x.

But I know this kind of things is a lot of work to get started, so I won't blame anyone for not doing this ;-)

[–] [email protected] 1 points 4 months ago (3 children)

That's a great feature, indeed!

I just downloaded this file and opened the notebook in LabPlot. This worked fine in general, but in some places I got errors because of missing packages.

I can see that there is a requirements.txt in the same repo two folders up.

How do I install packages into the environment LabPlot uses? Where can I define a venv for LabPlot? Can I define different venvs for different projects?

[–] [email protected] 2 points 4 months ago

That sounds like something I should try, too.

Currently I'm using Linux Mint and I also have a dotfiles repo, so that sounds quite similar to your case.

[–] [email protected] 2 points 4 months ago

That's a good opportunity to look what other Lemmy apps there are in the F-Droid store.

The list is impressingly long now :-)

I tried Voyager and it doesn't show any of the problems I have in Jerboa while offering everything I need - that solves it very well for me.

[–] [email protected] 2 points 4 months ago

Yes! That's the correct way to write this, thank you! 😊

And it's already set inside /etc/nixos/hardware-configuration.nix after installing inside a VM.

I had an additional layer 8 problem - clipboard sharing doesn't work until it's enabled in the VirtualBox host , too 🙃

[–] [email protected] 2 points 4 months ago (2 children)

Thank you very much!

nix.settings.extra-experimental-features = [ “nix-command” “flakes” ];
seems to actually work in my setup.

And it's nice to know that I can make do with one --extra-experimental-features argument for several features at once.

May I be so bold as to ask a follow-up question that doesn't have much to do with this one?

What do I have to do to get Virtualbox Guest Additions to work on NixOS? Not having a shared clipboard is driving me crazy ;-)

Once again everything I found on the internet leads to errors during sudo nixos rebuild. I hope it's just another case of knowing the correct names for the actual packages or options to use.

Can someone help me here?

 

So I tried to follow some tutorial about flakes, but it seems these are extra-experimental still.

I am using NixOS 23.11 with Nix 2.18.1 in a VM (those are the most recent stable versions, right?).

Trying around I already found out that instead of eg. nix flake update I have to use --extra-experimental-features two times to get this simple command:

nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update

Searching the web I found several different things that people put into their /etc/nixos/configuration.nix to enable this globally, but none of those worked for me. I assume there is still a way to do this - can someone please tell me the correct syntax for Nix 2.18.1?

What makes things worse is that I cannot start playing around with home-manager and flakes, because home-manager switch flake . seems to use nix flake internally, which leads to errors instead of results.

 

Whe using my discuss.tchncs.de account with the app Jerboa on my Android phone, I get a message

This account (silmaril) is being verified

and things don't work, whenever I try to use certain functions, eg. listing my saved postings.

If I continue trying, the message changes to

Failed to connect to instance (https://discuss.tchncs.de/)

General reading of posts still works.

So I am wondering if there is something I still have to do in the verification process of my account?

This might just be some bug in the app or incompatibility between app and server - but before digging deeper into this I wanted to check if there is a known solution.

 

I heard a lot about the concepts of nix and NixOS and I'd love to try it.

After installing the VirtualBox demo, I keep getting stuck with every tiny step I take, though.

So I was wondering if there are any tutorials for beginners that you can recommend?

I couldn't find anything on the internet - everything that looks like a tutorial presumes a lot of things everybody seems to know about nix, so no need to explain those.

Where can I find those explanations to make the first baby steps with NixOS?

To put it in other words: Where is NixOS for dummies?

view more: next ›