{"action":"created","issue":{"url":"https://api.github.com/repos/ariovistus/pyd/issues/59","repository_url":"https://api.github.com/repos/ariovistus/pyd","labels_url":"https://api.github.com/repos/ariovistus/pyd/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/ariovistus/pyd/issues/59/comments","events_url":"https://api.github.com/repos/ariovistus/pyd/issues/59/events","html_url":"https://github.com/ariovistus/pyd/issues/59","id":179320604,"number":59,"title":"Getting: ImportError: DLL load failed: %1 is not a valid Win32 application when calling D from Python via PyD","user":{"login":"vasudevram","id":9134,"avatar_url":"https://avatars.githubusercontent.com/u/9134?v=3","gravatar_id":"","url":"https://api.github.com/users/vasudevram","html_url":"https://github.com/vasudevram","followers_url":"https://api.github.com/users/vasudevram/followers","following_url":"https://api.github.com/users/vasudevram/following{/other_user}","gists_url":"https://api.github.com/users/vasudevram/gists{/gist_id}","starred_url":"https://api.github.com/users/vasudevram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasudevram/subscriptions","organizations_url":"https://api.github.com/users/vasudevram/orgs","repos_url":"https://api.github.com/users/vasudevram/repos","events_url":"https://api.github.com/users/vasudevram/events{/privacy}","received_events_url":"https://api.github.com/users/vasudevram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-26T19:49:56Z","updated_at":"2016-09-29T23:11:52Z","closed_at":null,"body":"\r\nI followed the steps here:\r\n\r\nhttp://pyd.readthedocs.io/en/latest/extend.html\r\n\r\nI created a new dub project using dub init test_pyd.\r\n\r\nThen edited the dub.json file that was created, to include PyD as a dependency, \r\naccording to the syntax shown here:\r\n\r\nhttps://code.dlang.org/packages/pyd\r\n\r\nThe complete dub.json file after the edit:\r\n{\r\n\t\"name\": \"test_pyd\",\r\n\t\"authors\": [\r\n\t\t\"user\"\r\n\t],\r\n\t\"description\": \"A test of PyD\",\r\n\t\"copyright\": \"Copyright 2016, user\",\r\n\t\"license\": \"proprietary\",\r\n\t\"dependencies\": {\r\n\t\t\"pyd\": \"~>0.9.8\"    \r\n\t}\r\n}\r\nThen I did: dub\r\nwhich built the library test_pyd.lib okay and gave a message saying so.\r\n\r\nThen I created the setup.py shown at the above PyD docs URL, and ran it (after git cloning the PyD repo to local:\r\n\r\n$ python setup.py install\r\n\r\nThis went through okay with no errors, and showed that it had done this\r\n\r\ncopying build\\lib.win-amd64-2.7\\hello.pyd -> C:\\Python2711\\Lib\\site-packages\r\n\r\nThen created a file test_pyd.py with this content:\r\n\r\nimport hello\r\nhello.hello()\r\n\r\nBut when I run it with:\r\n\r\npython test_pyd.py\r\n\r\nI get this error:\r\n\r\nTraceback (most recent call last):\r\n  File \"test_pyd.py\", line 2, in <module>\r\n    import hello\r\nImportError: DLL load failed: %1 is not a valid Win32 application.\r\n\r\nThanks for any debugging suggestions you can provide.\r\n"},"comment":{"url":"https://api.github.com/repos/ariovistus/pyd/issues/comments/250618086","html_url":"https://github.com/ariovistus/pyd/issues/59#issuecomment-250618086","issue_url":"https://api.github.com/repos/ariovistus/pyd/issues/59","id":250618086,"user":{"login":"ariovistus","id":842452,"avatar_url":"https://avatars.githubusercontent.com/u/842452?v=3","gravatar_id":"","url":"https://api.github.com/users/ariovistus","html_url":"https://github.com/ariovistus","followers_url":"https://api.github.com/users/ariovistus/followers","following_url":"https://api.github.com/users/ariovistus/following{/other_user}","gists_url":"https://api.github.com/users/ariovistus/gists{/gist_id}","starred_url":"https://api.github.com/users/ariovistus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariovistus/subscriptions","organizations_url":"https://api.github.com/users/ariovistus/orgs","repos_url":"https://api.github.com/users/ariovistus/repos","events_url":"https://api.github.com/users/ariovistus/events{/privacy}","received_events_url":"https://api.github.com/users/ariovistus/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T23:11:52Z","updated_at":"2016-09-29T23:11:52Z","body":"I'm thinking pyd doesn't support 64 bit windows builds. Seems like walter set up linking differently there and I never got around to ensuring pyd can handle it."}}
{"actor":{"display_login":"ariovistus"}}