Python concatenation error

Asked by rexykik

There is a python error during execution of the easyubuntu.in file. Here is the output:

root@Evo:/home/karl/easyubuntu# python easyubuntu.in
System sanity check: PASSED!
Traceback (most recent call last):
  File "easyubuntu.in", line 51, in ?
    main()
  File "easyubuntu.in", line 42, in main
    detect.replace(confdir)
  File "/home/karl/easyubuntu/EasyUbuntu/detect.py", line 184, in replace
    cmd = "chown -R " + user + ":" + user + " " + confdir
TypeError: cannot concatenate 'str' and 'NoneType' objects

Question information

Language:
English Edit question
Status:
Solved
For:
EasyUbuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Whiteboard:
assuming this is answered correctly
Revision history for this message
KarlGoetz (kgoetz) said :
#1

rexykik wrote:
> New support request #1296 on EasyUbuntu:
> https://launchpad.net/products/easyubuntu/+ticket/1296
>
> There is a python error during execution of the easyubuntu.in file. Here is the output:
>
> root@Evo:/home/karl/easyubuntu# python easyubuntu.in
> System sanity check: PASSED!
> Traceback (most recent call last):
> File "easyubuntu.in", line 51, in ?
> main()
> File "easyubuntu.in", line 42, in main
> detect.replace(confdir)
> File "/home/karl/easyubuntu/EasyUbuntu/detect.py", line 184, in replace
> cmd = "chown -R " + user + ":" + user + " " + confdir
> TypeError: cannot concatenate 'str' and 'NoneType' objects
>
>
dont run as root (root@host), run as user@host, it will call sudo when
needed (or thats the plan)
kk

Revision history for this message
Kyle Brooks (kyle-brooks) said :
#2

In the nightly builds, you cannot run as root directly or indirectly because the "run as user" functionality makes this redundant. The run as user functionality was introduced due to concerns about security and user-friendliness. So please run EasyUbuntu as a normal user, and you will be prompted for YOUR passsword at the normal time.