plasma-umass / scalene

Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals
Apache License 2.0
11.57k stars 388 forks source link

`Fatal error in launcher` error when running test. #581

Open simonrp84 opened 1 year ago

simonrp84 commented 1 year ago

Describe the bug When trying to run the example script listed in the readme (scalene test/testme.py) I get the following error:

Fatal error in launcher: Unable to create process using '"D:\bld\scalene_1673046942881\_h_env\python.exe"  "C:\Users\Simon\miniconda3\Scripts\scalene.exe" test/testme.py': The system cannot find the file specified.

To Reproduce 1) Create a new conda environment and install scalene. 2) Run the test script: scalene test/testme.py 3) Error is raised.

However, the code works correctly if I install Scalene from github using pip, so this appears to be an issue with the conda build of the library.

Expected behavior Scalene to run correctly.

Desktop (please complete the following information):

tjnd89 commented 1 year ago

I had the exact same behavior after installing using conda.

Fatal error in launcher: Unable to create process using '"D:\bld\scalene_1685976958479\_h_env\python.exe" "C:\Users\tj\anaconda3\envs\test2\Scripts\scalene.exe" --help': The system cannot find the file specified.

OS: Windows 11 Verion Python 3.9.16

Following @simonrp84's advice, I uninstalled and reinstalled using pip. Works now.