-
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
DPS Graph window does not load #40
Comments
Does anything happen? Pyfa crash? Or the window just not load? |
Nothing happens. No crash. Pyfa continues to function normally. Window just doesn't load. |
Try launching pyfa from console and see if it prints "Problems importing matplotlib; continuing without graphs" there when you open graph. If it does, i will explain how to get more detailed data on import crash. |
Opened cmd and ran pyfa. Only output was a blank line before I got the prompt back (and the pyfa window). Pyfa runs as before (no graphs). I'm assuming this means matplotlib is at least loading on app start? so I have that going for me which is nice. |
Ran the exe from console? Is it possible to run it from source on python2? I also run Win7 and the latest version of Pyfa with no trouble with the DPS graph =( |
Oh! ♿ Ok! Installed python, everything listed in the readme, and managed to get python running from source... The first attempt to open a graph produces: "Problems importing matplotlib; continuing without graphs" Further attempts to open a graph produce:
Note: (this was copied from the log file, see below, so the path is different than my copy of the source) Also I noticed that error_log.txt and output_log.txt are not written until Pyfa is closed. So I tried running from the .exe again and after attempting to open a graph and then closing Pyfa these same errors are written to the logs. |
Do you have any other alternative installations of wxwidgets / wxpython? This error should never happen if bundled versions are used, to my understanding. |
No. I've never installed them before just now to run pyfa from source, but of course the issue was present before that. The bundled libraries are definitely present in the pyfa directory. I always unzip/copy+replace the entire pyfa directory when a new version comes out, so the version in the pyfa directory should be ok. Does pyfa not use those copies by default over libraries installed elsewhere? What should be my next debug steps be? |
Well, if it fails to import the module for wahtever reason, it seems to still set As to why it's not importing in the first place... I have no idea. I'll try to look into it further. Can you do me a favor though? I'm interested in seeing what exactly This is the block that's not working for you:
Since pyfa is setting In the source files (not the bundled release), open That will print the contents of |
Ok updated mainFrame.py, new output on first attempt to graph
as expected. Subsequent attempts to open the graph output:
so it looks like it's setting it to Other things I thought about printing (like the exception code in graphFrame.py didn't turn out well because I don't know what I'm doing. 😄 |
Yeah, it's just setting it to the GraphFrame class. I figured as much. Lets try to print out the exception message. Right now it catches the exception, but just prints out "Problem importing yada yada" In
Replace with:
(again, make sure indentation is correct) That will let us know what exactly is failing. If it's a failure to find the module, then I have no idea how to fix that as it should be bundled. |
Ok! error is:
looks like the traceback is from getting rid of so I need dateutil? As expected, attempting to open a graph the 2nd time produces the same error as before since we only run init at creation of an instance. |
Yeah, it seems that, for whatever reason, Go ahead and add |
I tried adding it at both the top and bottom of the stack of imports before the GraphFrame class begins in graphFrame.py. This caused Pyfa to not start at all. I get Traceback and I used the github app to download this source, so I should have everything. Should there be a dateutils.py somewhere? |
Update: I found an installer for python-dateutils 2.2 for py2.7 and used it. Now I'm getting |
I just deleted my c:\program files (x86)\pyfa\ directory again and reinstalled using the exe. Graphs work. I've tried that before without success. Really puzzled, but I won't argue with victory. Running pyfa from source still gives me the Either way, thanks very much for your time helping me through this! |
wtf. Agree'd really weird. The source pyfa runs off the python interpreter that you installed, whereas the bundled pyfa come with it's own python and all the python modules needed (which is why it was perplexing that it didn't work). They are separate, the interpreter that you installed requires you to manually install the dependencies. Glad you got it working. Go ahead and close the issue please. o7 |
I think it has something to do with python using obsolete .pycs (happens sometimes, to my knowledge, although it compares src & pyc using timestamp so this is unlikely to happen). Glad that you sorted this. |
Fix: Recursion Fix Part 2
Long standing issue for me. Neither selecting Graph from the menu nor Ctrl-G bring up the graphing window.
Using Windows 7
error_log.txt and output_log.txt are both empty.
Google search showed some people having issues with font caching and matplotlib, but deleting fontList.cache in the ~/.matplotlib/folder to force its reconstruction did not fix the issue.
Please advise if there's a way I can enable more logging to get better information on what's happening. Thanks.
The text was updated successfully, but these errors were encountered: