need more than 1 value to unpack



  • Good time! https://github.com/illus0r/Kruglendar-2015/tree/master/py/src ♪ ♪ ♪ It's called a calendar that generates piton 2xx, the point is the author claims that it's the one that created the generyl and everything... but...

    A little dance with bubns (numpy ' svgfig) and as a result:

    /usr/bin/python2.7 /home/user/calendar/src/calendar.py Traceback (most recent call last): File "/home/user/calendar/src/calendar.py, line 386, in outputFile, timeModelType, language = sys.argv[0:] ValueError: need more than 1 value to unpack

    Process finished with exit code 1

    I tried to get the code out, but it's not here. ♪ ♪

    https://github.com/illus0r/Kruglendar-2015/tree/master/py/src ♪ ♪ ♪



  • Line 386 in the original file is as follows:

    outputFile, timeModelType, language = sys.argv[1:]
    

    The point of error is that at least one of the parameters is not passed in the crypt: the name of the exit file, the type of time model (or the type of time model that would not mean) and the language. Calling a violin is like this:

    python calendar.py 1_параметр 2_параметр 3_параметр
    


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2