Comments (13)
Hi, I have updated my post as required, and thanks for letting me know that I can enclose equations and use LaTex. Please let me know if I need to provide more information.
from scipy.
I followed
Contributor quickstart guide
and run command uptopython3 dev.py test
, but it gives me errormeson.build:84:0: ERROR: Compiler gfortran cannot compile programs.
I use Mac M1 and had the same error message. I worked around it by executing the following before python dev.py build
:
export LIBRARY_PATH="$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
This works for me because after I upgraded XCode, some of the environment variables are not correctly set.
Btw, after the config error message, there should be somewhere that shows you a detailed error log. In that log it explains exactly why it “couldn’t compile Fortran program”. For me it was unable to “-lSystem”.
from scipy.
Hi @ZhibingSun , as a small ask, could you edit your post to enclose equations in backticks (this symbol `)? That should make it easier to read! (Or you can use $ signs for LaTeX too).
cc @steppi
from scipy.
Thanks for the bug report @ZhibingSun! It looks like this error goes back to when this function was first introduced. It seems no one noticed before you because ratevl
is only used in one place in SciPy and in that case the numerator and denominator have the same degree.
Would you like submit a pull request with the fix?
from scipy.
Yes, I would love to contribute. Could you give me some guidance of how to submit a pull request?
from scipy.
Yes, I would love to contribute. Could you give me some guidance of how to submit a pull request?
Great! Start with the Contributor quickstart in the Developer documentation, and then check out the Development workflow section. That should be enough to get started.
from scipy.
I followed Contributor quickstart guide
and run command upto python3 dev.py test
, but it gives me error meson.build:84:0: ERROR: Compiler gfortran cannot compile programs.
I checked that gfortran exists on my system M1 mac by running gfortran --version
, which gives me NU Fortran (GCC) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Could you tell me how I shall proceed?
from scipy.
Are you on windows or Linux? I suggesting trying to compile a really simple test program (c.f. hello world) to see if the compiler actually works.
from scipy.
I am on M1 mac Ventura 13.6.6.
from scipy.
How did you install gfortran? I've found homebrew to work.
from scipy.
I installed it from here. https://github.com/fxcoudert/gfortran-for-macOS/releases
. As I mentioned in my previous post, I ran gfortran --version
and it works.
from scipy.
Running that command doesn't necessarily mean that the compiler works. Try compiling and running a test program.
from scipy.
These two lines from http://scipy.github.io/devdocs/building/index.html#system-level-dependencies were enough for me.
from scipy.
Related Issues (20)
- Failures for new `pytest-fail-slow` check in Windows CI jobs HOT 7
- TST: my local test failures HOT 14
- BUG: ``optimize.nnls`` sometimes fails when input ``A`` is a Fortran order array HOT 4
- BUG: sparse.csgraph.minimum_spanning_tree: 64bit indices unsupported
- BUG: stats.levy_stable.rvs() ignores "S0"-parameterization
- BUG: SLSQP Inequality constraints incompatible when no constraints are present or constraints are respected HOT 7
- BUG: Numerically incorrect `scipy.signal.savgol_coeffs` (also affects `scipy.signal.savgol_filter`) HOT 6
- ENH: Add option to pass a single function to compute fun and jac in scipy.optimize.least_squares HOT 5
- query: scipy.signal.ShortTimeFFT import does not work HOT 1
- BUG: special.fdtri: inaccurate results for extreme arguments (exposed via scipy.stats.f.ppf) HOT 3
- DOC: Discourse release notes character limit HOT 2
- BUG: first shared library in scipy fails to be consumed by MSVC HOT 1
- BUG: sparse: testcase test_array_api_deprecations fails on Ubuntu 22.04 HOT 1
- DOC: update testing docs for alternative backends HOT 5
- ENH: sparse.csr_matrix: parallelize dot product HOT 2
- BUG: signal.iirfilter: returns NaNs
- MAINT/DEV: improve command line clarity of `dev.py` HOT 1
- DOC: stats.bootstrap: improve documentation multidimensional input HOT 14
- BUG: Library not loaded: @rpath/libgfortran.5.dylib for scipy v1.14.0rc1 x86 macos wheels HOT 21
- TYP: `_lib.doccer`: add type annotations 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 scipy.