Skip to content

Conversation

jayvdb
Copy link
Contributor

@jayvdb jayvdb commented Mar 29, 2021

No description provided.

jayvdb and others added 5 commits March 29, 2021 13:08
Removes inline comments to avoid PySide2 imports
being ignored.

Also re-enables some pylint rules that do not need
to be disabled.
In Rust 2021, panic messages must be a string literal.
@jayvdb jayvdb merged commit 016c06b into main Mar 29, 2021
@jayvdb jayvdb deleted the pylint-import-fix branch March 29, 2021 17:19
from PySide2.QtWidgets import QApplication # type: ignore # pylint: disable=no-name-in-module
from PySide2.QtWidgets import QApplication # type: ignore

from fbs_runtime.application_context.PySide2 import ApplicationContext # type: ignore # pylint: disable=unused-import
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@john-michaelburke we don't use this anymore so we should be able to remove this import

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@silverjam We still need the fbs_runtime import as it is needed when building the installer. Here is the error provided when commented out.

jm@ubuntu:~/dev/console_pp$ ./target/swift_navigation_console/swift_navigation_console 
Traceback (most recent call last):
  File "fbs_pyinstaller_hook.py", line 2, in <module>
  File "importlib/__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'fbs_runtime'
[71539] Failed to execute script fbs_pyinstaller_hook
jm@ubuntu:~/dev/console_pp$ 

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just add a comment about why it's there then?

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

Successfully merging this pull request may close these issues.

3 participants