Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while setting up and running the project locally #109

Open
sdglitched opened this issue Nov 11, 2024 · 0 comments
Open

Issue while setting up and running the project locally #109

sdglitched opened this issue Nov 11, 2024 · 0 comments

Comments

@sdglitched
Copy link
Contributor

sdglitched commented Nov 11, 2024

Found couple of more issues while trying to setup and run the project locally

  1. While installing the dependencies with poetry monitored below traceback
  - Installing gssapi (1.9.0): Failed
    
  ChefBuildError
  
  Backend subprocess exited when trying to invoke get_requires_for_build_wheel
    
  /bin/sh: line 1: krb5-config: command not found
  Traceback (most recent call last):
    File "/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
      ~~~~^^
    File "/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/tmpoa6ahu2a/.venv/lib/python3.13/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
             ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/tmpoa6ahu2a/.venv/lib/python3.13/site-packages/setuptools/build_meta.py", line 303, in _get_build_requires
      self.run_setup()
      ~~~~~~~~~~~~~~^^
    File "/tmp/tmpoa6ahu2a/.venv/lib/python3.13/site-packages/setuptools/build_meta.py", line 319, in run_setup
      exec(code, locals())
      ~~~~^^^^^^^^^^^^^^^^
    File "<string>", line 109, in <module>
    File "<string>", line 22, in get_output
    File "/usr/lib64/python3.13/subprocess.py", line 472, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
             ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                 **kwargs).stdout
                 ^^^^^^^^^
    File "/usr/lib64/python3.13/subprocess.py", line 577, in run
      raise CalledProcessError(retcode, process.args,
                               output=stdout, stderr=stderr)
  subprocess.CalledProcessError: Command 'krb5-config --libs gssapi' returned non-zero exit status 127.
  

  at /usr/lib/python3.13/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with gssapi (1.9.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "gssapi (==1.9.0)"'.

It seems krb5-devel needs to be installed as pre-requisite

  1. While trying to run the project found a typo in README.md (missing \)
    image

  2. After fixing the above two issues locally and trying to hit the endpoint /api /v1 /users /search /{username} api failed with code=500 as no table users was present in database
    image
    image
    Also, a new database file was created webhook-to-fedora-messaging.db
    image
    It seems W2FM_CONFIG (in my case: /home/sdglitched/webhook-to-fedora-messaging/config) needs to be exported for correct functioning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant