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

PyQt5: module 'sys' has no attribute '_MEIPASS' #525

Closed
thijstriemstra opened this issue Sep 13, 2017 · 3 comments
Closed

PyQt5: module 'sys' has no attribute '_MEIPASS' #525

thijstriemstra opened this issue Sep 13, 2017 · 3 comments

Comments

@thijstriemstra
Copy link

thijstriemstra commented Sep 13, 2017

I'm using Babel 2.5.0 with a PyQt5 application (and Python 3.6.2)

Since #505 is merged Babel broke with this error:

[   65.699014] photobooth1 photobooth[544]: File "bootstrap.py", line 961, in _find_and_load
[   65.699698] photobooth1 photobooth[544]: File "bootstrap.py", line 950, in _find_and_load_unlocked
[   65.701137] photobooth1 photobooth[544]: File "bootstrap.py", line 646, in _load_unlocked
[   65.702115] photobooth1 photobooth[544]: File "bootstrap.py", line 616, in _load_backward_compatible
[   65.703041] photobooth1 photobooth[544]: File ":/babel/__init__.py", line 20, in <module>
[   65.703965] photobooth1 photobooth[544]: File "bootstrap.py", line 961, in _find_and_load
[   65.704915] photobooth1 photobooth[544]: File "bootstrap.py", line 950, in _find_and_load_unlocked
[   65.705829] photobooth1 photobooth[544]: File "bootstrap.py", line 646, in _load_unlocked
[   65.706741] photobooth1 photobooth[544]: File "bootstrap.py", line 616, in _load_backward_compatible
[   65.707675] photobooth1 photobooth[544]: File ":/babel/core.py", line 14, in <module>
[   65.708605] photobooth1 photobooth[544]: File "bootstrap.py", line 1009, in _handle_fromlist
[   65.709501] photobooth1 photobooth[544]: File "bootstrap.py", line 205, in _call_with_frames_removed
[   65.710438] photobooth1 photobooth[544]: File "bootstrap.py", line 961, in _find_and_load
[   65.711376] photobooth1 photobooth[544]: File "bootstrap.py", line 950, in _find_and_load_unlocked
[   65.712256] photobooth1 photobooth[544]: File "bootstrap.py", line 646, in _load_unlocked
[   65.713217] photobooth1 photobooth[544]: File "bootstrap.py", line 616, in _load_backward_compatible
[   65.714132] photobooth1 photobooth[544]: File ":/babel/localedata.py", line 35, in <module>
[   65.715039] photobooth1 photobooth[544]: File ":/babel/localedata.py", line 27, in get_base_dir
[   65.715972] photobooth1 photobooth[544]: AttributeError: module 'sys' has no attribute '_MEIPASS'

This is caused by PyInstaller support introduced with #505. But PyQt5 does not have a _MEIPASS attribute, hence:

AttributeError: module 'sys' has no attribute '_MEIPASS'

Downgrading to 2.4.0 resolved it again (obviously).

@akx
Copy link
Member

akx commented Sep 14, 2017

Yet it has a truthy sys.frozen? 😮

@akx
Copy link
Member

akx commented Sep 14, 2017

This has been fixed in v2.5.1.

Thanks for the bug report!

@thijstriemstra
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants