Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Connecting Python in Unity 2020.3 for the microsoft Hololens

Discussion in 'General Discussion' started by cruzdg, Apr 19, 2023.

  1. cruzdg

    cruzdg

    Joined:
    Nov 13, 2022
    Posts:
    1
    Hello everyone,

    I am currently trying to connect any package to Unity in order to allow for easier NLP and Network Analysis, but I am currently running into issue after issue. I have tried IronPython, the unity thread, and a couple other external packages, but kept getting a wide variety of errors, the most common being the package was invalid or not compatible. I have tried following the .NET versions to make sure those align, but run into issues with that. Any advice would be helpful.

    Thanks
     
  2. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,853
    Python can be run sometimes using interop and command line from Unity. Depending on how it is set up it may take some time to process any NLP STT or TTS. Tired of the whole python research toys I decided to build my own NLP inference engine in Unity C#.
     
  3. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,669
    You normally talk to python apps interop. Setting it up is a royal pain, because most python packages depend on pip and really want to pull data from the web. And pulled data is not exactly portable, meaning you'll have hard time moving it between different computers - it might fail to work or might work differently. Some people use docker to mitigate the problem a bit. But you'll still be talking to python apps through interop.