-
Notifications
You must be signed in to change notification settings - Fork 411
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
Pyfa 2.8.0 not starting - yaml.FullLoader issue #1901
Comments
From release notes:
Newer version is needed due to vulnerabilities in older version. |
Closing as this is addressed in release notes and is environmental. @Roesjka if you're still having issues, feel free to continue to comment in this thread. Thanks! |
yaml/pyyaml#257 AFAICS yaml.SafeLoader is a safe bet. Main issue for Linux distros is that yaml 5.1 is not evenmentioned on the pyyaml.org site as that goes upto version 3.13 see issue Sofar I have not run into any issues by using yaml.SafeLoader, if I do I will report here asap. |
I'm unsure how the website being outdated has any bearing on being able to update to 5+ through pip? Unless you're using distro package manager to install these dependancies and they base it off the website? |
The website indeed seems to be barely maintained. Fyi, 5.1b3 is what I've installed during development. Looks like 5.1 has been released 12 days ago: https://github.com/yaml/pyyaml/releases/tag/5.1 I think that most likely version bump was a knee-jerk reaction to get rid of github security warnings. I also wasn't happy to install some dependencies via pip and tried to make simple solution to make it compatible with old pyyaml. Unfortunately, they changed API so it wasn't possible without doing version-specific logic. Maybe we weren't using anything besides safe_load, but now as 5.1 is released i see little to no reason to switch it back. |
Actually if safe loader is enough for our needs and it's available as |
Fixed in 1a5fc31 |
Also marked it as a bug (even though it isn't imo). |
also see yaml/pyyaml#265 |
@perlpunk thanks! Yes, I've already handled all API changes earlier when first installed 5.x beta. Within this issue, we just added compatibility with older pyyaml versions. The other breakages do not affect us at all. |
Bug Report
version 2.8.0:
Error in sys.excepthook:
Traceback (most recent call last):
File "/home/filip/Games/EVE/Pyfa-2.8.0/gui/errorDialog.py", line 40, in HandleException
with config.logging_setup.threadbound():
AttributeError: 'NoneType' object has no attribute 'threadbound'
Original exception was:
Traceback (most recent call last):
File "Games/EVE/Pyfa-2.8.0/pyfa.py", line 104, in
config.defPaths(options.savepath)
File "/home/filip/Games/EVE/Pyfa-2.8.0/config.py", line 116, in defPaths
data = yaml.load(file, Loader=yaml.FullLoader)
AttributeError: module 'yaml' has no attribute 'FullLoader'
Expected behavior:
Normal startup like with 2.7.0 :)
Actual behavior:
See error message
Detailed steps to reproduce:
python3 pyfa.py in terminal
Fits involved in EFT format (Edit > To Clipboard > EFT):
Release or development git branch? Please note the release version or commit hash:
stable 2.8.0
Operating system and version (eg: Windows 10, OS X 10.9, OS X 10.11, Ubuntu 16.10):
Debian buster/testing
Other relevant information:
Manage to solve it by changing the lines containing "yaml.FullLoader" to SafeLoader in config.py and service/jargon/loader.py.
The text was updated successfully, but these errors were encountered: