python-computer-craft icon indicating copy to clipboard operation
python-computer-craft copied to clipboard

TypeError: cannot unpack non-iterable NoneType

Open SriLikesToSing opened this issue 4 years ago • 4 comments
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.

SriLikesToSing avatar Apr 12 '21 18:04 SriLikesToSing

ccerror

SriLikesToSing avatar Apr 12 '21 18:04 SriLikesToSing

Can you share the contents of test.py?

apockill avatar Apr 15 '21 00:04 apockill

Same issue when trying to run print('Hello world!') from file. Also have same error message when trying to run non-existent file.

RAREGUN avatar Mar 07 '22 12:03 RAREGUN

My awkward solution is using exec() function. Easy to use: exec(open("path/file.py").read()), but hard to start again after reloading server

RAREGUN avatar Mar 14 '22 04:03 RAREGUN