Package Details: pyobd 1.19-1

Git Clone URL: https://aur.archlinux.org/pyobd.git (read-only, click to copy)
Package Base: pyobd
Description: An OBD-II compliant car diagnostic tool
Upstream URL: https://github.com/barracuda-fsh/pyobd
Licenses: GPL-2.0-only
Submitter: Presence
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 21
Popularity: 0.065253
First Submitted: 2013-06-17 14:51 (UTC)
Last Updated: 2024-09-06 21:12 (UTC)

Latest Comments

1 2 3 4 Next › Last »

HurricanePootis commented on 2025-03-18 22:10 (UTC)

@DocMAX I am able to build PyOBD in a clean chroot. Seems like your issue is with your installed version of pyinstaller. Try uninstalling it, deleting paru cache, and reinstalling it. It is possible you did not rebuild the package during a python upgrade.

DocMAX commented on 2025-03-18 15:21 (UTC) (edited on 2025-03-18 15:22 (UTC) by DocMAX)

[docmax@x1cg6 ~]$ yay -S pyobd AUR Explicit (1): pyobd-1.19-1 :: PKGBUILD up to date, skipping download: pyobd 1 pyobd (Build Files Exist) ==> Packages to cleanBuild? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> 1 pyobd (Build Files Exist) ==> Diffs to show? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> ==> Making package: pyobd 1.19-1 (Tue Mar 18 16:21:00 2025) ==> Retrieving sources... -> Found v1.19.tar.gz ==> WARNING: Skipping verification of source file PGP signatures. ==> Validating source files with sha256sums... v1.19.tar.gz ... Passed :: (1/1) Parsing SRCINFO: pyobd ==> Making package: pyobd 1.19-1 (Tue Mar 18 16:21:01 2025) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found v1.19.tar.gz ==> Validating source files with sha256sums... v1.19.tar.gz ... Passed ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Extracting v1.19.tar.gz with bsdtar ==> Sources are ready. ==> Making package: pyobd 1.19-1 (Tue Mar 18 16:21:02 2025) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Removing existing $pkgdir/ directory... ==> Starting build()... Traceback (most recent call last): File "/usr/bin/pyinstaller", line 8, in <module> sys.exit(_console_script_run()) ~^^ File "/usr/lib/python3.13/site-packages/PyInstaller/main.py", line 231, in _console_script_run run() ~^^ File "/usr/lib/python3.13/site-packages/PyInstaller/main.py", line 172, in run parser = generate_parser() File "/usr/lib/python3.13/site-packages/PyInstaller/main.py", line 137, in generate_parser import PyInstaller.building.build_main File "/usr/lib/python3.13/site-packages/PyInstaller/building/build_main.py", line 28, in <module> from PyInstaller.building.api import COLLECT, EXE, MERGE, PYZ File "/usr/lib/python3.13/site-packages/PyInstaller/building/api.py", line 33, in <module> from PyInstaller.building.splash import Splash # argument type validation in EXE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/PyInstaller/building/splash.py", line 24, in <module> from PyInstaller.utils.hooks.tcl_tk import tcltk_info File "/usr/lib/python3.13/site-packages/PyInstaller/utils/hooks/init.py", line 27, in <module> from PyInstaller.depend.imphookapi import PostGraphAPI File "/usr/lib/python3.13/site-packages/PyInstaller/depend/imphookapi.py", line 21, in <module> from PyInstaller.lib.modulegraph.modulegraph import (RuntimeModule, RuntimePackage) File "/usr/lib/python3.13/site-packages/PyInstaller/lib/modulegraph/modulegraph.py", line 34, in <module> from altgraph.ObjectGraph import ObjectGraph ModuleNotFoundError: No module named 'altgraph' ==> ERROR: A failure occurred in build(). Aborting... -> error making: pyobd-exit status 4 -> Failed to install the following packages. Manual intervention is required: pyobd - exit status 4

marco.righi commented on 2025-03-11 09:26 (UTC)

Error during installation

yay -S --sudoloop pyobd

generates the following error

==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: pyobd-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
pyobd - exit status 4

mvdberge commented on 2024-08-20 10:19 (UTC)

python-pillow is needed for the build, please add it to the dependencies. Thanks for your work! :-)

g33ky commented on 2024-06-30 15:20 (UTC)

The binary does not currently work. You will get the error message AttributeError: module 'numpy' has no attribute 'cumproduct'. Did you mean: 'cumprod'?. This is due to Numpy now being at version 2.x, but this program seems to use some 1.x functions. To get it to work, you will need to build this package with python-numpy version 1.26.2-4 installed. Once the package is built you can upgrade python-numpy to the latest again.

Building manually with venv does not seem to compile, but that's another rabbit hole.

Presence commented on 2024-06-25 20:02 (UTC)

@HurricanePootis Thanks! I've disowned the package if you would like to take over the maintenance of it.

HurricanePootis commented on 2024-06-07 03:11 (UTC)

Hello, I have a proposal for this PKGBUILD. 1. Make the license SPDX compliant 2. Use the official method of using pyinstaller to create a binary 3. Remove the pyobd, pyobd.desktop, pyobd.png, and pyobd.install as they are no longer needed as there is a binary, the .desktop and .pngs will be generated 4. Build the actual binary 5. And, install everything properly

Here is the patch file for the whole git repo

diff --git a/PKGBUILD b/PKGBUILD
index 4a7aa65..d70595b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,46 @@
 # Maintainer: Presence <dan465 at mail dot com>

 pkgname=pyobd
-pkgver=1.16
+pkgver=1.17
 pkgrel=1
 pkgdesc="An OBD-II compliant car diagnostic tool"
-arch=('any')
+arch=('x86_64')
 url="https://github.com/barracuda-fsh/pyobd"
