xxxxxxxxxx
cock balss and shaft
xxxxxxxxxx
# Had the same issue today. Fixed it by
# editing the /usr/lib/python3/dist-packages/UbuntuDrivers/detect.py" file
# and replace line 835 with this line:
version = int(package_name.split('-')[-2])
# The only change I'm bringing is -2 instead of -1.
# Otherwise it raises a ValueError inside the try block and just
# doesn't give any value to the version variable.
# Check out https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1993019 if that was confusing
xxxxxxxxxx
r = 0
list = ['apple','lime','orange']
def list_list(x):
for i in x:
r +=1
print r
list_list(list)
xxxxxxxxxx
"""
You can trick the error :D
Use a list instead of a variable
example
"""
current = [0] # then refer to it as current[0]