Discussion:
[Python.NET] Deprecation warnings
John Gill
2014-04-09 11:36:49 UTC
Permalink
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 ***@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.
******************************************
Tony Roberts
2014-04-09 11:59:14 UTC
Permalink
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
Post by John Gill
I just upgraded to pythonnet 2.0 - thanks to "pip install -pre pythonnet"
Thanks for making that work.
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"
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.
******************************************
_________________________________________________
https://mail.python.org/mailman/listinfo/pythondotnet
John Gill
2014-04-09 14:56:31 UTC
Permalink
Thanks Tony,

I am actually having more general weirdness with this. I have installs on different machines, some are giving me the deprecation warning, some are not.

So, let me know if you cannot duplicate the warning, it may be an issue on my end.

John

From: PythonDotNet [mailto:pythondotnet-bounces+jgill=***@python.org] On Behalf Of Tony Roberts
Sent: Wednesday, April 09, 2014 8:59 AM
To: A list for users and developers of Python for .NET
Subject: Re: [Python.NET] Deprecation warnings

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 <jgill-U6M1/***@public.gmane.org<mailto:jgill-U6M1/***@public.gmane.org>> 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 ***@tokiomillennium.com<mailto:postmaster-U6M1/***@public.gmane.org> 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-+ZN9ApsXKcEdnm+***@public.gmane.org<mailto:***@python.org>
https://mail.python.org/mailman/listinfo/pythondotnet


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 ***@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.
******************************************
Tony Roberts
2014-04-09 17:06:04 UTC
Permalink
Hi John,

I've just checked in a fix for this.

You should be able to try it out by getting the latest from the develop
branch of https://github.com/pythonnet/pythonnet and building it locally
python setup.py install
cheers,
Tony
Thanks Tony,
I am actually having more general weirdness with this. I have installs
on different machines, some are giving me the deprecation warning, some are
not.
So, let me know if you cannot duplicate the warning, it may be an issue on my end.
John
*From:* PythonDotNet [mailto:pythondotnet-bounces+jgill=
*Sent:* Wednesday, April 09, 2014 8:59 AM
*To:* A list for users and developers of Python for .NET
*Subject:* Re: [Python.NET] Deprecation warnings
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
I just upgraded to pythonnet 2.0 - thanks to "pip install -pre
pythonnet"
Thanks for making that work.
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"
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.
******************************************
_________________________________________________
https://mail.python.org/mailman/listinfo/pythondotnet
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"
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.
******************************************
_________________________________________________
https://mail.python.org/mailman/listinfo/pythondotnet
John Gill
2014-04-11 16:18:24 UTC
Permalink
Thanks.

Busy at PyCon the next few days, but will take a look next week.

John

From: PythonDotNet [mailto:pythondotnet-bounces+jgill=***@python.org] On Behalf Of Tony Roberts
Sent: Wednesday, April 09, 2014 2:06 PM
To: A list for users and developers of Python for .NET
Subject: Re: [Python.NET] Deprecation warnings

Hi John,

I've just checked in a fix for this.
python setup.py install
cheers,
Tony

On Wed, Apr 9, 2014 at 3:56 PM, John Gill <jgill-U6M1/***@public.gmane.org<mailto:jgill-U6M1/***@public.gmane.org>> wrote:
Thanks Tony,

I am actually having more general weirdness with this. I have installs on different machines, some are giving me the deprecation warning, some are not.

So, let me know if you cannot duplicate the warning, it may be an issue on my end.

John

From: PythonDotNet [mailto:pythondotnet-bounces+jgill<mailto:pythondotnet-bounces%2Bjgill>=tokiomillennium.com-+ZN9ApsXKcEdnm+***@public.gmane.org<mailto:***@python.org>] On Behalf Of Tony Roberts
Sent: Wednesday, April 09, 2014 8:59 AM
To: A list for users and developers of Python for .NET
Subject: Re: [Python.NET] Deprecation warnings

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 <jgill-U6M1/***@public.gmane.org<mailto:jgill-U6M1/***@public.gmane.org>> 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 ***@tokiomillennium.com<mailto:postmaster-U6M1/***@public.gmane.org> 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-+ZN9ApsXKcEdnm+***@public.gmane.org<mailto:***@python.org>
https://mail.python.org/mailman/listinfo/pythondotnet

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 ***@tokiomillennium.com<mailto:postmaster-U6M1/***@public.gmane.org> 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-+ZN9ApsXKcEdnm+***@public.gmane.org<mailto:***@python.org>
https://mail.python.org/mailman/listinfo/pythondotnet


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 ***@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.
******************************************

Loading...