You are not logged in.

#1 2024-05-04 08:01:24

amixra
Member
Registered: 2022-01-24
Posts: 105

Something wrong with python packages

Aur Informant doesn't works. Throws following error.

:: Running pre-transaction hooks...
(1/3) Checking Arch News with Informant ...
Traceback (most recent call last):
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 397, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/informant", line 33, in <module>
    sys.exit(load_entry_point('informant==0.5.0', 'console_scripts', 'informant')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/informant", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 862, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 399, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for informant
error: command failed to execute correctly
error: failed to commit transaction (failed to run transaction hooks)
Errors occurred, no packages were upgraded.

solc-select doesn't works

Traceback (most recent call last):
  File "/home/amit/.local/bin/solc-select", line 5, in <module>
    from solc_select.__main__ import solc_select
ModuleNotFoundError: No module named 'solc_select'

Experiment at-least.

Offline

#2 2024-05-04 08:03:30

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,583

Re: Something wrong with python packages

I think you need to rebuild the package then install it.

Offline

#3 2024-05-04 08:06:20

amixra
Member
Registered: 2022-01-24
Posts: 105

Re: Something wrong with python packages

Yes worked. LOL. What could be the reason behind it?


Experiment at-least.

Offline

#4 2024-05-04 08:53:37

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,952
Website

Re: Something wrong with python packages

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#5 2024-05-04 09:25:19

Awebb
Member
Registered: 2010-05-06
Posts: 6,333

Re: Something wrong with python packages

amixra wrote:

Yes worked. LOL. What could be the reason behind it?

Big Python updates require Python packages to be rebuild. For some reason they didn't think a bump that made it necessary to rebuild half the official repo was a news post.

Offline

#6 2024-05-04 11:35:41

loqs
Member
Registered: 2014-03-06
Posts: 17,616

Re: Something wrong with python packages

Awebb wrote:

Big Python updates require Python packages to be rebuild. For some reason they didn't think a bump that made it necessary to rebuild half the official repo was a news post.

Why would it require a news post when for the official packages no user intervention is required?

Offline

#7 2024-05-05 22:03:36

ashnur
Member
Registered: 2015-03-10
Posts: 4

Re: Something wrong with python packages

loqs wrote:
Awebb wrote:

Big Python updates require Python packages to be rebuild. For some reason they didn't think a bump that made it necessary to rebuild half the official repo was a news post.

Why would it require a news post when for the official packages no user intervention is required?

Makes sense, but on the other hand since that update, and even though I already updated packages from extra that are built for that version of python, still everything is broken for me. And from the looks of it, I am not alone

Offline

#8 2024-05-05 22:07:46

icar
Member
From: Catalunya
Registered: 2020-07-31
Posts: 467

Re: Something wrong with python packages

You might want https://github.com/maximbaz/rebuild-detector to be able to notice packages in your system require rebuilding.

Offline

#9 2024-05-05 22:54:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,633
Website

Re: Something wrong with python packages

This is not specific to python packages.  It is a user's responsibility to rebuild AUR packages when dependencies have ABI-breaking updates.

ashnur wrote:

still everything is broken for me

Define "everything"

ashnur wrote:

from the looks of it, I am not alone

From the looks of what?

If you want help, you need to define the problem by describing your symptoms.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#10 2024-05-06 07:04:01

Awebb
Member
Registered: 2010-05-06
Posts: 6,333

Re: Something wrong with python packages

loqs wrote:

Why would it require a news post when for the official packages no user intervention is required?

Who uses the AUR anyway, right? roll

Offline

#11 2024-05-06 07:50:54

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,413
Website

Re: Something wrong with python packages

Awebb wrote:
loqs wrote:

Why would it require a news post when for the official packages no user intervention is required?

Who uses the AUR anyway, right? roll

An update hook like the one for perl would be potentially useful.

Offline

#12 2024-05-06 09:42:52

ashnur
Member
Registered: 2015-03-10
Posts: 4

Re: Something wrong with python packages

Trilby wrote:

Define "everything"

Well, not really everything, I was just getting a wee bit frustrated. As it usually happens, I figured out what needed to be cleaned, rebuilt, etc. One of these wasn't even a package, but a script using its own venv. Don't I love python and its many virtual envs /s

Trilby wrote:

From the looks of what?

Loads of recent posts around here about python related stuff not working.

Trilby wrote:

If you want help, you need to define the problem by describing your symptoms.

Fair, and thanks, but as I wrote above in this post, after crying about it online, I realized where I needed to do more.

Offline

#13 2024-05-06 12:51:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,633
Website

Re: Something wrong with python packages

ashnur wrote:

Fair, and thanks, but as I wrote above in this post, after crying about it online, I realized where I needed to do more.

I suspect many of us solve problems this way.  I keep drafts of my complaints, and work on the draft until I feel it is suitably complete and the problem properly documented before I post it on the forum.  An exceedingly vast majority of these problems are then solved before I post.

It's much more effective to do the crying part in private so one does not become known as the boy who cried chicken little ... or something like that.

Last edited by Trilby (2024-05-06 12:52:08)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#14 2024-05-06 13:14:11

Awebb
Member
Registered: 2010-05-06
Posts: 6,333

Re: Something wrong with python packages

Allan wrote:

An update hook like the one for perl would be potentially useful.

That might reach even more people than the news.

Offline

#15 2024-05-06 16:37:14

seth
Member
Registered: 2012-09-03
Posts: 52,412

Re: Something wrong with python packages

Trilby wrote:

It's much more effective to do the crying part in private so one does not become known as the boy who cried chicken little ... or something like that.

"I'll do my crying in the rain"…

Offline

Board footer

Powered by FluxBB