sagemath / sage-windows

Build tools for the Sagemath Windows installer
350 stars 47 forks source link

DeprecationWarning from psutil when starting up Sage 9.1 #50

Closed EmmanuelCharpentier closed 3 years ago

EmmanuelCharpentier commented 3 years ago

I installed 9.1 on a freshly updated Windows 10 installation in order to try and reproduce the issue reported in this ask.sagemath question.

I haven't been able to reproduce the reported issues. However, I noticed that the console version displays the following at each start :

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.1, Release Date: 2020-05-20                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
/opt/sagemath-9.1/local/lib/python3.7/site-packages/psutil/_pscygwin.py:311: DeprecationWarning: invalid escape sequence \d
  search = re.compile('cpu\d')
/opt/sagemath-9.1/local/lib/python3.7/site-packages/psutil/_pscygwin.py:876: DeprecationWarning: invalid escape sequence \d
  def uids(self, _uids_re=re.compile(b'Uid:\t(\d+)')):
/opt/sagemath-9.1/local/lib/python3.7/site-packages/psutil/_pscygwin.py:887: DeprecationWarning: invalid escape sequence \d
  def gids(self, _gids_re=re.compile(b'Gid:\t(\d+)')):
sage:

HTH,

embray commented 3 years ago

Yes, I've seen this as well. Curiously, last time I saw it, it only happened on the first time Sage started but then never afterwards. Not sure why. It's possible the psutil invocation happened during some startup script (maybe the sage-cleaner?) but never afterwards.

I'll fix it in the 9.2 build.

embray commented 3 years ago

Should be fixed by 8e700148e9ec5493b5e2c5f194dccd6ff93b95e4