Coder Social home page Coder Social logo

Comments (3)

arielb2 avatar arielb2 commented on September 26, 2024

the same message with "Provides"
~]$ pkgwat provides sssd
Starting new HTTP connection (1): localhost
No JSON object could be decoded: line 1 column 0 (char 0)

#########################################################
AttributeError: 'dict' object has no attribute 'provides'

Module fedoracommunity.connectors.yumconnector:259 in query_provides view

rows = self._pkgtuples_to_rows(pkg.provides, _eq=None)

from fedora-packages.

ralphbean avatar ralphbean commented on September 26, 2024

Some investigation.

I tried to find out what that "pkg" object is if it has no requires or provides attribute. I found that it is actually a dict containing an error message.

See this

I then tracked that down to see that its coming from here, from the yum connector:

https://github.com/fedora-infra/fedora-packages/blob/develop/fedoracommunity/connectors/yumconnector.py#L162

I guess the next step is to remove that (since it doesn't make any sense). And to just raise that yum dep error. I'd rather have error messages that tell us what went wrong instead of ones that obfuscate the failure.

from fedora-packages.

ralphbean avatar ralphbean commented on September 26, 2024

So, I'm pretty sure this is just working now. The issue is that the rpmdb intermittently gets corrupted. There is a cronjob now that sets it straight every 15 minutes.

~❯ pkgwat provides nethack
+---------------------------------+
| Provides                        |
+---------------------------------+
| nethack(x86-64) 0-3.4.3-29.fc20 |
| nethack 0-3.4.3-29.fc20         |
| config(nethack) 0-3.4.3-29.fc20 |
+---------------------------------+

from fedora-packages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.