Dear Pythonnet Support Team,

I am currently working on a Unity project where I am using the Pythonnet
library to integrate Python scripts with C# code. Specifically, I am
attempting to utilize the HugChat library from within my Unity project.
However, I have encountered the following error:

PythonException: SystemError : initialization of md__mypyc did not return
an extension module
['  File
"C://Users//HOME/u3000anyone//AppData//Local//Programs//Python//Python38//lib//site-packages//hugchat//hugchat.py",
line 1, in <module>/n    import requests/n', '  File
"C://Users//HOME/u3000anyone//AppData//Local//Programs//Python//Python38//lib//site-packages//requests//__init__.py",
line 48, in <module>/n    from charset_normalizer import __version__ as
charset_normalizer_version/n', '  File
"C://Users//HOME/u3000anyone//AppData//Local//Programs//Python//Python38//lib//site-packages//charset_normalizer//__init__.py",
line 24, in <module>/n    from .api import from_bytes, from_fp, from_path,
is_binary/n', '  File
"C://Users//HOME/u3000anyone//AppData//Local//Programs//Python//Python38//lib//site-packages//charset_normalizer//api.py",
line 5, in <module>/n    from .cd import (/n', '  File
"C://Users//HOME/u3000anyone//AppData//Local//Programs//Python//Python38//lib//site-packages//charset_normalizer//cd.py",
line 14, in <module>/n    from .md import
is_suspiciously_successive_range/n']  at
Python.Runtime.Runtime.CheckExceptionOccurred () (at
<7702cb0f55bd42e3a72a1a6382f5edbc>:0)
Python.Runtime.PythonEngine.ImportModule (System.String name) (at
<7702cb0f55bd42e3a72a1a6382f5edbc>:0)
Python.Runtime.Py.Import (System.String name) (at
<7702cb0f55bd42e3a72a1a6382f5edbc>:0)
AIVtuberProject.get_response () (at Assets/Scripts/AIVtuberProject.cs:31)
AIVtuberProject.main_func () (at Assets/Scripts/AIVtuberProject.cs:75)
AIVtuberProject.OnSendButtonClicked () (at
Assets/Scripts/AIVtuberProject.cs:82)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0
(System.Object state) (at <b89873cb176e44a995a4781c7487d410>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at
<10871f9e312b442cb78b9b97db88fdcb>:0)
UnityEngine.UnitySynchronizationContext.Exec () (at
<10871f9e312b442cb78b9b97db88fdcb>:0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at
<10871f9e312b442cb78b9b97db88fdcb>:0)

This error occurs when trying to import the requests module within HugChat.
I have confirmed that all necessary Python packages are installed and
accessible. I am using Python 3.8 with Pythonnet version 2.5.2.

I would greatly appreciate your assistance in resolving this issue. If you
need any additional information, please let me know.

Thank you in advance for your help.

Best regards,
Kouno Teruki
_______________________________________________
Python.NET mailing list -- pythonnet@python.org
To unsubscribe send an email to pythonnet-le...@python.org
https://mail.python.org/mailman3/lists/pythonnet.python.org/
Member address: arch...@mail-archive.com

Reply via email to