Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future warnings in pydevd_resolver #190

Closed
karthiknadig opened this issue Jul 24, 2019 · 3 comments
Closed

Future warnings in pydevd_resolver #190

karthiknadig opened this issue Jul 24, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@karthiknadig
Copy link
Member

Environment data

  • PTVSD version: master
  • OS and version: Windows
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.3
  • Using VS Code or Visual Studio: VSC

Actual behavior

C:\GIT\ptvsd\src\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_resolver.py:214: FutureWarning: Series.base is deprecated and will be removed in a future version
  attr = getattr(var, name)
C:\GIT\ptvsd\src\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_resolver.py:214: FutureWarning: Series.data is deprecated and will be removed in a future version    
  attr = getattr(var, name)
C:\GIT\ptvsd\src\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_resolver.py:214: FutureWarning: Series.flags is deprecated and will be removed in a future version   
  attr = getattr(var, name)
C:\GIT\ptvsd\src\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_resolver.py:214: FutureWarning: Series.itemsize is deprecated and will be removed in a future version
  attr = getattr(var, name)
C:\GIT\ptvsd\src\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_resolver.py:214: FutureWarning: Series.strides is deprecated and will be removed in a future version
  attr = getattr(var, name)

Expected behavior

Should not show warnings.

Steps to reproduce:

import pandas as pd
df = pd.read_csv("https://data.nasa.gov/api/views/gh4g-9sfh/rows.csv?accessType=DOWNLOAD")

Expanding df.GeoLocation shows this warning.

@karthiknadig
Copy link
Member Author

karthiknadig commented Aug 20, 2019

Those warnings are Pandas specific. I am not sure if we can do much here.

@int19h
Copy link
Contributor

int19h commented Feb 12, 2020

It should be wrapped in warnings.catch_warnings(). Probably need to do this in all places where the eval code currently catches and swallows exceptions - getattr, hasattr, iter, len etc.

@int19h int19h transferred this issue from microsoft/ptvsd May 4, 2020
@int19h int19h added the bug Something isn't working label Jun 19, 2020
@joyceerhl
Copy link

joyceerhl commented Oct 20, 2020

+1, getting lots of these printed to the debug console when inspecting dataframes in the variable window.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants