How to Integrate Python in Zenno by C#?

Pierre Paul Jacques

Активный пользователь
Регистрация
08.10.2023
Сообщения
126
Благодарностей
34
Баллы
28
Hello ZennoPoster Community,

I'm currently facing a challenge while trying to integrate IronPython into my ZennoPoster project. Despite having installed the IronPython assemblies IronPython.dll and IronPython.Modules.dll, I'm encountering a persistent error that's hindering my progress.

The error message I receive when compiling the shared code is as follows:


Error compiling shared code "CS0234" "The type or namespace name 'Hosting' does not exist in the namespace 'IronPython' (are you missing an assembly reference?)". [Row: 29; Column: 18]

This error occurs even after I've ensured the using IronPython.Hosting; directive is correctly placed within my shared code and the required DLLs are included in my project.

Here's a snippet of the code from the shared code section for context:


using IronPython;
using IronPython.Hosting;



I've attempted several troubleshooting steps, such as verifying the installation of the NuGet package, checking assembly references, and even restarting ZennoPoster, but the issue remains unresolved.

Could someone please assist me with the correct approach to referencing IronPython in a ZennoPoster project? Any advice or guidance on this matter would be greatly appreciated.

Thank you for your time and assistance.

Best regards,
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)