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

pyfa Error #316

Closed
rosborn opened this issue Jul 7, 2015 · 9 comments
Closed

pyfa Error #316

rosborn opened this issue Jul 7, 2015 · 9 comments

Comments

@rosborn
Copy link

rosborn commented Jul 7, 2015

After downloading pyfa 1.13.0, this error message pops up when I open pyfa:
screen shot 2015-07-07 at 5 02 43 pm
.pyfa/log.txt is empty.
I was previously running pyfa 1.12.0 without any problems.

Software info:

System Version: OS X 10.10.4 (14E46)
  Kernel Version:   Darwin 14.4.0
  Boot Volume:  Macintosh HD
  Boot Mode:    Normal

Python Version: 2.7.10

Hardware info:

Model Name: MacBook Pro
  Model Identifier: MacBookPro8,2
  Processor Name:   Intel Core i7
  Processor Speed:  2.2 GHz
  Number of Processors: 1
  Total Number of Cores:    4
  L2 Cache (per Core):  256 KB
  L3 Cache: 6 MB
  Memory:   4 GB
  Boot ROM Version: MBP81.0047.B2A
  SMC Version (system): 1.69f4

Open files and ports:

/Applications/pyfa.app/Contents/Resources
/Applications/pyfa.app/Contents/MacOS/pyfa
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/zlib.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/strop.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/operator.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_functools.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_locale.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_weakref.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_struct.so
/Applications/pyfa.app/Contents/Frameworks/Python.framework/Versions/2.7/Python
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/time.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/cStringIO.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_collections.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/itertools.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_bisect.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_heapq.so
/usr/share/icu/icudt53l.dat
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_socket.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_ssl.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/cPickle.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/wx/_core_.so
/Applications/pyfa.app/Contents/Frameworks/libwx_macud-2.8.0.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/Resources/ColorSyncDeprecated.dylib
/System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGCMS.A.dylib
/System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_hashlib.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/binascii.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/wx/_gdi_.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/wx/_windows_.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/wx/_controls_.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/wx/_misc_.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_sha256.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_sha512.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/datetime.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/math.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_scproxy.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_random.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/fcntl.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/grp.so
/Applications/pyfa.app/Contents/Resources/lib/python2.7/lib-dynload/_sqlite3.so
/System/Library/ColorSync/Profiles/Generic RGB Profile.icc
/System/Library/ColorSync/Profiles/sRGB Profile.icc
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/SystemAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/GraphiteDarkAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityDarkGraphiteAppearance.car
/System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
/private/var/folders/dm/yxjgnbys6_q03z_hx995_98r0000gn/0/com.apple.LaunchServices-107501.csstore
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/GraphiteAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityGraphiteAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/DarkAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityDarkAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/VibrantLightAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityVibrantLightAppearance.car
/System/Library/PrivateFrameworks/CloudDocs.framework/Versions/A/CloudDocs
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
/Applications/pyfa.app/Contents/Resources/pyfa.icns
/System/Library/ColorSync/Profiles/Generic Gray Profile.icc
/System/Library/ColorSync/Profiles/Generic Gray Gamma 2.2 Profile.icc
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc
/System/Library/Fonts/Helvetica.dfont
/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/SArtFile.bin
/System/Library/Caches/com.apple.IntlDataCache.le.kbdx
/private/var/folders/dm/yxjgnbys6_q03z_hx995_98r0000gn/C/com.apple.scriptmanager2.le.cache
/System/Library/Keyboard Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-L.dat
/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_bgra.dylib
/usr/lib/dyld
/dyld_shared_cache_i386
/dev/null
/dev/null
/dev/null
count=2, state=0x2
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/SystemAppearance.car
~/.pyfa/log.txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/GraphiteAppearance.car
/Applications/pyfa.app/Contents/Resources/staticdata/eve.db
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityGraphiteAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/DarkAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/GraphiteDarkAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityDarkAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityDarkGraphiteAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/VibrantLightAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityVibrantLightAppearance.car
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
~/Library/Saved Application State/org.evefit.pyfa.savedState/data.data
~/Library/Saved Application State/org.evefit.pyfa.savedState/data.data
~/Library/Saved Application State/org.evefit.pyfa.savedState/windows.plist
~/Library/Saved Application State/org.evefit.pyfa.savedState/window_1.data

If you need any other info let me know.

@msgonzo
Copy link

msgonzo commented Jul 7, 2015

I am getting this same error.

@blitzmann
Copy link
Collaborator

Are you dev savvy? If so, can you run pyfa from the python interpreter? You'll need wxPython 2.8 installed as well as a few other python modules. My OS X VM isn't working right

@blitzmann
Copy link
Collaborator

Got my VM to (kind of) work, but my python packages are all fucked, so my errors aren't reliable. Looking into it.

Update: I had an error with my wxPython package specifically. Once I got that fixed on the OS I was able to start v1.13.0 from the source. That shouldn't affect the package that we distribute.

However, I do get a crash when I try to start with -r, which tries to save data into the pyfa directory rather than ~/.pyfa// Commenting out the rotating log handler bits in config.py allows it to work. I haven't the faintest idea why it doesn't work tho. I mean, if it was a permissions issue, the database wouldn't be created / written to. As a stop-gap, we could disable the log for os x for now until we find the real reason...

Traceback (most recent call last):
  File "pyfa.py", line 79, in <module>
    config.defPaths()
  File "/Users/ryan/Downloads/pyfa-master/config.py", line 62, in defPaths
    handler = logging.handlers.RotatingFileHandler(os.path.join(savePath, "log.txt"), maxBytes=1000000, backupCount=3)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/handlers.py", line 118, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/handlers.py", line 65, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 893, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 912, in _open
