Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] sys has no attribute '_MEIPASS' #34

Closed
BlurrySquire opened this issue Nov 2, 2024 · 2 comments
Closed

[BUG] sys has no attribute '_MEIPASS' #34

BlurrySquire opened this issue Nov 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@BlurrySquire
Copy link
Contributor

Describe the bug
I attempted to run this on windows via powershell in vs code after cloning the repo. I have installed all the dependencies.

To Reproduce
Clone the repo, install the dependencies. Run through vs code's run button in the top right corner (requires python extension).

Screenshots/Videos

PS D:\Development\Projects\Troppical> & "C:/Program Files/Python312/python.exe" d:/Development/Projects/Troppical/main.py
Failed to get latest GitHub release tag: /bin/bash: line 1: gh: command not found

Traceback (most recent call last):
  File "d:\Development\Projects\Troppical\main.py", line 676, in <module>
    qtui = QtUi()
           ^^^^^^
  File "d:\Development\Projects\Troppical\main.py", line 49, in __init__
    self.ui()  # Init UI
    ^^^^^^^^^
  File "d:\Development\Projects\Troppical\main.py", line 79, in ui
    icon_path = os.path.join(sys._MEIPASS, 'icon.ico')
                             ^^^^^^^^^^^^
AttributeError: module 'sys' has no attribute '_MEIPASS'
PS D:\Development\Projects\Troppical> 

Expected behavior
The user interface to load and allow me to select emulators.

Windows version and build
Windows 10 - 10.0.19045 Build 19045

@BlurrySquire BlurrySquire added the bug Something isn't working label Nov 2, 2024
@kleidis
Copy link
Owner

kleidis commented Nov 3, 2024

The current master is broken

Can you try the refactor branch

@kleidis
Copy link
Owner

kleidis commented Nov 3, 2024

The way icons was handheld previously was a bit crappy
Now it should be fine

#32

@kleidis kleidis closed this as completed Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants