Replies: 1 comment 3 replies
-
What version of Scalene? Have you tried the repository version? ( |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I have been trying to run scalene but with no success.
Setup: Win10 prof, Anacondapython
, python 3.9.6
everything is fine when I run
(project-name) C:\Repositories\project-name>python C:\Repositories\project-name\profiling_scalene.py
but when run with scalene
(project-name) C:\Repositories\project-name>python -m scalene C:\Repositories\project-name\profiling_scalene.py
Error in program being profiled:
[WinError 123] The filename, directory name, or volume label syntax is incorrect: ''
Traceback (most recent call last):
File "C:\Users\user\Anaconda3\envs\project-name\lib\site-packages\scalene\scalene_profiler.py", line 1785, in profile_code
exec(code, the_globals, the_locals)
File "C:\Repositories\project-name\profiling_scalene.py", line 5, in
from api.engine_service import request_processing, validate_against_schema, request_post_processing
File "C:\Repositories\project-name\api\engine_service.py", line 4, in
import jsonschema
File "C:\Users\user\Anaconda3\envs\project-name\lib\site-packages\jsonschema_init_.py", line 21, in
from jsonschema.types import TypeChecker
File "C:\Users\user\Anaconda3\envs\project-name\lib\site-packages\jsonschema_types.py", line 6, in
from pyrsistent import pmap
File "C:\Users\user\Anaconda3\envs\project-name\lib\site-packages\pyrsistent_init.py", line 3, in
from pyrsistent._pmap import pmap, m, PMap
File "C:\Users\user\Anaconda3\envs\project-name\lib\site-packages\pyrsistent_pmap.py", line 3, in
from pyrsistent._pvector import pvector
File "C:\Users\user\Anaconda3\envs\project-name\lib\site-packages\pyrsistent_pvector.py", line 697, in
from pvectorc import pvector
File "C:\Users\user\Anaconda3\envs\project-name\lib\site-packages\scalene\scalene_profiler.py", line 856, in cpu_signal_handler
Scalene.compute_frames_to_record(),
File "C:\Users\user\Anaconda3\envs\project-name\lib\site-packages\scalene\scalene_profiler.py", line 1186, in compute_frames_to_record
while not Scalene.should_trace(fname):
File "C:\Users\user\Anaconda3\envs\project-name\lib\site-packages\scalene\scalene_profiler.py", line 1556, in should_trace
resolved_filename = str(pathlib.Path(filename).resolve()).lower()
File "C:\Users\user\Anaconda3\envs\project-name\lib\pathlib.py", line 1205, in resolve
s = self._flavour.resolve(self, strict=strict)
File "C:\Users\user\Anaconda3\envs\project-name\lib\pathlib.py", line 206, in resolve
s = self._ext_to_normal(_getfinalpathname(s))
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: ''
Scalene: Program did not run for long enough to profile.
Beta Was this translation helpful? Give feedback.
All reactions