regarding crash problem during Python installation on OS windows 10
Title
Question
<table cellpadding="0" class="Bs nH iY bAt" role="presentation"><tbody><tr><td class="Bu bAn">
</td></tr></tbody></table>
Dear Sir/Mam
I am unable to install python as per instructions attached in pdf. Kindly resolve.
Following crash report I received.
------------------------------<wbr></wbr>------------------------------<wbr></wbr>---------------
TypeError <wbr></wbr> Python 2.7.5: C:\Python27\python.exe
<wbr></wbr> Mon Apr 20 22:53:53 2020
A problem occured executing Python code. Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
TypeError <wbr></wbr> Python 2.7.5: C:\Python27\python.exe
<wbr></wbr> Mon Apr 20 22:53:53 2020
A problem occured executing Python code. Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
C:\Python27\scripts\ipython in <module>()
13
14 [or simply IPython.Shell.IPShell().<wbr></wbr>mainloop(1) ]
15
16 and IPython will be your working environment when you start python. The final
17 sys.exit() call will make python exit transparently when IPython finishes, so
18 you don't have an extra prompt to get out of.
19
20 This is probably useful to developers who manage multiple Python versions and
21 don't want to have correspondingly multiple IPython versions. Note that in
22 this mode, there is no way to pass IPython any command-line options, as those
23 are trapped first by Python itself.
24 """
25
26 import IPython.Shell
27
---> 28 IPython.Shell.start().<wbr></wbr>mainloop()
global IPython.Shell.start.mainloop = undefined
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
13
14 [or simply IPython.Shell.IPShell().<wbr></wbr>mainloop(1) ]
15
16 and IPython will be your working environment when you start python. The final
17 sys.exit() call will make python exit transparently when IPython finishes, so
18 you don't have an extra prompt to get out of.
19
20 This is probably useful to developers who manage multiple Python versions and
21 don't want to have correspondingly multiple IPython versions. Note that in
22 this mode, there is no way to pass IPython any command-line options, as those
23 are trapped first by Python itself.
24 """
25
26 import IPython.Shell
27
---> 28 IPython.Shell.start().<wbr></wbr>mainloop()
global IPython.Shell.start.mainloop = undefined
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
C:\Python27\lib\site-packages\<wbr></wbr>IPython\Shell.pyc in start(user_ns=None)
1226 th_mode = special_opts.pop()
1227 except KeyError:
1228 th_mode = 'tkthread'
1229 return th_shell[th_mode]
1230
1231
1232 # This is the one which should be called by external code.
1233 def start(user_ns = None):
1234 """Return a running shell instance, dealing with threading options.
1235
1236 This is a factory function which will instantiate the proper IPython shell
1237 based on the user's threading choice. Such a selector is needed because
1238 different GUI toolkits require different thread handling details."""
1239
1240 shell = _select_shell(sys.argv)
-> 1241 return shell(user_ns = user_ns)
1242
1243 # Some aliases for backwards compatibility
1244 IPythonShell = IPShell
1245 IPythonShellEmbed = IPShellEmbed
1246 #************************ End of file <Shell.py> ***************************
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1226 th_mode = special_opts.pop()
1227 except KeyError:
1228 th_mode = 'tkthread'
1229 return th_shell[th_mode]
1230
1231
1232 # This is the one which should be called by external code.
1233 def start(user_ns = None):
1234 """Return a running shell instance, dealing with threading options.
1235
1236 This is a factory function which will instantiate the proper IPython shell
1237 based on the user's threading choice. Such a selector is needed because
1238 different GUI toolkits require different thread handling details."""
1239
1240 shell = _select_shell(sys.argv)
-> 1241 return shell(user_ns = user_ns)
1242
1243 # Some aliases for backwards compatibility
1244 IPythonShell = IPShell
1245 IPythonShellEmbed = IPShellEmbed
1246 #************************ End of file <Shell.py> ***************************
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
C:\Python27\lib\site-packages\<wbr></wbr>IPython\Shell.pyc in __init__(self=<IPython.Shell.<wbr></wbr>IPShell instance>, argv=None, user_ns=None, user_global_ns=None, debug=1, shell_class=<class 'IPython.iplib.<wbr></wbr>InteractiveShell'>)
58 # Default timeout for waiting for multithreaded shells (in seconds)
59 GUI_TIMEOUT = 10
60
61 #-----------------------------<wbr></wbr>------------------------------<wbr></wbr>------------------
62 # This class is trivial now, but I want to have it in to publish a clean
63 # interface. Later when the internals are reorganized, code that uses this
64 # shouldn't have to change.
65
66 class IPShell:
67 """Create an IPython instance."""
68
69 def __init__(self,argv=None,user_<wbr></wbr>ns=None,user_global_ns=None,
70 debug=1,shell_class=<wbr></wbr>InteractiveShell):
71 self.IP = make_IPython(argv,user_ns=<wbr></wbr>user_ns,
72 <wbr></wbr> user_global_ns=user_global_ns,
---> 73 <wbr></wbr> debug=debug,shell_class=shell_<wbr></wbr>class)
global For = undefined
global more = undefined
global details = undefined
global see = undefined
global the = undefined
global __call__ = undefined
global method = undefined
global below. = undefined
74
75 def mainloop(self,sys_exit=0,<wbr></wbr>banner=None):
76 self.IP.mainloop(banner)
77 if sys_exit:
78 sys.exit()
79
80 #-----------------------------<wbr></wbr>------------------------------<wbr></wbr>------------------
81 def kill_embedded(self,parameter_<wbr></wbr>s=''):
82 """%kill_embedded : deactivate for good the current embedded IPython.
83
84 This function (after asking for confirmation) sets an internal flag so that
85 an embedded IPython will never activate again. This is useful to
86 permanently disable a shell that is being called inside a loop: once you've
87 figured out what you needed from it, you may then kill it and the program
88 will then continue to run without the interactive shell interfering again.
58 # Default timeout for waiting for multithreaded shells (in seconds)
59 GUI_TIMEOUT = 10
60
61 #-----------------------------<wbr></wbr>------------------------------<wbr></wbr>------------------
62 # This class is trivial now, but I want to have it in to publish a clean
63 # interface. Later when the internals are reorganized, code that uses this
64 # shouldn't have to change.
65
66 class IPShell:
67 """Create an IPython instance."""
68
69 def __init__(self,argv=None,user_<wbr></wbr>ns=None,user_global_ns=None,
70 debug=1,shell_class=<wbr></wbr>InteractiveShell):
71 self.IP = make_IPython(argv,user_ns=<wbr></wbr>user_ns,
72 <wbr></wbr> user_global_ns=user_global_ns,
---> 73 <wbr></wbr> debug=debug,shell_class=shell_<wbr></wbr>class)
global For = undefined
global more = undefined
global details = undefined
global see = undefined
global the = undefined
global __call__ = undefined
global method = undefined
global below. = undefined
74
75 def mainloop(self,sys_exit=0,<wbr></wbr>banner=None):
76 self.IP.mainloop(banner)
77 if sys_exit:
78 sys.exit()
79
80 #-----------------------------<wbr></wbr>------------------------------<wbr></wbr>------------------
81 def kill_embedded(self,parameter_<wbr></wbr>s=''):
82 """%kill_embedded : deactivate for good the current embedded IPython.
83
84 This function (after asking for confirmation) sets an internal flag so that
85 an embedded IPython will never activate again. This is useful to
86 permanently disable a shell that is being called inside a loop: once you've
87 figured out what you needed from it, you may then kill it and the program
88 will then continue to run without the interactive shell interfering again.
C:\Python27\lib\site-packages\<wbr></wbr>IPython\ipmaker.pyc in make_IPython(argv=[r'C:\<wbr></wbr>Python27\scripts\ipython'], user_ns=None, user_global_ns=None, debug=1, rc_override=None, shell_class=<class 'IPython.iplib.<wbr></wbr>InteractiveShell'>, embedded=False, **kw={})
506 # tweaks. Basically options which affect other options. I guess this
507 # should just be written so that options are fully orthogonal and we
508 # wouldn't worry about this stuff!
509
510 if IP_rc.classic:
511 IP_rc.quick = 1
512 IP_rc.cache_size = 0
513 IP_rc.pprint = 0
514 IP_rc.prompt_in1 = '>>> '
515 IP_rc.prompt_in2 = '... '
516 IP_rc.prompt_out = ''
517 IP_rc.separate_in = IP_rc.separate_out = IP_rc.separate_out2 = '0'
518 IP_rc.colors = 'NoColor'
519 IP_rc.xmode = 'Plain'
520
--> 521 IP.pre_config_initialization()
522 # configure readline
523
524 # update exception handlers with rc file status
525 otrap.trap_out() # I don't want these messages ever.
526 IP.magic_xmode(IP_rc.xmode)
527 otrap.release_out()
528
529 # activate logging if requested and not reloading a log
530 if IP_rc.logplay:
531 IP.magic_logstart(IP_rc.<wbr></wbr>logplay + ' append')
532 elif IP_rc.logfile:
533 IP.magic_logstart(IP_rc.<wbr></wbr>logfile)
534 elif IP_rc.log:
535 IP.magic_logstart()
536
506 # tweaks. Basically options which affect other options. I guess this
507 # should just be written so that options are fully orthogonal and we
508 # wouldn't worry about this stuff!
509
510 if IP_rc.classic:
511 IP_rc.quick = 1
512 IP_rc.cache_size = 0
513 IP_rc.pprint = 0
514 IP_rc.prompt_in1 = '>>> '
515 IP_rc.prompt_in2 = '... '
516 IP_rc.prompt_out = ''
517 IP_rc.separate_in = IP_rc.separate_out = IP_rc.separate_out2 = '0'
518 IP_rc.colors = 'NoColor'
519 IP_rc.xmode = 'Plain'
520
--> 521 IP.pre_config_initialization()
522 # configure readline
523
524 # update exception handlers with rc file status
525 otrap.trap_out() # I don't want these messages ever.
526 IP.magic_xmode(IP_rc.xmode)
527 otrap.release_out()
528
529 # activate logging if requested and not reloading a log
530 if IP_rc.logplay:
531 IP.magic_logstart(IP_rc.<wbr></wbr>logplay + ' append')
532 elif IP_rc.logfile:
533 IP.magic_logstart(IP_rc.<wbr></wbr>logfile)
534 elif IP_rc.log:
535 IP.magic_logstart()
536
C:\Python27\lib\site-packages\<wbr></wbr>IPython\iplib.pyc in pre_config_initialization(<wbr></wbr>self=<IPython.iplib.<wbr></wbr>InteractiveShell object>)
820 self.user_ns, # globals
821 # Skip our own frame in searching for locals:
822 sys._getframe(depth+1).f_<wbr></wbr>locals # locals
823 ))
824
825 def pre_config_initialization(<wbr></wbr>self):
826 """Pre-configuration init method
827
828 This is called before the configuration files are processed to
829 prepare the services the config files might need.
830
831 self.rc already has reasonable default values at this point.
832 """
833 rc = self.rc
834 try:
--> 835 self.db = pickleshare.PickleShareDB(rc.<wbr></wbr>ipythondir + "/db")
global prompt = undefined
global a = undefined
global string = <module 'string' from 'C:\Python27\lib\string.pyc'>
global to = undefined
global be = undefined
global printed = undefined
global the = undefined
global user. = undefined
836 except exceptions.UnicodeDecodeError:
837 print "Your ipythondir can't be decoded to unicode!"
838 print "Please set HOME environment variable to something that"
839 print r"only has ASCII characters, e.g. c:\home"
840 print "Now it is",rc.ipythondir
841 sys.exit()
842 self.shadowhist = IPython.history.ShadowHist(<wbr></wbr>self.db)
843
844 def post_config_initialization(<wbr></wbr>self):
845 """Post configuration init method
846
847 This is called after the configuration files have been processed to
848 'finalize' the initialization."""
849
850 rc = self.rc
820 self.user_ns, # globals
821 # Skip our own frame in searching for locals:
822 sys._getframe(depth+1).f_<wbr></wbr>locals # locals
823 ))
824
825 def pre_config_initialization(<wbr></wbr>self):
826 """Pre-configuration init method
827
828 This is called before the configuration files are processed to
829 prepare the services the config files might need.
830
831 self.rc already has reasonable default values at this point.
832 """
833 rc = self.rc
834 try:
--> 835 self.db = pickleshare.PickleShareDB(rc.<wbr></wbr>ipythondir + "/db")
global prompt = undefined
global a = undefined
global string = <module 'string' from 'C:\Python27\lib\string.pyc'>
global to = undefined
global be = undefined
global printed = undefined
global the = undefined
global user. = undefined
836 except exceptions.UnicodeDecodeError:
837 print "Your ipythondir can't be decoded to unicode!"
838 print "Please set HOME environment variable to something that"
839 print r"only has ASCII characters, e.g. c:\home"
840 print "Now it is",rc.ipythondir
841 sys.exit()
842 self.shadowhist = IPython.history.ShadowHist(<wbr></wbr>self.db)
843
844 def post_config_initialization(<wbr></wbr>self):
845 """Post configuration init method
846
847 This is called after the configuration files have been processed to
848 'finalize' the initialization."""
849
850 rc = self.rc
C:\Python27\lib\site-packages\<wbr></wbr>IPython\Extensions\<wbr></wbr>pickleshare.pyc in __init__(self=PickleShareDB('<wbr></wbr>C:\Users\Gagan\_ipython\db'), root=u'C:\\Users\\Gagan\\_<wbr></wbr>ipython/db')
38 import cPickle as pickle
39 import UserDict
40 import warnings
41 import glob
42
43 def gethashfile(key):
44 return ("%02x" % abs(hash(key) % 256))[-2:]
45
46 _sentinel = object()
47
48 class PickleShareDB(UserDict.<wbr></wbr>DictMixin):
49 """ The main 'connection' object for PickleShare database """
50 def __init__(self,root):
51 """ Return a db object that will manage the specied directory"""
52 self.root = Path(root).expanduser().<wbr></wbr>abspath()
---> 53 if not self.root.isdir():
54 self.root.makedirs()
55 # cache has { 'key' : (obj, orig_mod_time) }
56 self.cache = {}
57
58
59 def __getitem__(self,key):
60 """ db['key'] reading """
61 fil = self.root / key
62 try:
63 mtime = (fil.stat()[stat.ST_MTIME])
64 except OSError:
65 raise KeyError(key)
66
67 if fil in self.cache and mtime == self.cache[fil][1]:
68 return self.cache[fil][0]
38 import cPickle as pickle
39 import UserDict
40 import warnings
41 import glob
42
43 def gethashfile(key):
44 return ("%02x" % abs(hash(key) % 256))[-2:]
45
46 _sentinel = object()
47
48 class PickleShareDB(UserDict.<wbr></wbr>DictMixin):
49 """ The main 'connection' object for PickleShare database """
50 def __init__(self,root):
51 """ Return a db object that will manage the specied directory"""
52 self.root = Path(root).expanduser().<wbr></wbr>abspath()
---> 53 if not self.root.isdir():
54 self.root.makedirs()
55 # cache has { 'key' : (obj, orig_mod_time) }
56 self.cache = {}
57
58
59 def __getitem__(self,key):
60 """ db['key'] reading """
61 fil = self.root / key
62 try:
63 mtime = (fil.stat()[stat.ST_MTIME])
64 except OSError:
65 raise KeyError(key)
66
67 if fil in self.cache and mtime == self.cache[fil][1]:
68 return self.cache[fil][0]
TypeError: _isdir() takes exactly 1 argument (0 given)
******************************<wbr></wbr>******************************<wbr></wbr>**********
Oops, IPython crashed. We do our best to make it stable, but...
A crash report was automatically generated with the following information:
- A verbatim copy of the crash traceback.
- A copy of your input history during this session.
- Data on your current IPython configuration.
- A verbatim copy of the crash traceback.
- A copy of your input history during this session.
- Data on your current IPython configuration.
It was left in the file named:
'C:\Users\Gagan\_ipython\<wbr></wbr>IPython_crash_report.txt'
If you can email this file to the developers, the information in it will help
them in understanding and correcting the problem.
'C:\Users\Gagan\_ipython\<wbr></wbr>IPython_crash_report.txt'
If you can email this file to the developers, the information in it will help
them in understanding and correcting the problem.
You can mail it to: Fernando Perez at <a target="_blank">fperez.net@gmail.com</a>
with the subject 'IPython Crash Report'.
with the subject 'IPython Crash Report'.
If you want to do it now, the following command will work (under Unix):
mail -s 'IPython Crash Report' <a target="_blank">fperez.net@gmail.com</a> < C:\Users\Gagan\_ipython\<wbr></wbr>IPython_crash_report.txt
mail -s 'IPython Crash Report' <a target="_blank">fperez.net@gmail.com</a> < C:\Users\Gagan\_ipython\<wbr></wbr>IPython_crash_report.txt
To ensure accurate tracking of this issue, please file a report about it at:
<a data-saferedirecturl="https://www.google.com/url?q=https://bugs.launchpad.net/ipython/%2Bfilebug&source=gmail&ust=1587489963661000&usg=AFQjCNGR9o4_GKDFVT75MxyMRs7wA_rI0w" href="https://bugs.launchpad.net/ipython/+filebug" target="_blank">https://bugs.launchpad.net/<wbr></wbr>ipython/+filebug</a>
<a data-saferedirecturl="https://www.google.com/url?q=https://bugs.launchpad.net/ipython/%2Bfilebug&source=gmail&ust=1587489963661000&usg=AFQjCNGR9o4_GKDFVT75MxyMRs7wA_rI0w" href="https://bugs.launchpad.net/ipython/+filebug" target="_blank">https://bugs.launchpad.net/<wbr></wbr>ipython/+filebug</a>
Press enter to exit:
<table cellpadding="0" class="cf gz ac0" id=":q0" role="presentation"><tbody><tr><td>
<img alt="" class="mL" src="https://forums.spoken-tutorial.org/new-question/images/cleardot.gif"><span class="mG">Reply</span>
</td><td></td><td><img alt="" class="mI" src="https://forums.spoken-tutorial.org/new-question/images/cleardot.gif"><span class="mG">Forward</span>
</td><td></td><td class="io"></td></tr></tbody></table><table class="cf wS" role="presentation"><tbody><tr><td class="amq"><img class="ajn bofPge" data-hovercard-id="gaganj1981@gmail.com" id=":c5_15" jid="gaganj1981@gmail.com" name=":c5" src="https://www.google.com/s2/u/2/photos/public/AIbEiAIAAABDCNjClbX0uM-BUiILdmNhcmRfcGhvdG8qKDEzNTE0MDg5YTJjNDMzMGNmM2Q2ZDZkYTM5NTU4MDA5NTNkMTYyNTkwAXgsA4w-MTFHgyvslq6Apk8-yYMe?sz=40"></td><td class="amr"></td></tr></tbody></table>
<span class="ams bkH" id=":oq" jslog="21576; u014N:cOuCgd,Kr2w4b;" role="link" tabindex="0">Reply</span><span class="ams bkG" id=":n3" jslog="21578; u014N:cOuCgd,Kr2w4b;" role="link" tabindex="0">Forward</span>
Python Getting-started-with-ipython 00-01 min 0-10 sec
Answers:
You can install anaconda from <a href="https://www.anaconda.com/distribution/" target="" title="https://www.anaconda.com/distribution/">https://www.anaconda.com/distribution/</a>
This will provide you with all the required packages.
You can go through <a href="https://docs.anaconda.com/anaconda/navigator/getting-started/" target="" title="https://docs.anaconda.com/anaconda/navigator/getting-started/">https://docs.anaconda.com/anaconda/navigator/getting-started/</a> documentation to manage anaconda.
Login to add comment