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

No workers built for installed amuse packages #953

Open
sergio0711 opened this issue Apr 25, 2023 · 8 comments
Open

No workers built for installed amuse packages #953

sergio0711 opened this issue Apr 25, 2023 · 8 comments
Labels

Comments

@sergio0711
Copy link

sergio0711 commented Apr 25, 2023

Describe the bug
I installed my AMUSE without any problem. However, when I tried to run an event-driven example calling the SeBa community code, it showed the next error:

exceptions.CodeException("The worker application does not exist, it should be at: \n{0}".format('\n'.join(tried_workers)))
amuse.support.exceptions.CodeException: The worker application does not exist, it should be at:
/Users/sergiosan/Amuse-env/lib/python3.9/site-packages/amuse/_workers/seba_worker
/Users/sergiosan/Amuse-env/lib/python3.9/site-packages/amuse/_workers/seba_worker
/Users/sergiosan/Amuse-env/lib/python3.9/site-packages/amuse/community/seba/seba_worker
/Users/sergiosan/Amuse-env/lib/python3.9/site-packages/amuse/rfi/seba_worker

I just realised that all the cummunity codes have their respective worker executable files, but the one from Seba is not there. I

Environment (please complete the following information):

  • I have a MacBook Pro with M1 processor.

Am I missing something or I forgot to include the worker?

@sergio0711 sergio0711 added the bug label Apr 25, 2023
@rieder
Copy link
Member

rieder commented Apr 25, 2023

Hmm, that's odd. Could you post the output of

pip list | grep amuse

?

@sergio0711
Copy link
Author

sergio0711 commented Apr 25, 2023

Completely odd.. It never happened to me. It's just missing that specific file.

When I do pip list | grep amuse I got all the community codes installed:

amuse 2023.3.0
amuse-athena 2023.3.0
amuse-bhtree 2023.3.0
amuse-bse 2023.3.0
amuse-capreole 2023.3.0
amuse-evtwin 2023.3.0
amuse-fastkick 2023.3.0
amuse-fi 2023.3.0
amuse-fractalcluster 2023.3.0
amuse-framework 2023.3.0
amuse-gadget2 2023.3.0
amuse-galactics 2023.3.0
amuse-galaxia 2023.3.0
amuse-halogen 2023.3.0
amuse-hermite 2023.3.0
amuse-hop 2023.3.0
amuse-huayno 2023.3.0
amuse-kepler 2023.3.0
amuse-kepler-orbiters 2023.3.0
amuse-mameclot 2023.3.0
amuse-mercury 2023.3.0
amuse-mmams 2023.3.0
amuse-ph4 2023.3.0
amuse-phigrape 2023.3.0
amuse-seba 2023.4.0
amuse-secularmultiple 2023.3.0
amuse-simplex 2023.3.0
amuse-smalln 2023.3.0
amuse-sphray 2023.3.0
amuse-sse 2023.3.0
amuse-twobody 2023.3.0

Including SeBa. Does it have something to do with the OS? On the other hand... Can I get the worker in any repository?

@rieder
Copy link
Member

rieder commented Apr 26, 2023

The worker should be built automatically when you install via pip, if it's not there the installation should fail.
The OS is not a problem either.
I just tested amuse-seba 2023.4.0 which you have installed, and I have the worker.

Could you try uninstalling amuse-seba
(pip uninstall amuse-seba),
then removing your pip cache files
(rm -r ~/Library/Caches/pip/wheels/*),
and then install amuse-seba again
(pip install --upgrade amuse-seba)?

@sergio0711
Copy link
Author

sergio0711 commented Apr 26, 2023

I have applied the commands you proposed. After uninstalling SeBa I checked that the folder was properly removed, including the pip cache files. Finally, I re-install amuse-seba one more time but I'm getting the same folder without the worker. Definitely, very strange...

The only files that appear are:

  • _ init _.py"
  • _ pycache _ (folder)
  • download.py
  • interface.py
  • version.py

@rieder
Copy link
Member

rieder commented Apr 26, 2023

And just to be sure, could you check that if you install e.g. amuse-sse it does have its respective worker?

@sergio0711
Copy link
Author

Sure, I just even checked all other community code folders and there are more missing workers apart from SeBa. Those are:

  • bhtree
  • fi
  • hop
  • mmams
  • simplex

Just in case, (if this info is relevant) my version of OS is Ventura and I installed the whole Amuse in my laptop in late February with python 3.9.

Also, last year my institute installed AMUSE in a cluster (Linux) with python 3.6. I checked folders and everything is in place.

@rieder
Copy link
Member

rieder commented Apr 27, 2023

Ok, so the problem is not Seba then, but more global.
I'm surprised that these packages install after failing to build the worker, that seems like the real bug here.

Your issue would then probably originate from a problem with the prerequisites, perhaps the compilers are not correct.
Did you upgrade anything after originally installing amuse-framework?
Could you attach the AMUSE config file (should be in /Users/sergiosan/Amuse-env/share/amuse/config.mk)?

Your OS and Python version are not a problem, I'm running the same.

@rieder rieder changed the title No seba_worker file in seba folder No workers built for installed amuse packages Apr 27, 2023
@sergio0711
Copy link
Author

For you first question. I haven't done any upgrade of AMUSE after installing it the first time. Just installed some libraries in python for my PhD project, particularly the one called Isochrones.

Now, here below I attached the file config.mk you asked me to look for (I added .txt at the end for uploading without format error)

config.mk.txt

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

No branches or pull requests

2 participants