[Bug 1844518] Re: Ubuntu 19:10 - Python 3 os.path.isfile not working as expected

Brian Murray brian at ubuntu.com
Thu Sep 19 10:13:11 UTC 2019


I'm not seeing this issue.
[  3:12AM 10171 ]  [ bdmurray at impulse:~/source-trees/command-not-found-extractor(locate✔) ]
 $ python3                             
Python 3.7.4 (default, Jul 29 2019, 03:51:40) 
[GCC 9.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.isfile("/vmlinuz")
True
>>> 
[  3:12AM 10172 ]  [ bdmurray at impulse:~/source-trees/command-not-found-extractor(locate✔) ]
 $ apt-cache policy python3-minimal
python3-minimal:
  Installed: 3.7.3-1
  Candidate: 3.7.3-1

Could you provide some more details about the version of python3 which
you are using?


** Changed in: python3-defaults (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1844518

Title:
  Ubuntu 19:10 - Python 3 os.path.isfile not working as expected

Status in python3-defaults package in Ubuntu:
  Incomplete

Bug description:
  When one runs "os.path.isfile("/vmlinuz")" or the same for
  os.path.exists, False is returned. However, given the information at:
  https://docs.python.org/3.8/library/os.path.html#os.path.isfile and
  https://docs.python.org/3.7/library/os.path.html#os.path.isfile, True
  should be returned for links as well.

  "os.path.islink("/vmlinuz")" works as expected, so I'm not sure what's
  going on here.

  Any ideas? It could be my VM as it's been running 19.10 for a little
  while now.

  Hamish

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1844518/+subscriptions



More information about the foundations-bugs mailing list