Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
Thanks for the report and steps. Can you try this on Python 3.5 ? I think this is the related issue issue22834 that was not fixed in Python 3.4 and has the same line numbers. I can't reproduce this on my Ubuntu machine with Python 3.6.5 from Anaconda though in the path Steps to reproduce as below : karthi@ubuntu-s-1vcpu-1gb-blr1-01:~$ ls /tmp/foo ls: cannot access '/tmp/foo': No such file or directory # Create the directory karthi@ubuntu-s-1vcpu-1gb-blr1-01:~$ mkdir /tmp/foo karthi@ubuntu-s-1vcpu-1gb-blr1-01:~$ cd /tmp/foo # Load a REPL karthi@ubuntu-s-1vcpu-1gb-blr1-01:/tmp/foo$ python3 Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56) [GCC 7.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> # Delete the directory karthi@ubuntu-s-1vcpu-1gb-blr1-01:/tmp/foo$ rm -rf /tmp/foo/ karthi@ubuntu-s-1vcpu-1gb-blr1-01:/tmp/foo$ rm -rf /tmp/foo # Load the REPL karthi@ubuntu-s-1vcpu-1gb-blr1-01:/tmp/foo$ python3 Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56) [GCC 7.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> karthi@ubuntu-s-1vcpu-1gb-blr1-01:/tmp/foo$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.5 LTS Release: 16.04 Codename: xenial karthi@ubuntu-s-1vcpu-1gb-blr1-01:/tmp/foo$ uname -a Linux ubuntu-s-1vcpu-1gb-blr1-01 4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux # Python 2 karthi@ubuntu-s-1vcpu-1gb-blr1-01:/tmp/foo$ python2 Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> Hope it helps! Unfortunately I don't have Python 3.4 on my machine to give this a try. If you are not able to reproduce this with Python 3.5 then I propose closing this as duplicate linking to the other issue. Thanks again for the report! ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34821> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com