{"action":"created","issue":{"url":"https://api.github.com/repos/b45ch1/pycppad/issues/6","repository_url":"https://api.github.com/repos/b45ch1/pycppad","labels_url":"https://api.github.com/repos/b45ch1/pycppad/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/b45ch1/pycppad/issues/6/comments","events_url":"https://api.github.com/repos/b45ch1/pycppad/issues/6/events","html_url":"https://github.com/b45ch1/pycppad/issues/6","id":190610989,"number":6,"title":"pycppad in python3.5","user":{"login":"al00014","id":15335242,"avatar_url":"https://avatars.githubusercontent.com/u/15335242?v=3","gravatar_id":"","url":"https://api.github.com/users/al00014","html_url":"https://github.com/al00014","followers_url":"https://api.github.com/users/al00014/followers","following_url":"https://api.github.com/users/al00014/following{/other_user}","gists_url":"https://api.github.com/users/al00014/gists{/gist_id}","starred_url":"https://api.github.com/users/al00014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/al00014/subscriptions","organizations_url":"https://api.github.com/users/al00014/orgs","repos_url":"https://api.github.com/users/al00014/repos","events_url":"https://api.github.com/users/al00014/events{/privacy}","received_events_url":"https://api.github.com/users/al00014/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-21T03:36:05Z","updated_at":"2016-11-21T11:35:15Z","closed_at":null,"body":"Has anyone succeeded in importing the pycppad in python 3.5? I know I have to deal with CppAD and boost first. I was successful in using cmake to build the boost library but then during setup of pycppad, I encountered \"AttributeError: 'NoneType' object has no attribute 'lstrip'\".\r\n\r\nI am wondering if it's true that pycppad could only be used in python2.7?\r\n\r\nMuch appreciated."},"comment":{"url":"https://api.github.com/repos/b45ch1/pycppad/issues/comments/261913863","html_url":"https://github.com/b45ch1/pycppad/issues/6#issuecomment-261913863","issue_url":"https://api.github.com/repos/b45ch1/pycppad/issues/6","id":261913863,"user":{"login":"bradbell","id":37777,"avatar_url":"https://avatars.githubusercontent.com/u/37777?v=3","gravatar_id":"","url":"https://api.github.com/users/bradbell","html_url":"https://github.com/bradbell","followers_url":"https://api.github.com/users/bradbell/followers","following_url":"https://api.github.com/users/bradbell/following{/other_user}","gists_url":"https://api.github.com/users/bradbell/gists{/gist_id}","starred_url":"https://api.github.com/users/bradbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradbell/subscriptions","organizations_url":"https://api.github.com/users/bradbell/orgs","repos_url":"https://api.github.com/users/bradbell/repos","events_url":"https://api.github.com/users/bradbell/events{/privacy}","received_events_url":"https://api.github.com/users/bradbell/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T11:35:15Z","updated_at":"2016-11-21T11:35:15Z","body":"I agree that it would be good the get pycppad to work with python3.  Unfortunately, I currently have too many open source projects and hence am not working on it much right now. I would be willing to help if you would like to try and do this.\r\n\r\nJust to see what goes wrong, I tried to build pycppad with the current master version of CppAD on github; see\r\n   http://www.coin-or.org/CppAD/Doc/download.htm\r\nyou would probably get the same result using\r\n  http://www.coin-or.org/download/source/CppAD/cppad-20150000.9.gpl.tgz\r\n\r\nStep 1:\r\nI changed the first line of setup.py to:\r\n#!/usr/bin/env python3\r\n\r\nStep 2:\r\nI executed the command:\r\npycppad.git>./setup.py build_ext --inplace --debug --undef NDEBUG \r\n\r\nResult:\r\nI got the following error:\r\npycppad/vector.cpp: In function ‘void pycppad::vector_avoid_warning_that_import_array_not_used()’:\r\n/usr/lib64/python3.4/site-packages/numpy/core/include/numpy/__multiarray_api.h:1708:35: error: return-statement with a value, in function returning 'void' [-fpermissive]\r\n #define NUMPY_IMPORT_ARRAY_RETVAL NULL\r\n\r\nRemark:\r\nI think that numpy has changed its API between python2 and python3 and one needs to do work to adapt to these changes.\r\n\r\n"}}
{"actor":{"display_login":"bradbell"}}