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

linux Ubuntu 10.04 LTS not working with 1.1.22 and 1.1.21 #73

Closed
SoundBip opened this issue Apr 11, 2014 · 1 comment
Closed

linux Ubuntu 10.04 LTS not working with 1.1.22 and 1.1.21 #73

SoundBip opened this issue Apr 11, 2014 · 1 comment

Comments

@SoundBip
Copy link

hello. first of all Thank you very much for this amazing fitting tool.
last version that was working great with my linux computer was 1.1.20
i have the same error message since the traits tab has been implemented

./pyfa.py
Traceback (most recent call last):
File "./pyfa.py", line 88, in
from gui.mainFrame import MainFrame
File "/home/bip/Bureau/pyfa/new/gui/mainFrame.py", line 39, in
from gui.additionsPane import AdditionsPane
File "/home/bip/Bureau/pyfa/new/gui/additionsPane.py", line 22, in
from gui.boosterView import BoosterView
File "/home/bip/Bureau/pyfa/new/gui/boosterView.py", line 24, in
import gui.marketBrowser as mb
File "/home/bip/Bureau/pyfa/new/gui/marketBrowser.py", line 24, in
from gui.contextMenu import ContextMenu
File "/home/bip/Bureau/pyfa/new/gui/contextMenu.py", line 108, in
from gui.builtinContextMenus import *
File "/home/bip/Bureau/pyfa/new/gui/builtinContextMenus/itemStats.py", line 2, in
from gui.itemStats import ItemStatsDialog
File "/home/bip/Bureau/pyfa/new/gui/itemStats.py", line 29, in
from collections import OrderedDict
ImportError: cannot import name OrderedDict

thank you for your help and for this amazing tool.
Fly Safe

@blitzmann
Copy link
Collaborator

This was introduced with commit 2e96801 for the new traits tab. The reason you're receiving this is because you don't have Python 2.7 (which has OrderedDict).

But don't worry! Pyfa ships with it's own OrderedDict in case the running environment isn't running 2.7. @cl05tomp must not have realized it when he was developing the feature. I just committed a permanent fix.

You can either get the latest git branch, or fix this yourself buy opening gui/itemStats.py and replacing the OrderedDict import on line 29 with:

try:
    from collections import OrderedDict
except ImportError:
    from gui.utils.compat import OrderedDict

Otherwise wait for the new release. Thanks for letting us know about this! =)

w9jds pushed a commit to w9jds/Pyfa that referenced this issue Aug 14, 2017
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