Package Details: micropython 1.26.0-1

Git Clone URL: https://aur.archlinux.org/micropython.git (read-only, click to copy)
Package Base: micropython
Description: Python3 for microcontrollers, with stdlib. (UNIX version)
Upstream URL: http://micropython.org/
Licenses: MIT
Submitter: keenerd
Maintainer: bolleyboll
Last Packager: bolleyboll
Votes: 21
Popularity: 0.000129
First Submitted: 2014-06-03 23:11 (UTC)
Last Updated: 2025-08-10 08:20 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

tee commented on 2023-09-20 05:29 (UTC)

See https://github.com/micropython/micropython/issues/11464#issuecomment-1543042388 for the dangling pointer workaround, use make CFLAGS_EXTRA="-Wno-dangling-pointer".

Radin commented on 2023-09-09 22:41 (UTC)

CC ../py/stackctrl.c ../py/stackctrl.c: In function ‘mp_stack_ctrl_init’: ../py/stackctrl.c:32:32: error: storing the address of local variable ‘stack_dummy’ in ‘mp_state_ctx.thread.stack_top’ [-Werror=dangling-pointer=] 32 | MP_STATE_THREAD(stack_top) = (char *)&stack_dummy; ../py/stackctrl.c:31:18: note: ‘stack_dummy’ declared here 31 | volatile int stack_dummy; | ^~~~~~~~~~~ In file included from ../py/runtime.h:29, from ../py/stackctrl.c:27: ../py/mpstate.h:294:23: note: ‘mp_state_ctx’ declared here 294 | extern mp_state_ctx_t mp_state_ctx; | ^~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [../py/mkrules.mk:77: build/py/stackctrl.o] Error 1 ==> ERROR: A failure occurred in build(). Aborting... -> error making: micropython-exit status 4 -> Failed to install the following packages. Manual intervention is required: micropython - exit status 4 Does Not Build?

andreas_baumann commented on 2023-09-07 08:39 (UTC)

Doesn't build:

../py/stackctrl.c: In function ‘mp_stack_ctrl_init’:
../py/stackctrl.c:32:32: error: storing the address of local variable ‘stack_dummy’ in ‘mp_state_ctx.thread.stack_top’ [-Werror=dangling-pointer=]
   32 |     MP_STATE_THREAD(stack_top) = (char *)&stack_dummy;
../py/stackctrl.c:31:18: note: ‘stack_dummy’ declared here
   31 |     volatile int stack_dummy;
      |                  ^~~~~~~~~~~
In file included from ../py/runtime.h:29,
                 from ../py/stackctrl.c:27:
../py/mpstate.h:294:23: note: ‘mp_state_ctx’ declared here
  294 | extern mp_state_ctx_t mp_state_ctx;
      |                       ^~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [../py/mkrules.mk:77: build/py/stackctrl.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

gauthier commented on 2023-06-11 13:41 (UTC)

Hi. The repo is two versions late. I've updated the PKGBUILD but I can't push it. I can help maintain the repo if you want Cheers

JohnRobson commented on 2023-05-21 02:27 (UTC)

File "/usr/lib/python3.11/functools.py", line 815, in singledispatch
    dispatch_cache = weakref.WeakKeyDictionary()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'weakref' has no attribute 'WeakKeyDictionary'
==> ERROR: A failure occurred in package_micropython-lib().
    Aborting...
 -> error making: micropython-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
micropython-lib - exit status 4

jimmo commented on 2022-08-22 01:55 (UTC) (edited on 2022-08-22 01:55 (UTC) by jimmo)

@pepijndevos The issue here is that this package is also including the micropython-lib which provides an extended version of the re module... which uses PCRE... which depends on FFI.

@keenerd (as the maintainer of micropython-lib) I'm not sure it makes sense to include micropython-lib by default in this package, especially if you're not enabling FFI. We're doing a bit of an overhaul of micropython-lib and packages in general (see https://github.com/micropython/micropython-lib/pull/506). If you want to discuss this in the context of the best way to build an AUR package please feel free to raise a bug there.

Note also that we have recently switched from axtls to mbedtls by default in the unix port.

pepijndevos commented on 2022-08-11 11:43 (UTC)

What's up with ffi in this package? I tried to import re which tried to import ffilib which tries to import ffi which isn't there. A bit inconvenient.

I tried (un)commenting all the ffi stuff but then it gave an error that my C compiler can't produce binaries. Huh...

magnade commented on 2022-05-09 17:23 (UTC)

I would recommend removing the line sed -i 's/MICROPY_PY_USSL = 1/MICROPY_PY_USSL = 0/' mpconfigport.mk from the PKGBUILD as disabling ussl breaks upip module

vleon1 commented on 2022-01-29 10:52 (UTC)

My local PKGBUILD got these updates:

pkgver=1.17 ... arch=('i686' 'x86_64' 'aarch64') ... md5sums=('9a0b7a97e8f195c019b335ddbdf9a23d' '1752ce13e851a671a07ce3f7a807b21c')

New version + md5sums for new version + support aarch64. Works like a charm.