Comments (14)
Found the error. It seems that distribute package needs to be installed to fix this error.
from pyql.
Will add the dependency to the required packages in setup.py.
Thanks for the report
from pyql.
Thanks Didrik!
from pyql.
Getting this same error building with python 2.7.3. Proceed by:
UserWarning: Unknown Extension options: 'pyrex_directives'
Any ideas? Thanks!
from pyql.
@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.
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.
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.
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.
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.
Thank you - I will make sure I have distutils installed correctly.
from pyql.
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.
distutils is part of Python 2.7. I suppose @davidia was thinking of distribute. What version do you have?
from pyql.
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.
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)
- 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.