Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
68 views

I'm working on Python code that must be executed inside an external application which embeds its own Python interpreter (not the system Python, nor a virtual environment). Because of this, I can't ...
Grzegorz's user avatar
2 votes
1 answer
137 views

I am trying to embed Python inside my C++ DLL. The idea is that the DLL, once distributed, should be sufficient and not rely on other installations and downloads. Interestingly, the below "sort ...
Fares's user avatar
  • 94
0 votes
0 answers
52 views

I'm working with Python 3.10 64-bit,win10,vs2013 I run the python script alone and there are no errors and it also imports the pandas package properly.However, when calling python scripts in c++ (...
panicwq's user avatar
0 votes
0 answers
49 views

I'm doing some code that allows plugin authors for our software to embed python code in their plugins. And I'm stuck with some strange import behavior. When I import this simple python file with ...
Kirill Voroshilov's user avatar
1 vote
1 answer
1k views

I'm trying to find a general solution for RAG to solve problems involving both text, images, chart, tables,.., they are in many different formats such as .docx, .xlsx, .pdf. The requirement for the ...
happy's user avatar
  • 515
4 votes
1 answer
7k views

I am trying to build ollama usage by using RAG for chatting with pdf on my local machine. I followed this GitHub repo: https://github.com/tonykipkemboi/ollama_pdf_rag/tree/main The issue is when I am ...
NIrbhay Mathur's user avatar
0 votes
1 answer
341 views

I successfully embedded a 400-page PDF document within 1-2 hours. However, when I tried to embed a CSV file with about 40k rows and only one column, the estimated embedding time is approximately 24 ...
Rasik's user avatar
  • 2,529
0 votes
0 answers
54 views

