Giter Site home page Giter Site logo

Comments (15)

dpinte avatar dpinte commented on May 20, 2024

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.

Hardy5012 avatar Hardy5012 commented on May 20, 2024

C:\Users\think>cython --version
Cython version 0.21.1

C:\Users\think>

from pyql.

dpinte avatar dpinte commented on May 20, 2024

Do you have setuptools installed?

from pyql.

Hardy5012 avatar Hardy5012 commented on May 20, 2024

I install it used source zip package

from pyql.

Hardy5012 avatar Hardy5012 commented on May 20, 2024

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.

dpinte avatar dpinte commented on May 20, 2024

Can you confirm that you have either setuptools or distribute installed?

from pyql.

Hardy5012 avatar Hardy5012 commented on May 20, 2024

Thank you for your help, I found the cause of the problem.The install cmd must run with administrator rights in window7.

from pyql.

Hardy5012 avatar Hardy5012 commented on May 20, 2024

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.

dpinte avatar dpinte commented on May 20, 2024

Have you generated the .def file? And build the .dll with it?

from pyql.

dpinte avatar dpinte commented on May 20, 2024

By the way, you can't build pyql for Python 2.6 using VC10, you need VC 2008!

from pyql.

Hardy5012 avatar Hardy5012 commented on May 20, 2024

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.

dpinte avatar dpinte commented on May 20, 2024

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.

Hardy5012 avatar Hardy5012 commented on May 20, 2024

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.

dpinte avatar dpinte commented on May 20, 2024

@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.

dpinte avatar dpinte commented on May 20, 2024

Closing this issue for now. 2.6 is deprecated.

from pyql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.