Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running shutit skeleton throws an error trying to create directory #319

Closed
gaviriar opened this issue Jun 12, 2018 · 7 comments
Closed

Running shutit skeleton throws an error trying to create directory #319

gaviriar opened this issue Jun 12, 2018 · 7 comments

Comments

@gaviriar
Copy link

Hi There,

I am trying to run shutit skeleton and am faced with the following error when pressing enter to confirm the project directory:

>> /home/unitelabs/projects/shutitskel_feeder
Traceback (most recent call last):
  File "/home/unitelabs/.virtualenvs/idorsia/bin/shutit", line 11, in <module>
    sys.exit(main())
  File "/home/unitelabs/.virtualenvs/idorsia/local/lib/python2.7/site-packages/shutit.py", line 72, in main
    shutit.setup_shutit_obj()
  File "/home/unitelabs/.virtualenvs/idorsia/local/lib/python2.7/site-packages/shutit_class.py", line 4126, in setup_shutit_obj
    self.parse_args()
  File "/home/unitelabs/.virtualenvs/idorsia/local/lib/python2.7/site-packages/shutit_class.py", line 3757, in parse_args
    vagrant_image_name=args.vagrant_image_name))
  File "/home/unitelabs/.virtualenvs/idorsia/local/lib/python2.7/site-packages/shutit_class.py", line 3260, in process_args
    self.handle_skeleton(args)
  File "/home/unitelabs/.virtualenvs/idorsia/local/lib/python2.7/site-packages/shutit_class.py", line 3370, in handle_skeleton
    module_directory = shutit_util.util_raw_input(prompt='\n>> ', default=default_dir)
  File "/home/unitelabs/.virtualenvs/idorsia/local/lib/python2.7/site-packages/shutit_util.py", line 258, in util_raw_input
    return input(prompt).strip() or default
  File "<string>", line 1
    /home/unitelabs/projects/shutitskel_feeder
    ^
SyntaxError: invalid syntax

OS: Ubuntu 16.04 LTS
Python: 2.7.12
shutit: 1.0.118

The funny thing is that if I put apostrophe's (") before and after the values in the prompt then no error is thrown. Are you familiar with this issue?

@ianmiell
Copy link
Owner

ianmiell commented Jun 12, 2018 via email

@gaviriar
Copy link
Author

Thanks for your quick reply! If you need more info let me know to see if we can reproduce on your end.

Well, I'm glad you asked the latter question actually. :) As a matter of fact I do have a specific use case that I want to validate shutit for. For example, I am currently working on a project where I need to do deployments out to multiple machines in a network. I have been facilitating the process using a combination of bash, ssh, and rsync, but it can get pretty messy pretty quickly and hard to modularize the deployment process to make it reusable.

I wanted to test out shutit as a possible tool to help me with our deployment process. Given the information I have just provided what do you think? Would shutit be the right tool for the job?

@ianmiell
Copy link
Owner

ianmiell commented Jun 12, 2018 via email

@ianmiell
Copy link
Owner

ianmiell commented Jun 12, 2018 via email

@ianmiell
Copy link
Owner

ianmiell commented Jun 12, 2018 via email

@ianmiell
Copy link
Owner

OK, am closing this one - if you have any suggestions for improvements or problems at all, please do raise more tickets.

@gaviriar
Copy link
Author

gaviriar commented Jun 12, 2018

Awesome! thanks @ianmiell for the swift response, I appreciate it!

I can understand you think you might be biased, but I have to say I agree with you, shutit is likely the tool for me. I will take a look at the link you shared which is exactly what I was looking for. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants