Deutsch   English   Français   Italiano  
<m1cqr6Fqf8iU2@mid.individual.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!feeds.phibee-telecom.net!news.mixmin.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: vallor <vallor@cultnix.org>
Newsgroups: comp.os.linux.advocacy
Subject: Re: Hobbyware WinCrap 11 strikes again
Date: 16 Feb 2025 00:46:30 GMT
Lines: 67
Message-ID: <m1cqr6Fqf8iU2@mid.individual.net>
References: <vo75q5$3vki0$1@dont-email.me> <zCJpP.39$EyH6.1@fx45.iad>
	<vo7ttl$3nof$1@dont-email.me> <qhLpP.67094$za5e.59176@fx09.iad>
	<vo830p$4ntj$1@dont-email.me> <f_1qP.80552$YsRf.33634@fx18.iad>
	<vocbbn$1444h$1@dont-email.me> <1WoqP.4088$NgFa.1524@fx46.iad>
	<voeqct$1lgc9$1@dont-email.me> <6CIqP.4095$NgFa.688@fx46.iad>
	<vogq82$20qbu$1@dont-email.me> <67b07a28$0$29716$426a74cc@news.free.fr>
	<m1ce2kFoog9U1@mid.individual.net> <67b10f38$0$28493$426a34cc@news.free.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net dsFTr64GDCwn17JAy93YYgB1J7Odrl/bOlGIX8laAKWUUqov29
Cancel-Lock: sha1:dr+03FZ2mKvk9M0qZZ1dgLi0W4Y= sha256:3Hf1Y3KoG60S9SdnwgaUpFDy+sq7f+PrdTtRQJJd9E8=
X-Face: +McU)#<-H?9lTb(Th!zR`EpVrp<0)1p5CmPu.kOscy8LRp_\u`:tW;dxPo./(fCl
 CaKku`)]}.V/"6rISCIDP`
User-Agent: Pan/0.162 (Hmm4; 0a913ba3; Linux-6.14.0-rc2)
Bytes: 4352

On 15 Feb 2025 22:03:36 GMT, Stéphane CARPENTIER <sc@fiat-linux.fr> wrote
in <67b10f38$0$28493$426a34cc@news.free.fr>:

> Le 15-02-2025, rbowman <bowman@montana.com> a écrit :
>> On 15 Feb 2025 11:27:36 GMT, Stéphane CARPENTIER wrote:
>>
>>
>>> Maybe things changed since I looked at that the last time. But, the last
>>> time I checked the msi provided only a way to install easily a new
>>> software on Windows. And sometimes with something to remove them. There
>>> was nothing about the updates.
>>
>> On Ubuntu Brave is a snap. On Windows Brave will tell you when an update 
>> is available, allow you to download it, and apply it on relaunch.
> 
> So, in that case, it's not managed by the package installer, but by the
> application itself. Which is different. And the purpose of the package
> manager is for the software to avoid doing this.
> 
>> On Ubuntu, Brave will show the update but can't apply it by itself.
>> You have to update the snap and relaunch. Minor annoyance. 
> 
> So here, the information comes from the software but the package manager
> takes care of the update. Which is the proper way, because if the
> software didn't checked itself, the package manager would have done it.
> 
>>> Now, on some systems, like ubuntu, python is managed by the system, so
>>> it refuses to execute a "pip install". And if the library isn't provided
>>> by ubuntu, you have to run "pip install" in a virtual environment to be
>>> able to use a library designed not to be shared with the libraries of
>>> the system.
>>
>> I believe 'sudo pip install xxxxx' will work although I prefer to use 
>> venvs. Installing to the system libs might be preferable for something 
>> like ruff but I still do that in the venv.
> 
> I can't test it now, but I'm pretty sure it wouldn't work. The error
> message was explicit. It didn't said "you don't have the authorisation".
> It said something like "the libraries are managed by your distribution
> and you should use the package manager of your distribution instead, run
> sudo apt install". I'm sure there are ways to force "pip install" to run
> anyway, but I strongly believe it would be a bad idea because I have no
> idea about the side effects.

It also gives instructions on how to set up a venv, which (once I figured out
what that means), seems to work well.

For example, I have a Fooocus directory that contains another Fooocus
directory, which contains the git repo pulled from the master.

In there, I've set up a venv -- so to run Fooocus, I cd into the git
repo directory, then run 

$ ../bin/python3 entry_with_update.py

To get all the requirements installed first, I ran

$ ../bin/pip3 install -r requirements_versions.txt

It was all fairly easy, and it's compartmentalized.

-- 
-v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
   OS: Linux 6.14.0-rc2 Release: Mint 22.1 Mem: 258G
   "Enter any 11-digit prime number to continue..."
[ note about that tag: that's actually not too difficult
with Linux primes(1)...]