I didn’t know how to correctly use python in archlinux, is there a solution in your opinion?

|
il_muflone 2022-07-18 21:42:02
I don’t have the .local/lib folder at all, and my installation is years old
prestidigitonium 2022-07-18 21:42:09
il_muflone 2022-07-18 21:40:47
almost for sure you ran pip without activating your venv

what does it has to do with it? I sometimes used pip in venv and sometimes globally

Seّyed 2022-07-18 21:42:21
c3rt1fi3d_n0ob 2022-07-18 21:37:26
how to use yt-dlp sponserblock to stream youtube videos in mpv?

https://github.com/po5/mpv_sponsorblock ?

il_muflone 2022-07-18 21:42:30
if you use pip globally, where do you expect the packages are installed?
il_muflone 2022-07-18 21:44:07
Yasin_allahverdi 2022-07-18 21:37:16
My arch is stuck in grub shell
How can i recover it ?

do you expect people will ask you the details?

prestidigitonium 2022-07-18 21:44:25
il_muflone 2022-07-18 21:42:30
if you use pip globally, where do you expect the packages are installed?

ok, so why it’s so unusual to have a local python library? A lot of users could have local python lib in home folder

il_muflone 2022-07-18 21:45:07
prestidigitonium 2022-07-18 21:44:25
ok, so why it’s so unusual to have a local python library? A lot of users could have local python lib in home folder

that’s a perfect recipe for disasters

Yasin_allahverdi 2022-07-18 21:45:18
il_muflone 2022-07-18 21:44:07
do you expect people will ask you the details?

No.
I need a solution

il_muflone 2022-07-18 21:45:36
Yasin_allahverdi 2022-07-18 21:45:18
No.
I need a solution

you gave ZERO information
you won’t receive any help

C0rn3j 2022-07-18 21:46:10
prestidigitonium 2022-07-18 21:26:52
some of them are from my venv installs

That’s not a venv.

il_muflone 2022-07-18 21:46:30
prestidigitonium 2022-07-18 21:44:25
ok, so why it’s so unusual to have a local python library? A lot of users could have local python lib in home folder

when you run python something you have some packages in your system folder and some packages into your local user

so you have mixed old and new packages

prestidigitonium 2022-07-18 21:46:59
C0rn3j 2022-07-18 21:46:10
That’s not a venv.

I often use pip outside venv, is it the problem?

Yasin_allahverdi 2022-07-18 21:47:20
il_muflone 2022-07-18 21:45:36
you gave ZERO information
you won’t receive any help

I’d run a dd command and then my arch rebooted automatically.

il_muflone 2022-07-18 21:47:58
Yasin_allahverdi 2022-07-18 21:47:20
I’d run a dd command and then my arch rebooted automatically.

ok.. now we have 1 information but it’s not enough

what command exactly you run?

C0rn3j 2022-07-18 21:48:01
prestidigitonium 2022-07-18 21:46:59
I often use pip outside venv, is it the problem?

Why did you install packaging? It’s in the repos

Yasin_allahverdi 2022-07-18 21:48:58
il_muflone 2022-07-18 21:47:58
ok.. now we have 1 information but it’s not enough

what command exactly you run?

dd if=/dev/zero of=/dev/sda2 bs=1M count=1

il_muflone 2022-07-18 21:49:06
C0rn3j 2022-07-18 21:48:01
Why did you install packaging? It’s in the repos

it may be required from a “user installed” package

il_muflone 2022-07-18 21:49:27
Yasin_allahverdi 2022-07-18 21:48:58
dd if=/dev/zero of=/dev/sda2 bs=1M count=1

what was /dev/sda2 ?

Yasin_allahverdi 2022-07-18 21:50:00
il_muflone 2022-07-18 21:49:27
what was /dev/sda2 ?

My Main Hard

prestidigitonium 2022-07-18 21:50:06
C0rn3j 2022-07-18 21:48:01
Why did you install packaging? It’s in the repos

I didn’t know how to correctly use python in archlinux, is there a solution in your opinion? Can I wipe all python libs and start again? I don’t have a lot of packages

abhi25678 2022-07-18 21:50:08
archlinuxgroup-600222.jpg

C0rn3j 2022-07-18 21:50:43
prestidigitonium 2022-07-18 21:50:06
I didn’t know how to correctly use python in archlinux, is there a solution in your opinion? Can I wipe all python libs and start again? I don’t have a lot of packages

rm -rf the local python folder

il_muflone 2022-07-18 21:50:50
Yasin_allahverdi 2022-07-18 21:50:00
My Main Hard

so what’s your issue? You asked to clean the first megabyte of your main partition and it was done

lappretard 2022-07-18 21:50:53
Yasin_allahverdi 2022-07-18 21:48:58
dd if=/dev/zero of=/dev/sda2 bs=1M count=1

sus

abhi25678 2022-07-18 21:51:14
abhi25678 2022-07-18 21:50:08

why ntfs partiton is showing this error?

il_muflone 2022-07-18 21:51:51
prestidigitonium 2022-07-18 21:46:59
I often use pip outside venv, is it the problem?

never run pip install outside a venv

the same applies to users and root user

prestidigitonium 2022-07-18 21:52:49
C0rn3j 2022-07-18 21:50:43
rm -rf the local python folder

thanks

c3rt1fi3d_n0ob 2022-07-18 21:54:53
Seّyed 2022-07-18 21:42:21
https://github.com/po5/mpv_sponsorblock ?

thnx

btw how to prevent yt-dlp downloader from removing chapters?

this command is not working
yt-dlp –no-remove-chapters “https://sponsor.ajay.app” -f ‘bestvideo[ext=mp4] bestaudio[ext=m4a]/best[ext=mp4]’ “URL” -o “/path/to/download/%(title)s-%(uploader)s.%(ext)s” –no-mtime –sponsorblock-remove all

prestidigitonium 2022-07-18 21:56:08
il_muflone 2022-07-18 21:51:51
never run pip install outside a venv

the same applies to users and root user

Ok so if I need to run a python file from a bash script, how can I run it without errors? Should I enter the venv everytime using the bash script?

C0rn3j 2022-07-18 21:57:31
prestidigitonium 2022-07-18 21:56:08
Ok so if I need to run a python file from a bash script, how can I run it without errors? Should I enter the venv everytime using the bash script?

Or install the reqs through pacman

il_muflone 2022-07-18 21:59:36
prestidigitonium 2022-07-18 21:56:08
Ok so if I need to run a python file from a bash script, how can I run it without errors? Should I enter the venv everytime using the bash script?

using venvs is the safe way

romelsalwi 2022-07-18 22:38:41
Any libvirt experts here? I need help with virtio-blk. Specifying a iothreadpin has reduced performance for me.
romelsalwi 2022-07-18 22:41:34
romelsalwi 2022-07-18 22:38:41
Any libvirt experts here? I need help with virtio-blk. Specifying a iothreadpin has reduced performance for me.

I followed this https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Virtio_disk. But it has downgraded the performance. How can I allocate more threads for IO? Or shall I simply remove the override pin?

Yasin_allahverdi 2022-07-18 22:53:09
il_muflone 2022-07-18 21:50:50
so what’s your issue? You asked to clean the first megabyte of your main partition and it was done

Thanks

il_muflone 2022-07-18 22:54:54
Yasin_allahverdi 2022-07-18 22:53:09
Thanks

Jokes apart, you corrupted the first part of your sda2 partition

In the case you need to recover some data you can use a live ISO and run testdisk to try to recover your partition or photorec to recover the files only

|