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

Configuration error with python 3.3 #554

Closed
vaz-ar opened this issue Jun 17, 2014 · 1 comment · Fixed by #555
Closed

Configuration error with python 3.3 #554

vaz-ar opened this issue Jun 17, 2014 · 1 comment · Fixed by #555

Comments

@vaz-ar
Copy link
Contributor

vaz-ar commented Jun 17, 2014

On the first run of willie 4.4.1, installed from pip, the configuration file can't be created due to the use of raw_input(), function replaced by input() in python3.

here is the error :

Welcome to Willie!
I can't seem to find the configuration file, so let's generate it!

Please answer the following questions to create your configuration file:

Encountered an error while writing the config file. This shouldn't happen. Check permissions.
Traceback (most recent call last):
  File "/home/willie/IRC/bin/willie", line 213, in <module>
    main()
  File "/home/willie/IRC/bin/willie", line 131, in main
    create_config(configpath)
  File "/home/willie/IRC/lib/python3.3/site-packages/willie/config.py", line 450, in create_config
    config._core()
  File "/home/willie/IRC/lib/python3.3/site-packages/willie/config.py", line 298, in _core
    'Willie')
  File "/home/willie/IRC/lib/python3.3/site-packages/willie/config.py", line 228, in interactive_add
    value = raw_input(prompt + ' [%s]: ' % default) or default
NameError: global name 'raw_input' is not defined

If someone can reproduce the problem I'll submit a pull request

@vaz-ar
Copy link
Contributor Author

vaz-ar commented Jun 17, 2014

I reproduced it on another computer

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

Successfully merging a pull request may close this issue.

1 participant