Skip to content

TypeError: cannot unpack non-iterable NoneType #8

Open

Description

@SriLikesToSing

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.

Activity

  1. SriLikesToSing commented on Apr 12, 2021

    @SriLikesToSing
    Author

    ccerror

  2. apockill commented on Apr 15, 2021

    @apockill

    Can you share the contents of test.py?

  3. RAREGUN commented on Mar 7, 2022

    @RAREGUN

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

  4. RAREGUN commented on Mar 14, 2022

    @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

  5. neumond commented on Jun 13, 2026

    @neumond
    Owner

    py <file.py> wasn't intended to run scripts on server side. It rather runs files on in-game computers. Although I think it must report something more meaningful instead this error.

    You still can import any module on the host from an in-game program. There're some ways to load file by path. Probably something like py --host .../file.py could be useful as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions