Skip to content

SofaPython3 #5713

@lfl229

Description

@lfl229

Problem

[ERROR] [SofaPython3::SceneLoader] Unable to completely load the scene from file 'C:\SOFA\SOFA_v25.06.00\plugins\SofaPython3\share\SofaPython3\examples\basic.py'.
Python exception:
SyntaxError: source code string cannot contain null bytes

At:
C:\SOFA\SOFA_v25.06.00\plugins\SofaPython3\share\SofaPython3\examples\basic.py(3):
(488): _call_with_frames_removed
(994): exec_module
(6):


Environment

Context

  • System: < NAME AND VERSION - e.g: "Windows 10", "Ubuntu 20.04", ... >
  • Version of SOFA: < INFOS ABOUT THE BRANCH OR BINARIES - e.g: "master branch at commit 70bb123", "v21.06.00 binaries", ... >
  • State: < BUILD OR INSTALL DIRECTORY - e.g: "Build directory", "Install directory" >

Command called

< COPY-PASTE YOUR COMMAND HERE >

Env vars

python -c "exec( \"import os, sys\nprint('#################')\nprint('--- sys.version ---')\nprint(sys.version)\nprint('--- PATH ---')\ntry:\n  print(os.environ['PATH'])\nexcept Exception:\n  pass\nprint('--- SOFA_ROOT ---')\ntry:\n  print(os.environ['SOFA_ROOT'])\nexcept Exception:\n  pass\nprint('--- PYTHONPATH ---')\ntry:\n  print(os.environ['PYTHONPATH'])\nexcept Exception:\n  pass\nprint('--- sys.path ---')\ntry:\n   print(str(sys.path))\nexcept Exception:\n   pass\nprint('#################')\" )"
< COPY-PASTE HERE THE RESULT OF THE COMMAND ABOVE >

Logs

Full output

< COPY-PASTE YOUR OUTPUT HERE >

Content of build_dir/CMakeCache.txt

< DRAG AND DROP YOUR CMAKECACHE.TXT HERE >


Thank you for your report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bug (minor)Bug affecting only some users or with no major impact on the frameworktopic for next dev-meetingPR to be discussed in sofa-dev meeting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions