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

Configuration File type is not supported: Clickgen 2.1.6 #143

Closed
yochananmarqos opened this issue Sep 1, 2023 · 7 comments
Closed

Configuration File type is not supported: Clickgen 2.1.6 #143

yochananmarqos opened this issue Sep 1, 2023 · 7 comments
Assignees
Labels
assigned Under progress.

Comments

@yochananmarqos
Copy link

Attempting to build my bibata-cursor-theme AUR package with python-clickgen 2.1.6:

[Fail] Error occurred while processing build.toml:
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/clickgen/scripts/ctgen.py", line 157, in process
    cfg = parse_config_file(str(file.resolve()), **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/clickgen/configparser.py", line 187, in parse_config_file
    raise IOError("Configuration File type is not supported")
OSError: Configuration File type is not supported
[Fail] Error occurred while processing build.toml:
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/clickgen/scripts/ctgen.py", line 157, in process
    cfg = parse_config_file(str(file.resolve()), **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/clickgen/configparser.py", line 187, in parse_config_file
    raise IOError("Configuration File type is not supported")
OSError: Configuration File type is not supported
[Fail] Error occurred while processing build.toml:
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/clickgen/scripts/ctgen.py", line 157, in process
    cfg = parse_config_file(str(file.resolve()), **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/clickgen/configparser.py", line 187, in parse_config_file
    raise IOError("Configuration File type is not supported")
OSError: Configuration File type is not supported
[Fail] Error occurred while processing build.toml:
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/clickgen/scripts/ctgen.py", line 157, in process
    cfg = parse_config_file(str(file.resolve()), **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/clickgen/configparser.py", line 187, in parse_config_file
    raise IOError("Configuration File type is not supported")
OSError: Configuration File type is not supported
[Fail] Error occurred while processing build.toml:
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/clickgen/scripts/ctgen.py", line 157, in process
    cfg = parse_config_file(str(file.resolve()), **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/clickgen/configparser.py", line 187, in parse_config_file
    raise IOError("Configuration File type is not supported")
OSError: Configuration File type is not supported
[Fail] Error occurred while processing build.toml:
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/clickgen/scripts/ctgen.py", line 157, in process
    cfg = parse_config_file(str(file.resolve()), **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/clickgen/configparser.py", line 187, in parse_config_file
    raise IOError("Configuration File type is not supported")
OSError: Configuration File type is not supported
@ful1e5
Copy link
Owner

ful1e5 commented Sep 2, 2023

@yochananmarqos Could you please share the local PKGBUILD for python-cickgen so that I can easily debug the build process?

@yochananmarqos
Copy link
Author

PKGBUILD
pkgname=python-clickgen
_name=${pkgname#python-}
pkgver=2.1.6
pkgrel=1
pkgdesc="X11 & Windows cursor building API"
arch=('any')
url="https://github.com/ful1e5/clickgen"
license=('MIT')
depends=('python-attrs' 'python-numpy' 'python-pillow' 'python-toml' 'python-yaml')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('5b9d049b6c47989ad650b5ba7fcd34cb9219d12d0385145a11a6767101f1168a')

build() {
  cd "$_name-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "$_name-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}

@ful1e5
Copy link
Owner

ful1e5 commented Sep 12, 2023

@yochananmarqos I tested building Bibata using the PKGBUILD you provided. I believe the issue may be on your end, or it seems that the build.toml you are using for building Bibata either doesn't exist or is not parsing correctly, as I can observe from your logs.

clickgen_bibata_build.mp4

@ful1e5 ful1e5 self-assigned this Sep 12, 2023
@ful1e5 ful1e5 added the assigned Under progress. label Sep 12, 2023
@yochananmarqos
Copy link
Author

The video you posted is of building python-clickgen, not bibata-cursor-theme. Did you use the AUR PKGBUILD?

If there's something wrong on my end, then why does it build fine with python-clickgen 2.1.3?

Tip: Use the -s flag with makepkg to install dependencies. 😉

@ful1e5
Copy link
Owner

ful1e5 commented Sep 13, 2023

Patched in ful1e5/clickgen@889f979 and will be available in the next clickgen release.

@ful1e5
Copy link
Owner

ful1e5 commented Sep 13, 2023

@yochananmarqos https://github.com/ful1e5/clickgen/releases/tag/v2.1.7

@yochananmarqos
Copy link
Author

2.1.7 resolves the issue. 👍

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

No branches or pull requests

2 participants