[issue27920] Embedding python in a shared library fails to import the Python module

Divyansh Khattak report at bugs.python.org
Wed Aug 31 15:35:50 EDT 2016


New submission from Divyansh Khattak:

I am having the same error as described by https://bugs.python.org/issue19153 and http://bugs.python.org/issue4434. My shared library is unable to import the Python module I created. I am attaching my C file which calls the python function Rough.py, whose code is written as under:
import math
def WallRough(*wss):
    size=len(wss)
   
    result=[0 for i in range(size)]
    for i in range(size):
       
        wss_mag=math.sqrt(wss[i][0]*wss[i][0]+wss[i][1]*wss[i][1]+wss[i][2]*wss[i][2])
       
        result[i]=1
    
    return result

----------
components: Build
files: pystack.c
messages: 274062
nosy: suzaku
priority: normal
severity: normal
status: open
title: Embedding python in a shared library fails to import the Python module
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file44305/pystack.c

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27920>
_______________________________________


More information about the Python-bugs-list mailing list