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

[Bug]: No module named 'distutils' #541

Open
1 of 3 tasks
ikondov opened this issue Jan 15, 2025 · 1 comment
Open
1 of 3 tasks

[Bug]: No module named 'distutils' #541

ikondov opened this issue Jan 15, 2025 · 1 comment
Labels

Comments

@ikondov
Copy link
Contributor

ikondov commented Jan 15, 2025

Code snippet

rlaunch --help

What happened?

  1. I am running the rlaunch command after a fresh install of fireworks, most recent release.
  2. The result behavior: I get this exception
Traceback (most recent call last):
  File "python-3.12.3_intel_2023.1.0/bin/rlaunch", line 5, in <module>
    from fireworks.scripts.rlaunch_run import rlaunch
  File "python-3.12.3_intel_2023.1.0/lib/python3.12/site-packages/fireworks/scripts/rlaunch_run.py", line 13, in <module>
    from fireworks.core.rocket_launcher import launch_rocket, rapidfire
  File "python-3.12.3_intel_2023.1.0/lib/python3.12/site-packages/fireworks/core/rocket_launcher.py", line 10, in <module>
    from fireworks.core.rocket import Rocket
  File "python-3.12.3_intel_2023.1.0/lib/python3.12/site-packages/fireworks/core/rocket.py", line 6, in <module>
    import distutils.dir_util
ModuleNotFoundError: No module named 'distutils'
  1. The expected behavior: There should be no crash running the command
  2. Proposed solution: The solution of this issue is to add setuptools to the install_requires section of setup.py. But the import of distutils has been removed in the main branch after this PR Replace copy_tree from distutils with copytree from shutil #533. Therefore, we need a new release. I would ask the maintainers to consider a new release soon in order to make these fixes available to the end users.

Version

2.0.3

Which OS?

  • MacOS
  • Windows
  • Linux

Log output

No response

@ikondov ikondov added the bug label Jan 15, 2025
@ikondov
Copy link
Contributor Author

ikondov commented Jan 15, 2025

A workaround is to install setuptools manually like python -m pip install setuptools but end users of downstream packages using fireworks will not arrive at this intuitively. The best solution is to have a new release with the fixes in the main branch.

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

1 participant