-license=('GPL')
-depends=('python-wxpython' 'python-pyserial' 'python-numpy' 'python-tornado' 'python-pint' 'hicolor-icon-theme')
-install=pyobd.install
-source=(https://github.com/barracuda-fsh/pyobd/archive/refs/tags/v${pkgver}.tar.gz
-        pyobd
-        pyobd.desktop
-        pyobd.png)
-sha256sums=('a10a09113dc20e28938f58a54337ae69577405a4e01795441eb1dc0b5f08cdef'
-            '78399115ad17dedfaf6d0391e8bc5cf11575b0dcab4beff8103bbabe094d998f'
-            'cc7c1e48b320fad408a49e876ceb841c19cbd921ebe58a25966eb224daef7e22'
-            '14d0d90dcda38c339dc8397f004923075f6d4fce37b7c8539021f4a77b3a86fd')
+license=('GPL-2.0-only')
+makedepends=('pyinstaller' 'pyside6-tools' 'icoutils' 
+   'python-wxpython' 'python-pyserial' 'python-numpy'
+   'python-tornado' 'python-pint' 'pyside6' 'icoutils'
+   'gendesk')
+depends=('glibc' 'hicolor-icon-theme' 'zlib')
+source=(https://github.com/barracuda-fsh/pyobd/archive/refs/tags/v${pkgver}.tar.gz)
+sha256sums=('0bd0dd2bdb9d64f6c097f372f946e14c6ccf3bf97cd40ef6cc7742d92bf75fd0')

-package() {
+build() {
     cd "$srcdir/${pkgname}-${pkgver}"
+    pyinstaller --onefile -w -i pyobd.ico --add-data "pyobd.ico:." pyobd.py
+    gendesk -f --pkgname=$pkgname \
+    --pkgdesc="$pkgdesc" \
+    --name=$pkgname \
+    --exec=$pkgname \
+    --icon=$pkgname \
+    --terminal=false \
+    --categories=Development,Utilities
+
+    mkdir -p "$srcdir/icons"
+    icotool -x pyobd.ico -o "$srcdir/icons"
+}

-    install -Dm644 "$srcdir/pyobd.desktop"  "$pkgdir/usr/share/applications/$pkgname.desktop"
-    install -Dm644 "$srcdir/pyobd.png"      "$pkgdir/usr/share/icons/hicolor/32x32/apps/$pkgname.png"
-    install -Dm644 "COPYING"                "$pkgdir/usr/share/licenses/$pkgname/COPYING"
-    install -Dm644 "pyobd.ico"              "$pkgdir/usr/lib/$pkgname/pyobd.ico"
-    install -Dm755 "$srcdir/pyobd"          "$pkgdir/usr/bin/pyobd"
+package() {
+    cd "$srcdir/${pkgname}-${pkgver}"

-    mkdir -p "$pkgdir/usr/lib/$pkgname/obd/protocols/"
-    install -m644 -t "$pkgdir/usr/lib/$pkgname/" *.py
-    install -m644 -t "$pkgdir/usr/lib/$pkgname/obd/" obd/*.py
-    install -m644 -t "$pkgdir/usr/lib/$pkgname/obd/protocols/" obd/protocols/*.py
+    install -Dm755 "dist/$pkgname" "$pkgdir/usr/bin/$pkgname"
+    install -Dm644 "$srcdir/${pkgname}-${pkgver}/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
+    cd "$srcdir/icons"
+    export num=1
+    for size in {16,24,32,48,64,72,96,128,256};
+    do
+       install -Dm644 ${pkgname}_${num}_${size}x${size}x32.png "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/$pkgname.png"
+       export num=$(($num+1))
+    done
 }

diff --git a/pyobd b/pyobd
deleted file mode 100644
index 58ac32e..0000000
--- a/pyobd
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-cd /usr/lib/pyobd
-python3 pyobd.py
diff --git a/pyobd.desktop b/pyobd.desktop
deleted file mode 100644
index 3d56943..0000000
--- a/pyobd.desktop
+++ /dev/null
@@ -1,11 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Icon=pyobd
-Name=pyOBD
-GenericName=OBD2 Diagnostics
-Comment=Car On-Board 2 vehicle diagnostics (ELM-32x compatible interface)
-Exec=pyobd
-Terminal=false
-Type=Application
-Categories=Utility;
-StartupNotify=true
diff --git a/pyobd.install b/pyobd.install
deleted file mode 100644
index 5f3cb01..0000000
--- a/pyobd.install
+++ /dev/null
@@ -1,12 +0,0 @@
-post_install() {
-  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}
-
-post_upgrade() {
-  post_install
-}
-
-post_remove() {
-  post_install
-}
-
diff --git a/pyobd.png b/pyobd.png
deleted file mode 100644
index d1ecd6c..0000000
Binary files a/pyobd.png and /dev/null differ

Presence commented on 2023-08-24 02:03 (UTC)

Thanks! I've updated the check sum

delovoilemon commented on 2023-08-18 19:21 (UTC) (edited on 2023-08-21 13:30 (UTC) by delovoilemon)

@Presence repo now available https://github.com/barracuda-fsh/pyobd/releases/.

please update checksums

delovoilemon commented on 2023-08-18 13:48 (UTC)

Subject: Re: Pyobd repo on Github Sent: August 18, 2023 3:23:33 PM GMT+03:00 From: Jure Poljsak pyobd.jp@gmail.com To: <my-email>

I had a personal crysis, I expected more stars from the project. I will put it back on... I still have a copy. I'm sorry for the whole thing, letting down a follower.

On Sat, Jul 15, 2023 at 8:33 AM wrote:

Hello. I followed your project, but suddenly its repository on github disappeared somewhere. Tell me what happened.