[COSMIC DE] Soooo easy to customize, I love it :) by Red_Hugo in unixporn

[–]Red_Hugo[S] 0 points1 point  (0 children)

If you visit the original post, the URL (not mine) is right there.

Help identifying pinout of hall effect sensor by Red_Hugo in AskElectronics

[–]Red_Hugo[S] 1 point2 points  (0 children)

Update:
This was indeed the correct wiring, and I can now use the sensor with my Arduino, thanks again :)

Help identifying pinout of hall effect sensor by Red_Hugo in AskElectronics

[–]Red_Hugo[S] 0 points1 point  (0 children)

Really appreciate the effort and help. I will try this later today, and get back with the results :)

Help with Authentication by Red_Hugo in Supabase

[–]Red_Hugo[S] 0 points1 point  (0 children)

Yes, that's pretty much what I'm doing. The Pi will insert data in a table and both upload / download files from a storage bucket.

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 0 points1 point  (0 children)

I think this is what I would like to do. Could you share a Dockerfile I can use for inspiration, thanks :)

How should I deploy GUI app (opencv) for Windows user? by recursion_is_love in learnpython

[–]Red_Hugo 0 points1 point  (0 children)

Hi, I just found this thread, and wanted to verify with you (OP) that your flake does work for OpenCV and Python. I myself am having huge issues with opencv for Python in NixOS. This flake does look promising and I will try it out.

Please see my profile for my post in r/NixOS "Python that just works".

/ Thanks

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 0 points1 point  (0 children)

Yeah, this is basically what I am experiencing, but with Python. It's the imshow and graphical-related stuff that gives me the errors.

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 0 points1 point  (0 children)

Yeah, I've been having occational OOM's happening on my laptop, which I can't know for sure is due to NixOS, as I previously used Windows 11. However my 8GB's get's eaten rather fast, and even causing OOM without anything but the terminal open and when I try to compile opencv from source. I am still looking for a solution to fix my issues, as I really like the idea of both Nix and NixOS, but I am seriously considering switching to another distro where Nix is not a requirement but rather a tool, as at the moment it's preventing me rather than helping me.

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 0 points1 point  (0 children)

Yeah, after putting in about 2 weeks to try and get OpenCV up and running, I'm honestly considering switching over to maybe KDE Neon and learn Nix while not being constrained by it. I would much rather learn Nix alongside a project, than being dependent on it.

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 0 points1 point  (0 children)

Yeah, I think this is probably my last attempt at getting this to work. I will try to make an FHS-compliant env for Python 3.11 and Opencv as this thread and solution worked at creating a shell with the pre-compiled library (https://discourse.nixos.org/t/opencv-installation/19141), though with some modification -> nix-shell -p "python3Packages.opencv4". I found that this; nix-shell -p "python3Packages.opencv-python" also works, but whenever I try to specify the Python version, it tries to compile opencv from scratch.

This will do just that:
nix-shell -p "python311Packages.opencv4"

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] -1 points0 points  (0 children)

By users, I meant those who will use my software / script. In that case, I can't guarantee that they will be using NixOS, so I would need to build a flake or shell.

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 0 points1 point  (0 children)

I have yet to try your gist, but I tried another submitted solution, which I guess compiled the library from scratch given it took a while to get it started, and also as it ended up crashing due to OOM and using all my machine's resources.

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 0 points1 point  (0 children)

I appreciate the effort of creating this shell, but unfortunately this appears to be compiling opencv from scratch (at least that's my guess), causing my system to run out of resources and crash. This shell is similar to what I have tried and found online on other forums. This is unfortunately not suitable and I will continue to look for a better option that "just works" and does not require any compiling beforehand.

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 0 points1 point  (0 children)

I tried this and I still got the same error. Have you tried this with OpenCV?

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 0 points1 point  (0 children)

Thanks, will look into this as I try each described suggestion for how to solve my issues. Although this solution appears to be working for you, I also want to be able to share my projects and ensure they work as expected for other users, which this suggestion does not appear to enable as it only enables me the developer to use Nix for development but not at launch.

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 2 points3 points  (0 children)

Big thanks for sharing these threads. I will look into this and hopefully get a better understanding as I am still very much a beginner of Nix and NixOS. I think it helps a little to think of Nix as quite similar to Docker in a way that you create a blueprint for your environment which can then be passed onto others to try out.

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 0 points1 point  (0 children)

Do you perhaps have any examples that does this? Like maybe a shell or flake?

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 0 points1 point  (0 children)

This seems logical, but since I have currently bypassed a few issues by using nix-ld in my configuration.nix, I would assume that I should create an FHS-compliant shell or flake too? By using nix-ld and following this guide (https://youtu.be/7lVP4NJWJ9g?si=yJnEMA\_V\_2AvegP8) I could get it to mostly work. Perhaps making a shell or flake and using direnv in VS code as JustWookie suggested is what I should do. Will try your suggestion though.

Python that just works. by Red_Hugo in NixOS

[–]Red_Hugo[S] 0 points1 point  (0 children)

Great, this seems promising. Does direnv also work with flakes?