'Error: make: *** No rule to make target `.f90', needed by `.o'. Stop
I'm trying to run a case for the software [ExoPlaSim] (https://github.com/alphaparrot/ExoPlaSim) on my MacBook. While the software is built primarily for Linux, it can run on Mac according to the developer instructions. I've installed the software and (as far as I can tell) the necessary dependencies per the instructions on the website. I'm running a simple script (see below) to test that all is working. It isn't—I get errors. The first significant error I get is this:
Writing makefile...make: *** No rule to make target `.f90', needed by `.o'. Stop.
What's going on? What's the problem here? From my online research it looks like possible problems may include:
- ".f90" file can't be found.
- Compiler version is incorrect.
- The directory structure is wrong.
These are all basically guesses on my part. I could be way off base. The software is functional (other users confirm it works for them, though on Linux) and the initial case I'm trying to run is very basic and without any errors (that I can see).
The case (python file) is this:
import exoplasim as exo
mymodel = exo.Model(workdir="mymodel_testrun",modelname="mymodel",resolution="T21",layers=5,precision=4,ncpus=2)
mymodel.configure()
mymodel.run(years=10,crashifbroken=True)
mymodel.finalize("mymodel_output")
The directory structure for the case is: /Users/username/ExoPlaSim_Testing (ExoPlaSim_Testing is an arbitrary directory I created to store case files).
The path containing the software (as far as I can tell) is: /Users/username/Library/Python/3.9/lib/python/site-packages/exoplasim.
*** I'm a casual developer (mostly some front-end stuff): Answers should not assume too much prior dev knowledge. ***
Thank you!!!
Solution 1:[1]
Actually, they are not. You can see the top and the last few rows only where it shows 255 because the pixels there are white. If you try reading the same array using PIL/OpenCV, the result will show properly.
However, you can see all the results of the NumPy array using this method-
img_sequence = img.getdata()
img_array = np.array(img_sequence)
np.set_printoptions(threshold=np.inf)
print(img_array)
Sample screenshot of a random part of the output I got for the same image -
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Adit Magotra |

