Comments (15)
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 cython --version
on the command line?
from pyql.
C:\Users\think>cython --version
Cython version 0.21.1
C:\Users\think>
from pyql.
Do you have setuptools installed?
from pyql.
I install it used source zip package
from pyql.
D:\sourcefile\python\Cython-0.21.1>setup.py install
running install
running bdist_egg
running egg_info
writing Cython.egg-info\PKG-INFO
....
Installed c:\python26\lib\site-packages\cython-0.21.1-py2.6-win32.egg
Processing dependencies for Cython==0.21.1
Finished processing dependencies for Cython==0.21.1
from pyql.
Can you confirm that you have either setuptools or distribute installed?
from pyql.
Thank you for your help, I found the cause of the problem.The install cmd must run with administrator rights in window7.
from pyql.
But I encountered another problem.
cashflow.obj : error LNK2019: 无法解析的外部符号 "public: thiscall QuantLib::Date::Date(void)" (??0Date@QuantLib@@QAE@XZ),
该符号在函数 "struct _object * __cdecl __pyx_pf_8quantlib_8cashflow_8CashFlow_4date___get(struct *pyx_obj_8quantlib_8cashflow_CashFlow )"
(__pyx_pf_8quantlib_8cashflow_8CashFlow_4date___get@@YAPAU_object@@PAU__pyx_obj_8quantlib_8cashflow_CashFlow@@@z) 中被引用
from pyql.
Have you generated the .def file? And build the .dll with it?
from pyql.
By the way, you can't build pyql for Python 2.6 using VC10, you need VC 2008!
from pyql.
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
tLib::Settings & __cdecl QuantLib::Singleton::instance(void)" (_imp?inst
ance@?$Singleton@VSettings@QuantLib@@@quantlib@@SAAAVSettings@2@XZ),该符号在函数 "class QuantLib::Date __cdecl QuantLib::get_evaluation_date(void)" (?get_evaluation_date@QuantLib@@ya?AVDate@1@XZ) 中
被引用
from pyql.
Have you patched the ql\settings.hpp
file as mentioned in the documentation?
( https://github.com/enthought/pyql/blob/master/docs/source/getting_started.rst#installation-from-source-on-windows)
from pyql.
Yes ,I have patched.
I run generate_symbols.py scripts there raising an exception. python2.6 subprocess don`t have both STARTF_USESHOWWINDOW and check_output attribute.
File "D:\sourcefile\python\pyql\pyql-master\scripts\generate_symbols.py", line 12, in symbol_generator_from_obj_file
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'
from pyql.
@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).
from pyql.
Closing this issue for now. 2.6
is deprecated.
from pyql.
Related Issues (20)
- test a examples file failed HOT 3
- Calls to CreditDefaultSwap.fair_upfront crash Python HOT 7
- def file generation HOT 2
- Test results with QuantLib 1.10
- compilation error HOT 3
- Problem with Python examples - american_option HOT 3
- testing pyql - errors HOT 2
- Odd issue with Period HOT 4
- Cython error + compilation error HOT 1
- Compilation Error on MacOS High Sierra HOT 15
- Cython version issue
- commit 27e9d9bf2 breaks compatibility with Quantlib < 1.13
- Adding OISRateHelpers HOT 13
- Building issue Win10x64 Python3.7.1 / x64 / VS2017 / QL1.15 / Boost 1.69 HOT 18
- Building on x64
- Build error error: ‘Microsecond’ is not a member of ‘QuantLib’ HOT 2
- install pyql in mac HOT 1
- error: ‘RelativePriceError’ is not a member of ‘QuantLib::CalibrationHelper’ HOT 4
- pyql/examples/data/df_libor.pkl cannot be loaded
- Pain point: Not enough documentation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyql.