-
Notifications
You must be signed in to change notification settings - Fork 192
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
Can`t generate c code files. Cython-0.21.1 Python2.6 QuantLib-1.4 #71
Comments
Sounds like an issue with Cython as they are no .c files. You should only have cpp files. Are you sure Cython is installed correctly? What is the output of |
C:\Users\think>cython --version C:\Users\think> |
Do you have setuptools installed? |
I install it used source zip package |
D:\sourcefile\python\Cython-0.21.1>setup.py install Installed c:\python26\lib\site-packages\cython-0.21.1-py2.6-win32.egg |
Can you confirm that you have either setuptools or distribute installed? |
Thank you for your help, I found the cause of the problem.The install cmd must run with administrator rights in window7. |
But I encountered another problem. |
Have you generated the .def file? And build the .dll with it? |
By the way, you can't build pyql for Python 2.6 using VC10, you need VC 2008! |
I use VC 2008 to buid QuantLib.lib, has passed the aforementioned problems.But raising an another exception. ql_settings.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class Quan |
Have you patched the |
Yes ,I have patched. File "D:\sourcefile\python\pyql\pyql-master\scripts\generate_symbols.py", line 12, in symbol_generator_from_obj_file |
@Hardy5012 sorry for the slow answer. I can't see any obvious reason why your build does not pass. I can provide you with my .def and .lib files if that can help. FYI: we've dropped the support for Python 2.6 (meaning that we won't invest much time in supporting it in the future). |
Closing this issue for now. |
D:\sourcefile\python\pyql\pyql-master>setup.py build
C:\Python26\lib\distutils\extension.py:133: UserWarning: Unknown Extension options: 'cython_directiv
es'
warnings.warn(msg)
running build
running build_py
running build_ext
building '' extension
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
creating build\temp.win32-2.6\Release\quantlib
d:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBU
G -D__WIN32__ -DWIN32 -DNDEBUG -D_WINDOWS -DNOMINMAX -DWINNT -D_WINDLL -D_SCL_SECURE_NO_DEPRECATE -D
CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -IE:\share\workplace\code\QuantLib-1.4 -ID:\boost
\include\boost-1_53 -I. -I./cpp_layer -IC:\Python26\lib\site-packages\numpy\core\include -IC:\Python
26\include -IC:\Python26\PC /Tcquantlib/.c /Fobuild\temp.win32-2.6\Release\quantlib/.obj /GR /FD /
Zm250 /EHsc /Z7
*.c
c1 : fatal error C1083: 无法打开源文件:“quantlib/_.c”: Invalid argument
error: command '"d:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit
status 2
The text was updated successfully, but these errors were encountered: