Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Python 4.0.0-pre. 1 Warning: No script asset for PythonSettings

Discussion in 'Formats & External Tools Previews' started by Rosenbel, Jan 13, 2022.

  1. Rosenbel


    Jan 10, 2022
    Hi, I'm using the Unity Editor Version 2021.2.3f1 and I successfully installed Python 4.0.0-pre. 1 for my Project. However when I try to start my Application I get the following warning:
    "No script asset for PythonSettings. Check that the definition is in a file of the same name."
    I try to access Python from my Script, but the Warning appears everytime as soon as I write the Line "using UnityEditor.Scripting.Python;" in my Code.

    The Project Runs fine, but as soon as I try to build my Project I get this Error:
    "error CS0234: The type or namespace name 'Scripting' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)"

    Has anybody experienced something similar or found a solution for this problem?
    Any kind of help is appreciated. Thank you!

    RuiyuZhang_Unity and wwaero like this.
  2. wwaero


    Feb 18, 2020
    Hitting a similar issue
  3. vaibhavTrigensoft


    Nov 15, 2021
    Hitting a similar issue...
  4. RuiyuZhang_Unity


    Unity Technologies

    Mar 17, 2021
    Have you added the "com.unity.scripting.python.editor" to the assembly file? (an .asmdef file in the folder that has compile errors), I had the exact same issue earlier, and I fixed it by
    1. make sure python for unity is properly installed
    2. find the .asmdef file that has to deal with the c# script where you are using the python and having compile error
    3. click on the .asmdef file, check out the inspector, under Assembly Definition Reference, click the + sign to search for com.unity.scripting.python.editor and add it
    4. In the end don't forget to click on Apply button at the very end of the inspector to apply the changes

    I hope that helps!
  5. Tegast


    Feb 19, 2022
    The same mistake, the solution did not help. Everything was done according to the instructions. Is it possible to record a video of the solution?

    Version: 6.0.0
    soranhanmul and masakatsu like this.