Skip to content

Installation fails in Ubuntu 24.04 LTS #52

@morgantomj

Description

@morgantomj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions