Questions tagged [pyd]

Pyd is a library for the D programming language that wraps the raw Python/C API with a cleaner, simpler interface. It makes exposing raw D functions and classes to Python almost trivially simple. It bears certain similarities to Boost.Python, and indeed Boost.Python is a major influence on Pyd.

91 questions
0
votes
2 answers

DLL in sub folder rather than in application folder

have created a dynamic python file (pyd) using VC++. Using cx_freeze, I have created an exe. In order for this program to work on other computers, I need to have a file msvcr100.dll in the applications folder. And I do get the desired output.…
Ammar
  • 33
  • 1
  • 4
0
votes
0 answers

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 fix this problem? Thanks. I tried to use pip…
0
votes
0 answers

Can I show the source code of a Python file with extension pyd?

Can I show the source code of a Python file with extension pyd? Or is there a way to protect your code to make anyone unable to show your code? You can uncompile the pyc code in Python using this tool uncompyle6 and show the source code of the pyc…
0
votes
0 answers

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 SimpleElastix under python 3.6 in both Linux and…
Gillespie
  • 5,780
  • 3
  • 32
  • 54
0
votes
1 answer

Python packaging with setup.py does ignore manifest specifications

I'm currently trying to pack a module that uses precompiled *.pyd files from a swig routine. The process for the user is supposed to be: install base library (C, C++); directories linked in the environment variables; here are also the *.pyd…
Ben Müller
  • 125
  • 1
  • 11
0
votes
0 answers

Is it possible to decompile a .pyd file to extract Python Source Code?

Is it possible to decompile a .dll/.pyd file to extract Python Source Code?
chandan
  • 1
  • 1
0
votes
1 answer

ImportError: DLL load failed while importing ie_api:

from openvino.inference_engine import IECore() If IECore() is imported for inferrence through openvino, the above error occurs. I tried various environment variables and various things, but it didn't work. The imported environment is a virtual…
진유훈
  • 5
  • 3
0
votes
1 answer

Is there a way to import a .pyd extension file as a simple include in a python file?

Hi there wise people of stack. I'm having trouble with importing pyd files as python objects. The story: I have an internal repo on gitlab that runs python files as well as C++ files. the repo uses pybind for both languages to speak to one another.…
0
votes
0 answers

how to run encrypted .pyd or .so python file

I have compiled a python script file using easycython. using below syntax. easycython encrypt.py Above script created .pyd file "encryption.cp38-win_amd64.pyd" But when trying to execute file using python using below syntax python…
user3734568
  • 1,311
  • 2
  • 22
  • 36
0
votes
0 answers

Python module 'scm' has no attribute 'Open'

I have a third party pyd file called "scm.pyd". I have added this file and DLL file into PYTHONPATH. import scm -> works scm.Open() -> prints " module 'scm' has no attribute 'Open' " error. I'm sure there's a function called Open(). When I use DLL…
0
votes
1 answer

Unable to load pyd module generated with MSYS2 MinGW 32bit

I have two simple files: main.py and config_cowsay.py main.py import cowsay import config_cowsay char = config_cowsay.choose_character() print(char) print(cowsay.get_output_string(char, "Raptors are evil")) config_cowsay.py from random import…
Erhode
  • 152
  • 8
0
votes
1 answer

Trying to load pyd with LoadLibraryEx and got failed

I have a pyd pytest.pyd, where declared two functions: say_hello and add_numbers. So I want to load this pyd dynamically in C++ with LoadLibraryEx. But, when I try to call initpytest func, it fails. const char* funcname = "initpytest"; HINSTANCE…
kolwot
  • 3
  • 2
0
votes
1 answer

Creating .pyd files in folder and subfolder using python

I am trying to create .pyd files using below script for all .py files in folder and sub folders of project. import os from distutils.core import setup from Cython.Build import cythonize import…
user3734568
  • 1,311
  • 2
  • 22
  • 36
0
votes
1 answer

How would I use rundll32.exe to run a pyd?

I made a .pyd file with this source: def hello(): print("Hello world") and I want to run hello() from rundll32 (Or any C code in general) I tried rundll32 hello.pyd,hello() and rundll32 hello.pyd,hello but neither worked I also looked through…
0
votes
1 answer

Heroku can't find local pyd file as module, what could be a reason?

My Flask app uses function from pyd file which is in the same folder and everything works fine on the local server. However, as soon as I push everything to Heroku, the app crashes, and Heroku logs give: 2020-06-05T20:23:42.103623+00:00 app[web.1]:…
user12948426