I have an install structure like this: install_folder\ app.exe lib.dll python\ kitsu.py And I am trying to execute some functions in my application from the file kitsu.py. My C++ code is like this: (...
hi everybody's user avatar
1 vote
1 answer
2k views

I tried creating a chromadb using embedding values but its not working. I have my own embedding model that I want to deploy on the server. So here if I pass text as list I am getting its embedded ...
SG-01's user avatar
  • 11
-2 votes
1 answer
173 views

I am creating a Unity project that has python embedded using this tutorial, here. For some reason Inillisense is warning that the installed packages, which used pip, were not reconised. I have made ...
Oliver White's user avatar
0 votes
1 answer
806 views

I have an application using embedded Python, which includes python.exe. I have added a sitecustomize.py to set sys.path, something like: import sys sys.path = ['.','.\\python310.zip','.\\Lib','.\\Lib\\...
DLT's user avatar
  • 480
0 votes
1 answer
239 views

I'm new to using torch and calculate on huge amount of data. I want to create embeddings for an large text corpus and write my embedding function, it works well but it seems pretty slow, so I'm not ...
Tombawomba's user avatar
3 votes
1 answer
200 views

Blender(*) for Windows is shipped with an embedded Python, like this: blender-2.79b-windows64\ 2.79\ python\ bin\ python.exe python35.dll # ...
Basj's user avatar
  • 47.5k
1 vote
1 answer
295 views

I distribute a ready-to-run software for Windows written in Python by: shipping the content of an embedded version of Python, say python-3.8.10-embed-amd64.zip adding a myprogram\ package folder (= ...
Basj's user avatar
  • 47.5k
2 votes
0 answers
718 views

I see two diffrent behaviours about .pth and ._pth files: the official Python install for Windows uses .pth files in lib\site-packages as documented in https://docs.python.org/3.12/library/site.html#...
Basj's user avatar
  • 47.5k
6 votes
1 answer
1k views

This is a self-answered question. I've found that there aren't any good examples of this specific situation, and the seemingly related questions don't address this use case. My C++ application ...
Martin.'s user avatar
  • 176
0 votes
0 answers
1k views

I want to upload my document to pincone and ask the questions in the document. I want ask in terminal itself, I know there is streamlit videos are in youtube but i don't want to use Stream lit. I'm ...
Lokeshwar V's user avatar
1 vote
2 answers
3k views

In the process that i'm running, i need very low latency to be able to process a job, so i use a local instance of qdrant db to be able to insert everything very fast to it. After finishing the job, i ...
Guinther Kovalski's user avatar
3 votes
2 answers
182 views

I'm trying to make a C++ logger class for embedded python script with pybind11. How can I retrieve the line number where a C++ function is called from python? I have something like this in C++: class ...
Eliv_'s user avatar
  • 33
0 votes
1 answer
904 views

In langchain embeddings using PGVector if the user asks question and it matched 2 files. I need to show the response with the latest uploaded file. In my embeddings when a file is uploaded i am ...
Andrea Bency's user avatar
2 votes
0 answers
175 views

I wanted to use the script below for embedding. It worked fine on a small amount of data, but when I loaded a CSV with 300,000 records into it, the embedding has been running for 40 minutes and doesn'...
tbo812's user avatar
  • 45
0 votes
0 answers
276 views

C++ code, I need to build model and use python embedding, but i got this: int main(int argc, char *argv[]) { Py_Initialize(); PyRun_SimpleString("import tensorflow as tf"); ...
Farida Gayfutdinova's user avatar
1 vote
0 answers
208 views

I wrote a C wrapper to access the ezdxf Python package from my C++ program using the embedded interpreter. When I compile the wrapper by itself it works as expected (loads the module below which loads ...
Sean McBride's user avatar
1 vote
1 answer
95 views

I am writing an application that embeds a Python interpreter. The application also extends Python with a custom module. This is done along the lines of the "Extending and Embedding the Python ...
Efternavn's user avatar
0 votes
2 answers
75 views

I'm traying to use a pretrained word2vec model for Arabic language the code suppose to be written as following unknownArray=[] # load the whole embedding into memory w2v_embeddings_index={} ...
Arwa Ahmed's user avatar
1 vote
0 answers
126 views

I am making a C++ app with embedded Python. I use *PyImport_Import *to import module and PyObject_GetAttrString to import function from it. The problem is that if .py file was imported with *...
user2260592's user avatar
0 votes
1 answer
52 views

I am attempting to write an API in Python that will allow me to run arbitrary Python code. In particular, I would like to be able to call any function through the API and have the return value passed ...
Brian Zhu's user avatar
2 votes
0 answers
352 views

I'm trying to make a little program that sets up a portable python 3 with specific packages, with no admin rights required. (The point of this is to execute some specific scripts with more ease and in ...
RedStoneMatt's user avatar
  • 1,354
1 vote
0 answers
464 views

Following this thread Assume I have the following files in the directory prog: main.cpp (located in the directory prog) int main(int argc, char *argv[]){ Py_Initialize(); //Adding current path ...
linuxbeginner's user avatar
1 vote
2 answers
1k views

I'm trying to get module imports to work in embeddable python, but it doesn't want to work C:\Users\test\Desktop\winpy\python-3.10.10-embed-win32>type run_scripts\script.py from module_test import ...
Mr. Nom4ik's user avatar
0 votes
1 answer
46 views

I am trying to run this code - Automatic Labelling of Topics with Neural Embeddings The problem is that they did not mention what versions they used for the libraries and tools they used. Sadly, not ...
ziMtyth's user avatar
  • 1,064
1 vote
1 answer
658 views

How to destroy python interpreter in pybind11 to call python function from c++ in loop Here am getting output for the first time ,when it's come for 2nd time loop it's throwing Microsoft C++ exception:...
Chanukya N's user avatar
0 votes
1 answer
567 views

On a standard installation of python (e.g. via miniconda), I run this script (also pasted below) and I get the following output: python test_python_multiprocessing.py arg1: called directly sys....
Gus's user avatar
  • 4,515
1 vote
1 answer
234 views

I'm writing a C++ program that requires Python (3.11) code to be embedded into it and am using Python.h to try and accomplish this. The general idea is that my a python script, which will be stored by ...
Krohnus Melavea's user avatar
0 votes
1 answer
589 views

I'm trying to use Sub-interpreter for having distinct environment, and having multi-thread on same environment(interpreter). However, when I tried to cleanup sub-interpreter, Python raise Fatal error ...
Maxwen's user avatar
  • 33
3 votes
1 answer
1k views

I am working on some changes to a library which embeds Python which require me to utilize sub-interpreters in order to support resetting the python state, while avoiding calling Py_Finalize (since ...
Los Frijoles's user avatar
  • 4,831
3 votes
2 answers
868 views

I'm using Cython in --embed mode to produce a .exe. I'm evaluating the Minimal set of files required to distribute an embed-Cython-compiled code and make it work on any machine. To do this, I only ...
Basj's user avatar
  • 47.5k
2 votes
0 answers
204 views

so I have a kind of pretty special problem. I want to bundle an application, for Windows for now. PyInstaller seems best so far. BUT when delivering the bundle, a persistent venv shall be created by ...
leiwulong's user avatar
0 votes
1 answer
206 views

This is my first time asking a question on stack overflow so please bear with me I am trying to create a calculator in c as a project but I am getting a segmentation fault when evaluating a algebraic ...
SHUBHAM KULKARNI's user avatar
0 votes
1 answer
695 views

The question is about Python.h (embedded Python 3.10). Here in this minimal example where I Py_Initialize, import numpy and then Py_DecRef it. After that I Py_Finalize and repeat the process one more ...
smsware's user avatar
  • 489
1 vote
1 answer
805 views

I am trying to understand how memory is managed when python is embedded in C# using python.net. Python is executed in C# using the py.GIL (global interpreter lock), essentially C# calls the python ...
qwerty's user avatar
  • 927
0 votes
2 answers
2k views

Is it possibile to use python libraries in C++ like selenium , django etc ....? If yes are there any docs that explain this well like fully embedding a python library in C++ not just some run script ...
S.T.A.L.K.E.R's user avatar
-2 votes
1 answer
154 views

hey so im trying to embed Python Selenium in C++ , but i managed it to just open the browser and get a item. How can i succesfully open the browser and search HELLO inside the google searchbar? #...
S.T.A.L.K.E.R's user avatar
1 vote
1 answer
534 views

I have the following script. try { PythonEngine.Initialize(); using (Py.GIL()) { using (PyScope scope = Py....
qwerty's user avatar
  • 927
1 vote
1 answer
2k views

I am trying to embed python in a GUI application, and so I have a the python interpreter initialized in the main thread of the application, and I may launch python scripts from another one. I read ...
arthropode's user avatar
  • 1,381
0 votes
1 answer
1k views

I've embedded Python (3.6) code into my C++ application successfully. I use the Python/C API to call methods from this library. An overview of the python module is as follows: class MyClass(object): ...
Obibhand's user avatar
1 vote
1 answer
1k views

I have the following C# code: static void Main() { string pythonpath1 = @"C:\Users\user\Documents\pynet_test\Python\Python37"; string pythonpath2 = @"C:\...
qwerty's user avatar
  • 927
0 votes
0 answers
181 views

After building cpython: ./configure --with-openssl=$(brew --prefix openssl) --enable-optimizations --prefix=/path/to/build make make install I want to compile an application with an embedded python ...
Sc4v's user avatar
  • 388
0 votes
1 answer
2k views

My goal is to embed the python interpreter using PyBind11, but to use the interpreter from a virtual env, such that installing dependencies using pip does not clutter the system paths. There is not ...
ManuelSchneid3r's user avatar
1 vote
1 answer
556 views

Rigth now I'm working on embedding python into a larger C++ application. Despite I'm not a python specialist, I understand that with the builtin PyCallable_Check() I can check if a python object is ...
dom's user avatar
  • 35

1
2 3 4 5
7