Skip to content

[BUG] invalid non-printable character U+FEFF #384

Description

@shenjackyuanjie

I try to use memory profiler in my project, but it gives me this issue

shenjack  DR  ➜ (main  1)  ♥ 13:13  mprof.exe run DR.py
mprof: Sampling memory every 0.1s
running new process
running as a Python program...
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "D:\APPS\CPython\Python311\Lib\site-packages\memory_profiler.py", line 1351, in <module>
    exec_with_profiler(script_filename, prof, args.backend, script_args)
  File "D:\APPS\CPython\Python311\Lib\site-packages\memory_profiler.py", line 1252, in exec_with_profiler
    exec(compile(f.read(), filename, 'exec'), ns, ns)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "DR.py", line 1
    """
    ^
SyntaxError: invalid non-printable character U+FEFF

you can see the file in my project

Python info

  • Version: 3.11.0
  • Branch: ``
  • Implementation: CPython
  • Compiler: MSC v.1933 64 bit (AMD64)

System info

  • System: Windows-10-10.0.19045-SP0
  • Computer name: shenjack-5600X
  • machine: AMD64
  • processor: AMD64 Family 25 Model 33 Stepping 0, AuthenticAMD
  • release: 10
  • version: 10.0.19045

Python info and System info gen by DR_crash_report

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions