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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27920>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to