python-computer-craft
python-computer-craft copied to clipboard
TypeError: cannot unpack non-iterable NoneType
trafficstars
I tried to run my own python program with "py C:\Users\madhu\OneDrive\Desktop\Megafile\Pythonprograms\Python.pyfiles\test.py" command and it returns with the error in the title.
Can you share the contents of test.py?
Same issue when trying to run print('Hello world!') from file.
Also have same error message when trying to run non-existent file.
My awkward solution is using exec() function.
Easy to use: exec(open("path/file.py").read()), but hard to start again after reloading server