Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M2 and M3 installation issues. #96

Open
joshbmat opened this issue May 8, 2024 · 3 comments
Open

M2 and M3 installation issues. #96

joshbmat opened this issue May 8, 2024 · 3 comments

Comments

@joshbmat
Copy link

joshbmat commented May 8, 2024

We have problems installing the latest FEW master branch on both M2 and M3 machines.

We encounter two problems that seem to be distinct from the M1 installation issue #95 . The first one is easy work around. The second one is problematic.

The first problem is the few.version is not found (test 1):

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[5], line 8
      5 get_ipython().run_line_magic('matplotlib', 'inline')
      6 import numpy as np
----> 8 from few.trajectory.inspiral import EMRIInspiral
      9 from few.amplitude.romannet import RomanAmplitude
     10 from few.amplitude.interp2dcubicspline import Interp2DAmplitude

File ~/FastEMRIWaveforms/few/__init__.py:1
----> 1 from few._version import __version__

ModuleNotFoundError: No module named 'few._version'

We get around this by commenting out the only line in ' init.py'.

The second problem is pyInspiral not compiling (subsequent tests):

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[6], line 8
      5 get_ipython().run_line_magic('matplotlib', 'inline')
      6 import numpy as np
----> 8 from few.trajectory.inspiral import EMRIInspiral
      9 from few.amplitude.romannet import RomanAmplitude
     10 from few.amplitude.interp2dcubicspline import Interp2DAmplitude

File ~/FastEMRIWaveforms/few/trajectory/inspiral.py:28
     25 from scipy.interpolate import CubicSpline
     27 # Cython/C++ imports
---> 28 from pyInspiral import pyInspiralGenerator
     30 # Python imports
     31 from few.utils.baseclasses import TrajectoryBase

ModuleNotFoundError: No module named 'pyInspiral'

This was highlighted in issue #85 but the issue was seemingly assumed to be the same as issue #81 and was closed. We tried again using the older commit 0c52a1c tagged as resolving issue #81 and the commits either side but ran into the same problems. It's possible that issue #85 was never fixed by the subsequent commits?

@wc1018
Copy link

wc1018 commented May 24, 2024

I have the same problems too, on ubuntu 23.10.

@JingZhaoQi
Copy link

Me too

@lennoxkeeble
Copy link

I encountered both of these issues while installing the package on my personal computer (MacBook with Intel chip).

As mentioned in the comments in issue #94, I fixed the first issue as follows. After cloning the Github repo from the source, but before running 'bash install.sh', I moved the prebuild.py file into its parent folder (e.g., running 'mv ./scripts/prebuild.py ./' while in the './FastEMRIWaveforms' directory), and then ran 'prebuild.py'. After doing this, I could build the wheel successfully.

I then encountered the second issue about there being no 'pyInspiral' module when running the import statements in cell 1 the examples notebook in a new jupyter notebook saved in the './FastEMRIWaveforms' directory. However, I only got these errors when I did not launch the notebook inside the 'few_env' environment in the terminal. That is, I was able to fix the second error message by running 'jupyter notebook' inside the 'few_env' environment in the terminal, and then running the same code from the browser that is launched by that command.

Since I did not encounter these problems on an M-chip Mac, I'm not sure if the root cause of the error messages on my computer is the same for the OP, but I thought I'd mention how I fixed the same error messages just in case it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants