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
1
vote
0 answers

Use Python 3.6's hashlib without 3.6

I have Py3.6 on my PC, and one of the stock modules is hashlib, and from 3.6+ it includes SHA3 hashing. However, I need to be able to run hashlib with SHA3 on Python 3.4, where hashlib doesn't include SHA3. How can I rip hashlib from Py3.6 and use…
user5012239
1
vote
0 answers

Embed pyd files in executable generated by py2exe

I recently started experimenting with cython and py2exe to see if I can convert some of my python projects into standalone windows binaries. So far, I've had much success converting my pure python code into an exe containing all my custom python…
ag415
  • 392
  • 2
  • 15
1
vote
0 answers

DLL load failed in xlwings UDF

I am trying to import a user-defined function (UDF, hereafter) through xlwings add-in. That UDF is using a DLL (in the form of .pyd). When I try to import the UDF into excel through xlwings add-in, I am facing a run-time error. The below is the…
Alex
  • 11
  • 2
1
vote
1 answer

'DLL load failed' thrown only by one interpreter

I am running the following: import sys sys.path.append("C:\\Program Files (x86)\\fme\\fmeobjects\\python27") import fmeobjects In that directory lives the file: fmeobjects.pyd I have two Python interpeters set up. When I run under one, there is…
Ben Mayo
  • 1,285
  • 2
  • 20
  • 37
1
vote
0 answers

pyarg_parsetuple crashes python

I'm trying to parse a boolean and an optional unicode string (which should be set only if the boolean is True). PyObject *pBool, *pStr; PyArg_ParseTuple(args, "O!|u", &PyBool_Type, pBool, pStr); When I call my function like that: func(True,…
John Doe
  • 169
  • 1
  • 8
1
vote
1 answer

ipython notebook can import a pyd module but the python interpreter can't

I downloaded the cvxopt package and tried to run some of the examples from the documentation here http://cvxopt.org/examples/index.html Everything runs fine when I execute the code from ipython notebook. However, when I try to run the interpreter I…
Kokolx
  • 31
  • 2
1
vote
0 answers

py2exe not include automatically all *.pyd created with Cython

when creating pyd with Cpython, and want to create exe with py2exe, py2exe cannot gather all of them an their dependencies, so one forced to include them manually, anyone can help?
wtayyeb
  • 1,879
  • 2
  • 18
  • 38
1
vote
1 answer

Using .pyd library in Jython

Actually i'm about to start a project, in the company we are using java as a main technology in owr web app server (IBM WebSpher), but now we need to integrate existing technology with a new product recently purchased and is developed in C/CPython…
1
vote
0 answers

Call a function when PYD (python + c++) module is being unloaded

I need to run some extra functions when I load a PYD and when I unload it because c++ core uses a module written in another language and this module needs to be loaded and unloaded manually. I call load_another_language_module() in…
Yulia V
  • 3,507
  • 10
  • 31
  • 64
1
vote
2 answers

How can I import a .PYD module in IronPython?

I'm trying to use a python package from IronPython. Everything works fine if I import regular python modules. But when I try to do the following: import win32ui I get: No module named win32ui I've hunted through the code in…
Jan Bannister
  • 4,859
  • 8
  • 38
  • 45
0
votes
0 answers

using pyd files outside python

i am working on a compiler maker that compiles python code into other languages (similar to LLVM). since the compiler doesn't actually use the intreperter, just the actual file, i don't know what to do with .pyd and .pyc files. i thought about…
0
votes
1 answer

.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__', '__path__', '__spec__'] there are no functions in there…
hugo
  • 31
  • 4
0
votes
0 answers

How to remove a .dll that is being loaded in .pyd file

I have many c++ built applcations that are being exposed later to a .pyd file . The .pyd that is loading this dll files is used later in python . I want sometimes to remove on of the dll and not use its functions . The problem is that when I remove…
0
votes
0 answers

How to load and use PYD files on the kaggle platform

I want to use a function in python, but this function is not open source, the function needs to use the PYD file, but on kaggle, I don't know how to load this PYD file, so I can't use this function. can be able to successfully use the function
ning wang
  • 1
  • 1
0
votes
0 answers

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, which probably doesnt not have python installed,…