shutit: Raw input is not defined

Installing on ArchLinux with

sudo pip install shutit # defaults to pip3

and then running

shutit skeleton

results in the following error: NameError: name 'raw_input' is not defined

Full traceback:

Traceback (most recent call last):                
  File "./shutit.py", line 60, in <module>        
    main()                                        
  File "./shutit.py", line 53, in main            
    shutit.setup_shutit_obj()                     
  File "/home/liam/shutit/shutit_class.py", line 3907, in setup_shutit_obj                           
    self.parse_args()                             
  File "/home/liam/shutit/shutit_class.py", line 3559, in parse_args                                 
    vagrant_docker=args.vagrant_docker))          
  File "/home/liam/shutit/shutit_class.py", line 3119, in process_args                               
    self.handle_skeleton(args)                    
  File "/home/liam/shutit/shutit_class.py", line 3218, in handle_skeleton                            
    module_directory = shutit_util.util_raw_input(prompt='# Input a name for this module.\n# Default: ' + default_dir + '\n', default=default_dir)                                                        
  File "/home/liam/shutit/shutit_util.py", line 250, in util_raw_input                               
    resp = raw_input(prompt).strip()              
NameError: name 'raw_input' is not defined        

I then installed with pip2.7 and it’s working now, but I was unable to see this anywhere other than your setup.py file. Shouldn’t it be documented somewhere more visible, eg. the Readme or your website? I almost gave up experimenting with this tool, maybe other people would too.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (9 by maintainers)

Commits related to this issue

Most upvoted comments

This should be fixed now as of 1.0.3