IOError: [Errno 2] No such file or directory: u'/Users/ryan/Downloads/pyfa-master/saveddata/log.txt'

@blitzmann blitzmann mentioned this issue Jul 8, 2015
@rosborn
Copy link
Author

rosborn commented Jul 8, 2015

Sorry, I don't seem to be able to install wxpython2.8. I think it has something to do with python2.7 being in 64bit mode. Not really sure. Don't have enough time to look into it.
Update:
This is the terminal output when I run /Applications/pyfa.app/Contents/MacOS/pyfa

Traceback (most recent call last):
  File "/Applications/pyfa.app/Contents/Resources/__boot__.py", line 32, in <module>
    _run('pyfa.py')
  File "/Applications/pyfa.app/Contents/Resources/__boot__.py", line 29, in _run
    execfile(path, globals(), globals())
  File "/Applications/pyfa.app/Contents/Resources/pyfa.py", line 86, in <module>
    import eos.db
  File "/Applications/pyfa.app/Contents/Resources/eos/db/__init__.py", line 67, in <module>
    from eos.db.gamedata import *
  File "/Applications/pyfa.app/Contents/Resources/eos/db/gamedata/attribute.py", line 23, in <module>
    from eos.types import Attribute, Icon, AttributeInfo, Unit
  File "/Applications/pyfa.app/Contents/Resources/eos/types.py", line 26, in <module>
    from eos.saveddata.character import Character, Skill
  File "/Applications/pyfa.app/Contents/Resources/eos/saveddata/character.py", line 23, in <module>
    from eos.effectHandlerHelpers import HandledItem
  File "/Applications/pyfa.app/Contents/Resources/eos/effectHandlerHelpers.py", line 20, in <module>
    from sqlalchemy.orm.attributes import flag_modified
ImportError: cannot import name flag_modified
2015-07-07 21:52:35.193 pyfa[8943:787218] pyfa Error
2015-07-07 21:52:35.285 pyfa[8943:787218] pyfa Error

And the output when I run /Applications/pyfa.app/Contents/MacOS/pyfa -r

Traceback (most recent call last):
  File "/Applications/pyfa.app/Contents/Resources/__boot__.py", line 32, in <module>
    _run('pyfa.py')
  File "/Applications/pyfa.app/Contents/Resources/__boot__.py", line 29, in _run
    execfile(path, globals(), globals())
  File "/Applications/pyfa.app/Contents/Resources/pyfa.py", line 79, in <module>
    config.defPaths()
  File "/Applications/pyfa.app/Contents/Resources/config.py", line 62, in defPaths
    handler = logging.handlers.RotatingFileHandler(os.path.join(savePath, "log.txt"), maxBytes=1000000, backupCount=3)
  File "logging/handlers.pyc", line 113, in __init__
  File "logging/handlers.pyc", line 65, in __init__
  File "logging/__init__.pyc", line 889, in __init__
  File "logging/__init__.pyc", line 908, in _open
IOError: [Errno 2] No such file or directory: u'/Applications/pyfa.app/Contents/Resources/saveddata/log.txt'
2015-07-07 21:58:06.408 pyfa[8960:788892] pyfa Error
2015-07-07 21:58:06.410 pyfa[8960:788892] pyfa Error

@blitzmann
Copy link
Collaborator

ImportError: cannot import name flag_modified

Well that is disconcerting. We are using a very old skeleton for the mac client as we do not have a mac developer to make a new one. Either this skeleton doesn't have flag_modified or sqlalchemy 0.6 did not have it.

Only way to properly fix this that I can see would be to update the os x build. In the short term though, we might be able to work around this using a disgusting hack. I'll have to test it out. Still not sure what's up with the -r flag =/

@blitzmann
Copy link
Collaborator

Should be fixed with v1.13.1. Please test it out and reports back. If you still have issues, reopen.

Note: I did not test -r flag. That may or may not work (but I suspect it will as we also fixed an issue with savePath creation)

@maurerit
Copy link

maurerit commented Jul 8, 2015

What's the build procedures? I could probably run the build for you if you like!

@rosborn
Copy link
Author

rosborn commented Jul 9, 2015

Everything seems to be working with the new update. Thanks for the quick response.
@maurerit Building wxpython2.8 for the mac is quite difficult. You'll need to get a hold of the 10.6 sdk and link to that when building.
https://github.com/DarkFenX/Pyfa/wiki/FAQ#requirements-for-running-pyfa-from-source
https://forums.wxwidgets.org/viewtopic.php?t=38413#p158090
I haven't had the time to build all the pyfa requirements, so ymmv.

@blitzmann
Copy link
Collaborator

You shouldn't have to build wx2.8 for the mac (unless, like @rosborn, you have different arch or something). I got it working from the installer: http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/

When I say build, I mean the skeleton. The mac package is basically a skeleton of mac-specific files (see skeleton repo on DarkFenX) that the pyfa source is just copied into, and the whole thing is zipped to make the release. The problem is that it contains old libraries (sqlalchemy 0.6.4 and wx2.8), and we made years ago. We no longer have a developer with access to an actual mac, so progress on anything mac-related is slow. To build a new one requires running something like py2app or cxFreeze to update everything. We're going to need to do this anyway for the wx3 release as soon as the bugs for that are worked out. But more about the mac build efforts can be found at #289

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

4 participants