0
def cDownload():
    
    print("Enter package name ")
    sName=input
    print("Enter download location ")
    sLocation=input
    command = "wget http://aur.archlinux.org/packages/" + sName + "/" + sName + ".tar.gz -O" + sLocation + "/" + sName + ".tar.gz"
    os.system(command)

I get
TypeError: Can't convert 'builtin_function_or_method' object to str implicitly

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by ndowens
0

I have tried this in other languages such as C++ and ruby and it works just fine.

0

Oops. I missed those. I noticed the ones in cSearch I did but failed to notice those. Thanks for pointing that out. Sorry, I am just now trying to learn.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.