Giter Club home page Giter Club logo

Comments (5)

AMDmi3 avatar AMDmi3 commented on June 24, 2024 1

I doubt --without-doc-strings was the cause, as in the python source it looks like it just effectively replaces builtin docstrings with empty strings, so it shouldn't introduce any semantic changes. But it could be some other custom flag.
Regardless, I've removed the problematic code which is no longer needed.

from repology-updater.

AMDmi3 avatar AMDmi3 commented on June 24, 2024

Try with --fatal to get a backtrace. Which python version do you have?

from repology-updater.

fanboimsft avatar fanboimsft commented on June 24, 2024

I have Python 3.11.2

--fatal log:

Traceback (most recent call last):
  File "/usr/lib/python3.11/inspect.py", line 1369, in getfullargspec
    sig = _signature_from_callable(func,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/inspect.py", line 2519, in _signature_from_callable
    return _signature_from_builtin(sigcls, obj,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/inspect.py", line 2326, in _signature_from_builtin
    raise ValueError("no signature found for builtin {!r}".format(func))
ValueError: no signature found for builtin <slot wrapper '__init__' of 'object' objects>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/new/root/repology-updater/./repology-update.py", line 410, in <module>
    sys.exit(main())
             ^^^^^^
  File "/new/root/repology-updater/./repology-update.py", line 387, in main
    process_repositories(env)
  File "/new/root/repology-updater/./repology-update.py", line 190, in process_repositories
    env.get_repo_processor().parse([reponame], transformer=transformer, maintainermgr=maintainermgr, logger=runlogger)
  File "/new/root/repology-updater/repology/repoproc/__init__.py", line 250, in parse
    self._parse(repository, transformer, maintainermgr, logger)
  File "/new/root/repology-updater/repology/repoproc/__init__.py", line 226, in _parse
    serializer.serialize(self._iter_parse_all_sources(repository, transformer, maintainermgr, logger))
  File "/new/root/repology-updater/repology/repoproc/serialization.py", line 59, in serialize
    for package in packages:
  File "/new/root/repology-updater/repology/repoproc/__init__.py", line 191, in _iter_parse_all_sources
    yield from self._iter_parse_source(repository, source, transformer, maintainermgr, logger.get_indented())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/new/root/repology-updater/repology/repoproc/__init__.py", line 173, in _iter_parse_source
    self.parser_factory.spawn_with_known_args(
  File "/new/root/repology-updater/repology/moduleutils.py", line 73, in spawn_with_known_args
    filtered_kwargs = {
                      ^
  File "/new/root/repology-updater/repology/moduleutils.py", line 74, in <dictcomp>
    key: value for key, value in kwargs.items() if key in inspect.getfullargspec(class_.__init__).args
                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/inspect.py", line 1379, in getfullargspec
    raise TypeError('unsupported callable') from ex
TypeError: unsupported callable

log.txt

from repology-updater.

AMDmi3 avatar AMDmi3 commented on June 24, 2024

Please provide more information about your system.

Also, does this work for you?

import inspect
inspect.getfullargspec(object.__init__)

from repology-updater.

fanboimsft avatar fanboimsft commented on June 24, 2024

It's a custom fork of KISS Linux, recompiling python without the "--without-doc-strings" flag fixed the issue.

Thanks for helping me figure this out!

from repology-updater.

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.