Hi Jon, add clr.AddReference("System.Collections") to your code before the import. I'll take a look at why that warning message doesn't have the correct assembly name.
cheers, Tony On Wed, Apr 9, 2014 at 12:36 PM, John Gill <jg...@tokiomillennium.com>wrote: > I just upgraded to pythonnet 2.0 - thanks to "pip install -pre > pythonnet" > > > > Thanks for making that work. > > > > I am now getting these deprecation warnings: > > > > The module was found, but not in a referenced namespace. > > Implicit loading is deprecated. Please use > clr.AddReference("System.Collections.Generic.List"). > > from System.Collections.Generic import List > > > > When I try suppressing this as suggested I get an error due to being > unable to find the System.Collections.Generic.List assembly. > > > > Wondering how we are supposed to handle this in the future? > > > > John > > > > PS anyone heading to PyCon? > > > > This communication and any attachments contain information which is > confidential and may also be legally privileged. It is for the exclusive > use of the intended recipient(s). If you are not the intended recipient(s) > please note that any form of disclosure, distribution, copying, printing or > use of this communication or the information in it or in any attachments is > strictly prohibited and may be unlawful. If you have received this > communication in error, please return it with the title "received in error" > to postmas...@tokiomillennium.com and then permanently delete the email > and any attachments from your system. > > > > E-mail communications cannot be guaranteed to be secure or error free, as > information could be intercepted, corrupted, amended, lost, destroyed, > arrive late or incomplete, or contain viruses. It is the recipient's > responsibility to ensure that e-mail transmissions and any attachments are > virus free. We do not accept liability for any damages or other > consequences caused by information that is intercepted, corrupted, amended, > lost, destroyed, arrives late or incomplete or contains viruses. > > ****************************************** > > > _________________________________________________ > Python.NET mailing list - PythonDotNet@python.org > https://mail.python.org/mailman/listinfo/pythondotnet >
_________________________________________________ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pythondotnet