95 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
50
views
Trying to build Python extension (module) with Dlang and pyd with dub + ldc2
I am trying to build a Python extension (module) with D and the pyd (https://github.com/ariovistus/pyd) and dub and ldc2 compiler on Windows.
I have the following dub.sdl:
name "hello"
...
0
votes
0
answers
63
views
How to selectively bundle my "src" folder in a PyInstaller onedir build while keeping PySide6 external?
I'm using PyInstaller to package my application into an executable. Due to licensing restrictions, I must dynamically link PySide6, so I’m using the default onedir mode instead of --onefile.
My ...
0
votes
1
answer
124
views
Running pyd files with embbedded python on other systems
So I am writing a python plugin for flow launcher, which has a dependency that uses C extensions compiled into pyd files (sorry if I said it wrong, I'm not super confident on what to call it / how to ...
0
votes
0
answers
60
views
Creating a pyd module importer from memory
Im facing a problem where i need to load a python dll (pyd) file from memory to be used as a module (basically i want to build a pyd-module-loader)
Importlib has no loader that is suitable to load a ...
0
votes
0
answers
25
views
Creating pyd for python project [duplicate]
I have simple python project which represents basic inheritance tree.
mypackage:
__init__.py
animal.py (class Animal)
dog.py (class Dog inherited from Animal)
I want to generate 'single' ...
0
votes
1
answer
205
views
Cannot import .pyb / .dll file into Python after compiling C++ code with pybind11 on Windows
My OS is Windows 10, I use G++ compiler, VS Code. I attempt to compile an example pybind11 file into a Python object.
The C++ code looks as follows:
#include <pybind11/pybind11.h>
int add(int i,...
1
vote
0
answers
103
views
Importing .pyd is failing if the path to the module is added at runtime (Python 3.8)
Overview
I have a python script in a PyCharm project which requires the use of foo.pyd (import foo). When looking this problem up, I've found 2 solutions.
Attempted Solutions
The PYTHONPATH ...
1
vote
0
answers
74
views
Importing numpy remotely using importlib
I am currently working on a remote import system for numpy that uses the numpy folder in my sites-packages location being hosted on a web server. This is my current code:
class Finder(importlib.abc....
1
vote
1
answer
1k
views
Python import mechanism when using a .pyd file
I consume a Python package which currently uses C++ under the hood and which was only build for Python 3.8.
The package content looks like this:
my_package/
|
|- __init__.py
|- additional_code.py
|- ...
0
votes
1
answer
142
views
.pyd not showing the modules anticipated
I have a freenect.pyd file compiled from c programs however when I import the function and call dir(freenect) its output is just ['__doc__', '__file__', '__loader__', '__name__', '__package__', '...
-1
votes
1
answer
468
views
CMake doesn't create .pyd not .dll file. Why is that?
I am currently trying use pybind11 to connect my C++ code on my Windows 10 machine to my Python code. But when I open the cmake-gui it comiles successfully, but doesn't create the expected .pyd file.
...
0
votes
0
answers
424
views
converting pyd to dll so i could use it in C# wpf
I made a pretty nice scraping package in py (with init.py file and all), and id like to be able to use it without rewriting everything in a c# wpf project.
Id also want to send it later to a friend, ...
0
votes
0
answers
470
views
How can I import a pyd file in spyder from anaconda?
I'm using spyder from Anaconda. I'm trying to import a pyd file but this message appeared: 'DLL load failed while importing _py_bbt_driver: No se puede encontrar el módulo especificado.'. How can I ...
7
votes
2
answers
3k
views
Discover missing module using command-line ("DLL load failed" error)
On Windows, when we try to import a .pyd file, and a DLL that the .pyd depends on cannot be found, we get this traceback:
Traceback (most recent call last):
...
ImportError: DLL load failed: The ...
0
votes
0
answers
1k
views
Do pyd files only work against the linked python version?
I compiled SimpleElastix for both Windows and Linux months ago. The SimpleElastix build process produced a .so file under Linux and a .pyd under Windows for use with Python. I was able to import ...