New issue 1991: reload (sys) error https://bitbucket.org/pypy/pypy/issue/1991/reload-sys-error
morphello: Hi, please excuse my lack of knowledge. I've been running SickBeard through PyPy 2.5.0 on Windows 8.1 x64, and it runs flawlessly sans for its ability to restart. Thanks to a helpful member of the forum who is more knowledgeable than I, we've identified that PyPy isn't returning the executable on a reload. Here is a link to the thread where we discuss the issue. https://sickrage.tv/forums/forum/help-support/general-support/18501-sickrage-can-t-restart-itself-under-pypy-2-5-0-windows The program attempts to restart itself, and instead of calling pypy.exe calls py.py. This works correctly under python 2.7.9 PyPy 2.5.0: ``` #!python pypy.exe Python 2.7.8 (10f1b29a2bd2, Feb 03 2015, 00:56:13) [PyPy 2.5.0 with MSC v.1500 32 bit] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>> import sys >>>> sys.executable 'c:\\Pypy25\\pypy.exe' >>>> reload(sys) <module 'sys' (built-in)> >>>> sys.executable 'py.py' ``` Python 2.7.9: ``` #!python python.exe Python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.executable 'c:\\Python27\\python.exe' >>> reload(sys) <module 'sys' (built-in)> >>> sys.executable 'c:\\Python27\\python.exe' ``` Thank you in advance. _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue