Skip to content

Tag: python

Using Docker with Python Poetry?

I’ve been using Docker with pipenv for my data science deployment setup and now I want to change to Poetry. My Dockerfile is: My pyproject.toml: This is based on other Dockerfiles that I found on StackOverflow. I run into the following problem: So this looks like the Poetry is not used, where Jupyter is…

C++ including Python.h compiling using makefile

I am trying to compile a C++ program which uses Python.h to execute some python scripts. Before adding the python, I had a makefile which works perfectly. I added the code to run the python script, which involves including the Python.h file. I edited the makefile to include this file, without success. My make…

Syntax error calling Python from C with fork-execv

I want to call a Python script as a child process from a C program using fork and execv. I have tested it calling bin/ls and it works: So I changed the C code to call the Create_Buffer() function in this Python file: The Python script has two functions; I want to call Create_Buffer(), so I changed my C file