Git Product home page Git Product logo

Comments (14)

triloki avatar triloki commented on September 17, 2024

Found the error. It seems that distribute package needs to be installed to fix this error.

from pyql.

dpinte avatar dpinte commented on September 17, 2024

Will add the dependency to the required packages in setup.py.

Thanks for the report

from pyql.

ducky427 avatar ducky427 commented on September 17, 2024

Thanks Didrik!

from pyql.

davidia avatar davidia commented on September 17, 2024

Getting this same error building with python 2.7.3. Proceed by:

UserWarning: Unknown Extension options: 'pyrex_directives'

Any ideas? Thanks!

from pyql.

dpinte avatar dpinte commented on September 17, 2024

@davidia This is just a warning and is not the root cause of the issue you might have. Can you create a new ticket and copy the entire stdout of the build?

from pyql.

mft-webdev avatar mft-webdev commented on September 17, 2024

Still getting this error - seems like an obvious error: in the folder quantlib no c files exist.
I am using the make files that come with pyQl.

python setup.py build_ext --inplace
/usr/lib/python2.7/distutils/extension.py:133: UserWarning: Unknown Extension options: 'pyrex_directives'
warnings.warn(msg)
running build_ext
building '' extension
creating build
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/quantlib
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_CONFIG_H -I/usr/local/include -I/usr/include -I. -I./cpp_layer -I/usr/include/python2.7 -c quantlib/
.c -o build/temp.linux-i686-2.7/quantlib/.o
gcc: error: quantlib/
.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command 'gcc' failed with exit status 4
make: *** [build] Error 1

from pyql.

dpinte avatar dpinte commented on September 17, 2024

Do you have Cython installed? Do you hade distribute installed?

No .cpp files means that Cython has not run and thus not generated the .cpp files ...

from pyql.

mft-webdev avatar mft-webdev commented on September 17, 2024

I do have Cython, (working very well) but it appears to me that the make file is looking for .c files.

In the first set of comments I see:
"Will add the dependency to the required packages in setup.py."
I thought possibly this is still the issue.

Maybe the install requires more dependencies and I haven't read the proper install prerequisites?
Thanks for your help, I really want to work with this.

from pyql.

davidia avatar davidia commented on September 17, 2024

Make 100% sure you have distutils installed correctly. That was my
problem...

On 18 January 2013 14:20, Michael Thamm [email protected] wrote:

I do have Cython, (working very well) but it appears to me that the make
file is looking for .c files.

In the first set of comments I see:
"Will add the dependency to the required packages in setup.py."
I thought possibly this is still the issue.

Maybe the install requires more dependencies and I haven't read the proper
install prerequisites?
Thanks for your help, I really want to work with this.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-12423547.

from pyql.

mft-webdev avatar mft-webdev commented on September 17, 2024

Thank you - I will make sure I have distutils installed correctly.

from pyql.

mft-webdev avatar mft-webdev commented on September 17, 2024

Distutils is up to date. I am on Ubuntu 12.04, python 2.7.
I will continue to try - if any other ideas, please let me know.
Thanks

from pyql.

dpinte avatar dpinte commented on September 17, 2024

distutils is part of Python 2.7. I suppose @davidia was thinking of distribute. What version do you have?

from pyql.

davidia avatar davidia commented on September 17, 2024

Yep, should have checked!
On 19 Jan 2013 11:05, "Didrik Pinte" [email protected] wrote:

distutils is part of Python 2.7. I suppose @davidiahttps://github.com/davidiawas thinking of distribute. What version do you have?


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-12453392.

from pyql.

mft-webdev avatar mft-webdev commented on September 17, 2024

OK - I got it working. And as usual its all about the dependent libraries. I see that setup.py does retrieve the latest distribute library, but make does not. That got me past the first gcc *.c error. Also, needed is the python development installed apt-get install python-dev. Also, I installed (in Ubuntu) sudo apt-get install libquantlib0-dev. And of course, I installed Boost and Quantlib and then ran sudo python setup.py install and finally. I am assuming that installing Boost and Quantlib for c++ is a requirement - is that true?? That should be the first thing someone trying to install should understand. - Thanks - looking forward to building something interesting!!

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.