Inline-Python icon indicating copy to clipboard operation
Inline-Python copied to clipboard

Installation fails in Ubuntu 24.04 LTS

Open morgantomj opened this issue 1 year ago • 1 comments

Downloaded Inline-Python-master.zip; unzipped and cd'd into Inline-Python-master; run perl6 configure.pm6 ; I get a bunch of warnings from gcc about deprecated : perl6 configure.pl6 gcc pyhelper.c -I/usr/include/python3.11 -I/usr/include/python3.11 -Wsign-compare -g -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -g -fwrapv -O2 -Wall -L/usr/lib/python3.11/config-3.11-aarch64-linux-gnu -L/usr/lib/aarch64-linux-gnu -lpython3.11 -ldl -lm -shared -fPIC -o resources/libraries/libpyhelper.so pyhelper.c: In function ‘py_init_python’: pyhelper.c:19:5: warning: ‘Py_SetProgramName’ is deprecated [-Wdeprecated-declarations] 19 | Py_SetProgramName(L"python"); | ^~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/Python.h:94, from pyhelper.c:1: /usr/include/python3.11/pylifecycle.h:37:38: note: declared here 37 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *); | ^~~~~~~~~~~~~~~~~

more of the same

I get the above on both my Ubuntu and Raspberry Pi 4 However when I run 'make test' I get 2 different results on the 2 platforms. All test FAIL on Ubuntu, but all tests PASS on the RPi4. When I run 'make install', as mentioned in the README.md, the 'install' target does not exist. However, I'm not exactly sure how, but Inline::Python is accessible on my RPi4. I'm able to successfully run the snippet of code from the README.md.

Separately, I'd like to use Inline::Python to use a module (neopixel) that would be imported in python code. I'm not sure how to actually get a new instance of the neopixel object, and pass arguments to it (one of the arguments is from another module 'board'). Any suggestions as to the mechanics of calling python module via Inline::Python? Thanx, Tom Morgan

morgantomj avatar Dec 03 '24 21:12 morgantomj

Hi @morgantomj,

Thanks for recording your efforts and progress here. Also, see my latest reply to you in our reddit exchange, especially this bit (slightly edited):

The I::Py creator (Stefan Seifert aka niner) ... is, always, super busy. We need to use his time wisely. I'm hopeful you and I can make some more progress in this [reddit] thread before reaching out to Stefan. If you've already reached out to him [you have! :)] that's OK, but he sometimes takes a while to respond. As long as you're game we can keep trying in the meantime and update him [in this thread] on success, or at least progress, or, worst case, details of failures.

raiph avatar Dec 04 '24 02:12 raiph