[Python.NET] Urgent Bug Report: clr.AddReference

Denis Akhiyarov denis.akhiyarov at gmail.com
Wed Dec 20 16:17:47 EST 2017


Did you import clr? Have a look at wiki and tutorial here:

https://github.com/pythonnet/pythonnet

On Wed, Dec 20, 2017, 2:58 PM Ranya Fafi <ranyafafi93 at gmail.com> wrote:

> Hi,
> Am trying to use clr.AddReference and clr.AddReferenceToFile, but
> python(2.7) keeps making this error:
>
> Traceback (most recent call last):
>   File "<pyshell#5>", line 1, in <module>
>     clr.AddReference("UnityEngine")AttributeError: 'module' object has no attribute 'AddReference'
>
> How can I fix this?
> Thanks in advance.
>
> _________________________________________________
> Python.NET mailing list - PythonDotNet at python.org
> https://mail.python.org/mailman/listinfo/pythondotnet
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20171220/991a9186/attachment-0001.html>


More information about the PythonDotNet mailing list