Questions tagged [deprecation-warning]

A deprecation warning indicates that a method is obsolete. Using a newer method (which has been provided in the meanwhile) is preferred.

A deprecation warning indicates that a method, property or other software feature is obsolete. Using a newer feature (which has been provided in the meanwhile) is preferred.

547 questions
0
votes
1 answer

Contenting deprecated sizeWithFont:constrainedToSize to boundingRectWithSize:options:attributes:context:

How can I convert CGSize labelHeighSize = [text sizeWithFont: [UIFont systemFontOfSize:16] constrainedToSize:maximumSize lineBreakMode:NSLineBreakByTruncatingTail]; to CGSize labelHeighSize = [text boundingRectWithSize:maximumSize options: …
-1
votes
2 answers

Update Python code - the PyPDF2 library has deprecated objects used in Python code

I have been able to use the Python code in a Linux based OS, but when I tried to run it the same code on a Windows based OS, I got deprecation messages. My question is: How can the code be updated to overcome the deprecation issues? The Python code…
-1
votes
1 answer

How can i remove the Deprecation error in sklearn(python3)?

I started working on sklearn recently, i executed a command: from sklearn.datasets import fetch_openml it gave an error as: File "/usr/lib/python3/dist-packages/sklearn/externals/joblib.py", line 1 import imp DeprecationWarning: the imp…
-1
votes
1 answer

class com/mes/mvc/mes/ApiLogRecord uses deprecated method java/math/BigDecimal::divide(Ljava/math/BigDecimal;I)Ljava/math/BigDecimal;

When I did jdprscn for my java Project I found following warning message: class com/mes/mvc/mes/ApiLogRecord uses deprecated method java/math/BigDecimal::divide(Ljava/math/BigDecimal;I)Ljava/math/BigDecimal; command used to scan jdprscan:…
Hari Sheen
  • 13
  • 3
-1
votes
1 answer

sklearn: DeprecationWarning: theimp module is deprecated - safe to ignore?

Whenever I try to use "sklearn", I get the following error: >>>from sklearn.tree import DecisionTreeRegressor /home/ec2-user/anaconda2/envs/argosv2/lib/python3.6/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47:…
Ofer Rahat
  • 790
  • 1
  • 9
  • 15
-1
votes
1 answer

I have an issue here, with this deprecated tag codes. can anyone fix it?

I don't know coding but mannaged to make this code by searching online. But got this SEO warnings: Warning! Your page is using HTML deprecated tags. Protejare dateRecuperare…
-1
votes
1 answer

Ember Simple Auth: 'authorize' is deprecated

Here is my code: "ember-simple-auth": "^1.6.0" "ember-cli": "^3.1.4" export default ActiveModelAdapter.extend(DataAdapterMixin, { host: ENV.APP.API_HOST, authorizer: 'authorizer:devise', ... How can I fix deprecation warning ?
AdminDev826
  • 330
  • 4
  • 15
-1
votes
1 answer

getCurrentPosition deprecated

I've been using Google Maps embedded within a site generated on script.google.com, using the HTML Service as follows: HtmlService.createTemplateFromFile('index.html'); This has been fantastic, I've produced a web app with an embedded map (see…
-1
votes
1 answer

When I change my project deployment target from iOS 8.4 to iOS 9.0 I receive a lot of error messages

When I change my project deployment target from iOS 8.4 to iOS 9.0 I receive a lot of error messages, such as: 'initWithRequest:delegate:startImmediately:' is deprecated: first deprecated in iOS 9.0 - Use NSURLSession (see NSURLSession.h) -…
Creagen
  • 478
  • 5
  • 17
-1
votes
2 answers

Find deprecated api version?

I'm using camera in my app but the eclipse shows msg as "The type Camera is deprecated". So I'd like to know in which api the camera is deprecated?
user2551070
  • 71
  • 2
  • 11
-1
votes
1 answer

Facebook Likebox deprecation

My company uses the facebook likebox on many of our pages. The developer website https://developers.facebook.com/docs/plugins/like-box-for-pages says that the likebox will automatically revert to the new pages plugin. Can someone from FB please…
-2
votes
1 answer

Symfony 4.4 migrating to 6

actually i made a symfony webapp 3 years ago , i didn't use it, and now i am trying to deploy it on heroku but it says , that i need to use newer version I am trying to resolve the deprecation before updating the version (5.1 and go progressively…
Dewei
  • 65
  • 7
-2
votes
2 answers

Deprecating properties of class in python

I am trying to deprecate property of class. class A: def __init__(self, variable1: int, ##to be deprecated variable2: int ) {....} Expected behaviour: If user tries to use variable 2 he should get warning that its deprecated.
Isha Nema
  • 289
  • 5
  • 16
-2
votes
1 answer

How to pass jquery instance to selector

How do i use .eq() instead of :eq() I want to use something like this -> $('div').eq(1) Here is code snippet of problem $(document).on('click', 'li.trigger div:eq(1) a.ajax img,' + ' li.event div:eq(1) a.ajax img', function (event) {
-2
votes
1 answer

What does DeprecationWarning mean when running Python

I ran a Python program and got a DeprecationWarning, like: D:\programs\anaconda2\lib\site-packages\sklearn\utils\deprecation.py:70: DeprecationWarning: Function log_multivariate_normal_density is deprecated; The function…
vx2008
  • 95
  • 1
  • 1
  • 10
1 2 3
36
37