{"action":"opened","issue":{"url":"https://api.github.com/repos/ariovistus/pyd/issues/17","labels_url":"https://api.github.com/repos/ariovistus/pyd/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/ariovistus/pyd/issues/17/comments","events_url":"https://api.github.com/repos/ariovistus/pyd/issues/17/events","html_url":"https://github.com/ariovistus/pyd/issues/17","id":85816765,"number":17,"title":"Fatal Error while loading '/lib64/libphobos2.so.0.67' The module 'std.array' is already defined in './pydtest'","user":{"login":"deviator","id":881953,"avatar_url":"https://avatars.githubusercontent.com/u/881953?v=3","gravatar_id":"","url":"https://api.github.com/users/deviator","html_url":"https://github.com/deviator","followers_url":"https://api.github.com/users/deviator/followers","following_url":"https://api.github.com/users/deviator/following{/other_user}","gists_url":"https://api.github.com/users/deviator/gists{/gist_id}","starred_url":"https://api.github.com/users/deviator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deviator/subscriptions","organizations_url":"https://api.github.com/users/deviator/orgs","repos_url":"https://api.github.com/users/deviator/repos","events_url":"https://api.github.com/users/deviator/events{/privacy}","received_events_url":"https://api.github.com/users/deviator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-06T22:02:43Z","updated_at":"2015-06-06T22:02:43Z","closed_at":null,"body":"I cal extending D function from embeded python code in D code\r\n\r\nsrc/main.d\r\n```d\r\nimport std.stdio;\r\nimport pyd.pyd, pyd.embedded;\r\nvoid main()\r\n{\r\n    py_init();\r\n    auto script = new InterpContext;\r\n    script.py_stmts( \"import sys\" );\r\n    script.py_stmts( \"sys.path.append('.')\" );\r\n    script.py_stmts( \"import pct\" );\r\n    writefln( \"result: %s\", script.pct.calldfunc()(12) );\r\n}\r\n```\r\npct.py\r\n```python\r\nimport func\r\n\r\ndef calldfunc(x):\r\n    return func.calc( 8, x )\r\n```\r\nsrc/func.d\r\n```d\r\nmodule func;\r\nimport pyd.pyd;\r\nimport std.math;\r\nfloat calc( float x, float y ) { return sqrt(x) + y^^x; }\r\nextern(C) void PydMain()\r\n{\r\n    def!(calc)();\r\n    module_init();\r\n}\r\n```\r\nsetup_func.py\r\n```python\r\nfrom pyd.support import setup, Extension\r\nprojName = 'func'\r\nsetup(\r\n    name=projName,\r\n    version='0.1',\r\n    ext_modules=[\r\n        Extension(projName, ['src/func.d'],\r\n            extra_compile_args=['-w'],\r\n            build_deimos=True,\r\n            d_lump=True\r\n        )\r\n    ],\r\n)\r\n```\r\ndub.json\r\n```js\r\n{\r\n    \"name\": \"pydtest\",\r\n    \"targetType\": \"executable\",\r\n    \"dependencies\": {\r\n        \"pyd\": \"~>0.9.7\"\r\n    },\r\n    \"subConfigurations\": {\r\n        \"pyd\": \"python34\"\r\n    }\r\n}\r\n```\r\nrun\r\n```\r\ndub build\r\npython3 setup_func.py build && cp build/lib.linux-x85-64-3.4/func.cpython-34m.so .\r\n./pydtest\r\n```\r\nand have error\r\n```\r\nFatal Error while loading '/lib64/libphobos2.so.0.67':\r\n\tThe module 'std.array' is already defined in './pydtest'.\r\n```\r\n\r\nLinux 4.0.4-201.fc21.x86_64\r\nDMD64 v2.067.1\r\nPython 3.4.1"}}