learncpp-download icon indicating copy to clipboard operation
learncpp-download copied to clipboard

ModuleNotFoundError: No module named 'ray'

Open Squ1shy opened this issue 2 years ago • 3 comments

File "C:\Users-\Desktop\learncpp-download-master\source\main.py", line 3, in import ray ModuleNotFoundError: No module named 'ray'

Squ1shy avatar May 27 '22 01:05 Squ1shy

The ray module does not currently support Python 3.9+ (even though the docs say it does) There is an issue on the project about it, which is sadly still open meaning it hasn't been resolved. https://github.com/ray-project/tune-sklearn/issues/169 You can downgrade your python installation to 3.7/3.8 and install ray.

sohail0098 avatar Jun 15 '22 16:06 sohail0098

After running python main.py it shows this :

C:\Program Files\wkhtmltopdf\bin\learncpp-download\source>python main.py Traceback (most recent call last): File "main.py", line 31, in instance = render.WkRender(sequential=args.sequential) File "C:\Program Files\wkhtmltopdf\bin\learncpp-download\source\helper\render.py", line 65, in init self.urls = self.get_urls() TypeError: get_urls() missing 1 required positional argument: 'cooldown'

Squ1shy avatar Jun 19 '22 03:06 Squ1shy

The ray module does not currently support Python 3.9+ (even though the docs say it does) There is an issue on the project about it, which is sadly still open meaning it hasn't been resolved. ray-project/tune-sklearn#169 You can downgrade your python installation to 3.7/3.8 and install ray.

I have python 3.8.2 and still can't install ray. So maybe needs even older one.

3b33 avatar Jul 22 '22 07:07 3b33

Thank you for reporting. This issue is no longer applicable. For now, please stick with Python 3.10

amalrajan avatar Jul 08 '23 16:07 amalrajan