Package Details: bcnc 0.9.14.304-1

Git Clone URL: https://aur.archlinux.org/bcnc.git (read-only, click to copy)
Package Base: bcnc
Description: GRBL CNC command sender, autoleveler and g-code editor
Upstream URL: https://github.com/vlachoudis/bCNC
Licenses: GPL2
Submitter: greyltc
Maintainer: None
Last Packager: greyltc
Votes: 6
Popularity: 0.000000
First Submitted: 2017-02-09 14:50 (UTC)
Last Updated: 2021-03-29 11:15 (UTC)

Latest Comments

1 2 Next › Last »

sdp8483 commented on 2025-01-02 14:27 (UTC)

@pkreussel PKGBUILD worked great for me but I found I had to install python-svgelements from the AUR as it was missing on my system.

pkreussel commented on 2024-12-30 12:59 (UTC) (edited on 2024-12-30 14:34 (UTC) by pkreussel)

Version 0.9.15 avoids the "sys"-Name-Error.

The Source is available under: https://files.pythonhosted.org/packages/2d/be/4a49fa0b2e89ccaad0da8bd14f5dffe492c9de6b1c8c4524b0ca1234bf5b/bCNC-0.9.15.tar.gz

However, with Python 3.13, there is a new error, which is fixed by: https://github.com/vlachoudis/bCNC/commit/b485676f7cf3b0f3b42a4c80dedd082c287ec71f

My full PKGBUILD:

 pkgname=bcnc
 pkgver=0.9.15
 pkgrel=2
 pkgdesc="GRBL CNC command sender, autoleveler and g-code editor"
 arch=('any')
 url="https://github.com/vlachoudis/bCNC"
 license=(GPL2)
 depends=(python python-pyserial python-pillow tk)
 source=("${pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/2d/be/4a49fa0b2e89ccaad0da8bd14f5dffe492c9de6b1c8c4524b0ca1234bf5b/bCNC-0.9.15.tar.gz"
         "bcnc.desktop"
         "python_13.patch::https://github.com/vlachoudis/bCNC/commit/b485676f7cf3b0f3b42a4c80dedd082c287ec71f.patch")
 sha256sums=('7ca77f8914d2da51b4a2bf5db1fe48f52037e59e972769bf48c932fbee2d5ff3'
             'd5f3f49fabe26d5e1de285d1c61be8d6b48f6498effdf1fc80b396d12fa9a137'
             '14142d0773ae39765bfa457093c985011a53358202e30dd602f820d8d0eecf1c')

 prepare(){
   cd "bCNC-${pkgver}"
   patch -uNp1 -i ../python_13.patch
 }            

 build() {
   cd "bCNC-${pkgver}"
   python setup.py build
 }

 package() {
   cd "bCNC-${pkgver}"
   python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
   install -D -m644 "${srcdir}/bcnc.desktop" "${pkgdir}/usr/share/applications/bcnc.desktop"
   install -D -m644 "bCNC/bCNC.png" "${pkgdir}/usr/share/pixmaps/bcnc.png"

   mkdir -p "${pkgdir}/usr/bin"
   echo "#!/usr/bin/env bash" > "${pkgdir}/usr/bin/bcnc"
   echo "python -m bCNC" > "${pkgdir}/usr/bin/bcnc"
   chmod +x "${pkgdir}/usr/bin/bcnc"
 }

throbscottle commented on 2023-09-10 14:34 (UTC)

NameError fix now applies to /usr/lib/python3.11

apoulos commented on 2023-04-07 16:41 (UTC) (edited on 2023-04-07 16:51 (UTC) by apoulos)

Fix error "NameError: name 'sys' is not defined" by adding a line

import sys

above

import os

in the following files:

/usr/lib/python3.10/site-packages/bCNC/ToolsPage.py
/usr/lib/python3.10/site-packages/bCNC/Utils.py
/usr/lib/python3.10/site-packages/bCNC/FilePage.py

GPereira commented on 2022-06-27 23:02 (UTC)

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.10/site-packages/bCNC/__main__.py", line 50, in <module>
    import Utils
  File "/usr/lib/python3.10/site-packages/bCNC/Utils.py", line 41, in <module>
    if getattr( sys, 'frozen', False ):
NameError: name 'sys' is not defined

Tweety commented on 2021-07-24 15:44 (UTC)

Seems like not working anymore with recent python 3.9.6-1.

greyltc commented on 2020-01-20 10:51 (UTC) (edited on 2020-01-20 10:52 (UTC) by greyltc)

done. I've also asked upstream if they could tag a new stable release. 0.9.11 is pretty old by now...

JPW commented on 2020-01-20 10:48 (UTC)

Since tk is only an optional dependency for python in Extra, I think it would be a good idea to include it as a dependency for bcnc: depends=('python2-pyserial' 'python2-pillow' 'tk')

greyltc commented on 2020-01-20 10:20 (UTC)

Okay, I removed the conflict with bcnc-git.

@JPW can you think of something I should change about the PKGBUILD to make it better?