-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pycppad in python3.5 #6
Comments
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. Just to see what goes wrong, I tried to build pycppad with the current master version of CppAD on github; see Step 1: Step 2: Result: Remark: |
Hey Bradbell! Thank you for your help! I am using a windows 10 device, I install mingw manager and installed gcc+,pthreads from the manager. I then use the cmake GUI to build the cppad file in our local files. The GUI suggested both 'Configuring done' and 'Generating done'. But it also said 'Could not find boost multi-threading library' and I don't know if this would have influence on the building process. Lastly, I was able to ran ->boostrap.bat mingw and ->b2.exe variant=release link=shared threading=multi python. This got me a bunch of files in the location 'C:\Python\boost_1_62_0\bin.v2'. I followed this tutorial http://list.coin-or.org/pipermail/cppad/2013q2/000309.html but I did not have any success yet. I know it'd be too much for you to handle since it's time-consuming to debug or to replicate the problems. But I do wish to get some hints from you. Thanks a lot. |
I have a windows 10 machine available. Perhaps it would help if I On 11/22/2016 06:31 AM, al00014 wrote:
|
Yes indeed I use mingw-get-setup.exe program and install it in the location 'C:\Python\MinGW', I then put the 'C:\Python\MinGW\bin' in the PATH environment variable via 'Advanced system settings' in the computer. Then I located the boost file 'C:\Python\boost_1_62_0' and ran the line 'bootstrap.bat mingw'. After this, I got b2.exe in the 'C:\Python\boost_1_62_0' and changed Then I built the library with command 'b2.exe variant=release link=shared threading=multi python'. I was able to locate a dll file in 'C:\Python\boost_1_62_0\bin.v2\libs\python\build\gcc-mingw-4.7.0\release\threading-multi'. And I changed the setup.py script in pycppad to match the dll and the location. I then ran Cmake-GUI and it suggested that it could find the boost 1.6 and I can get the generation process done. But it also suggested that pthread library path = pthread_lib_path-NOTFOUND Therefore, I am so confused. PS. I ran the above procedures in the surface pro win 10 device. I was trying to replicate the procedures in my other win10 device but it seems that I could not get the boost library setup properly. This may well be another question though... Much appreciated~~~ |
To add to the topics, I seem to discover the reasons why my surface ran bootstrap.bat mingw successfully while my other windows machine won't run properly. I also use R programming and installed Rtools which come with mingw. During the installation, Rtools add 'Rtools\bin' to the path for the system variables. I don't know if Rtools and MinGW could be in conflict with each other.... |
On 11/22/2016 07:12 PM, al00014 wrote:
I installed the mingw installer and notice that it refers to its |
I think there is a 64 bit version, but the software is provided by http://tdm-gcc.tdragon.net/download. Also, when I install Rtools, I got both 32 and 64bit version mingw. I think the gcc from MinGW/bin and Rtools/mingw_32 and Rtools/mingw_64 are all messed up together... |
On 11/23/2016 06:53 AM, al00014 wrote:
|
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'".
I am wondering if it's true that pycppad could only be used in python2.7?
Much appreciated.
The text was updated successfully, but these errors were encountered: