[GH-ISSUE #62] Issue with jump starting the script #51

Closed
opened 2026-03-02 23:37:36 +03:00 by kerem · 2 comments
Owner

Originally created by @pxp920 on GitHub (Jul 19, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/62

Hello,

I am having issues getting the script to run. I believe I've done all the steps, but when I try to run the Python script it will not produce any outcome.

-Developer enables
-Stay awake enabled
-USB Debugging enabled
-uiautomator/colorama installed
-android platform tools installed and added to PATH

Any pointers will be much appreciated on what I'm omitting/not doing properly (I use Windows and I typically don't use an Android so please bear with me)

3
2

Originally created by @pxp920 on GitHub (Jul 19, 2020). Original GitHub issue: https://github.com/alexal1/Insomniac/issues/62 Hello, I am having issues getting the script to run. I believe I've done all the steps, but when I try to run the Python script it will not produce any outcome. -Developer enables -Stay awake enabled -USB Debugging enabled -uiautomator/colorama installed -android platform tools installed and added to PATH Any pointers will be much appreciated on what I'm omitting/not doing properly (I use Windows and I typically don't use an Android so please bear with me) ![3](https://user-images.githubusercontent.com/30659989/87867324-d9b4d280-c959-11ea-8082-0e20aa870100.PNG) ![2](https://user-images.githubusercontent.com/30659989/87867326-dd485980-c959-11ea-89cc-63f1493a426d.PNG)
kerem closed this issue 2026-03-02 23:37:37 +03:00
Author
Owner

@alexal1 commented on GitHub (Jul 19, 2020):

Seems that your Python is not working properly. You can check this by launching this simple script (unzip first).
hello.py.zip

<!-- gh-comment-id:660605900 --> @alexal1 commented on GitHub (Jul 19, 2020): Seems that your Python is not working properly. You can check this by launching this simple script (unzip first). [hello.py.zip](https://github.com/alexal1/Insomniac/files/4943420/hello.py.zip)
Author
Owner

@pxp920 commented on GitHub (Jul 19, 2020):

Thanks @alexal1 -- that issue was as simple (and dumb) as that. I rarely run code via cmd and did not remember that my python executable was python instead of python3.

If I can bother you for a follow up issue, I am getting this error now where the main script has error navigating to the rest of the package:

edit: I tried simply moving the insomniac script into the src folder so they are in the same directory but that solution failed me
image

edit2: I even added the directories to my env variables but I continue on getting the same error
image

FINAL EDIT:

The above issue was fixed by simply creating an "init.py" file inside the src subdirectory

<!-- gh-comment-id:660653863 --> @pxp920 commented on GitHub (Jul 19, 2020): Thanks @alexal1 -- that issue was as simple (and dumb) as that. I rarely run code via cmd and did not remember that my python executable was python instead of python3. If I can bother you for a follow up issue, I am getting this error now where the main script has error navigating to the rest of the package: edit: I tried simply moving the insomniac script into the src folder so they are in the same directory but that solution failed me ![image](https://user-images.githubusercontent.com/30659989/87879037-1adad000-c9b6-11ea-97c2-1a68b978c060.png) edit2: I even added the directories to my env variables but I continue on getting the same error ![image](https://user-images.githubusercontent.com/30659989/87879021-fda60180-c9b5-11ea-8deb-16347c248bb8.png) FINAL EDIT: The above issue was fixed by simply creating an "__init__.py" file inside the src subdirectory
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Insomniac#51
No description provided.