Comments (10)
Do you have Python 2.7 (plus requests) installed? If so, please run from the command-line and see if there are any error messages. Also, if you don't mind sharing your cmdr details, please send me the .json file that it dumps.
from edmarketconnector.
Traceback (most recent call last):
File "D:\EDMarketConnector-rel-150\stats.py", line 159, in showstats ('Average profit', data['stats']['blackMarket']['profit'] / data['stats']['blackMarket']['count']),
ZeroDivisionError: integer division or modulo by zero
Traceback (most recent call last):
File "D:\EDMarketConnector-rel-150\stats.py", line 212, in showstats ('Commodities stolen', str(data['stats']['crime']['stolenCargo']['qty'])),
KeyError: 'stolenCargo'
Traceback (most recent call last):
File "D:\EDMarketConnector-rel-150\stats.py", line 223, in showstats for key in sorted(data['ships'].keys(), key=int):
AttributeError: 'list' object has no attribute 'keys'
from edmarketconnector.
Thanks. Looks like I need to code this much more defensively.
from edmarketconnector.
;)
from edmarketconnector.
Should be fixed in Release 1.51 - please let me know.
Also, please check if your ship(s) are listed on the Ships tab - your data structure appears to be different to mine.
from edmarketconnector.
I basically had the exact had the exact same screen as Anthornet with 1.50. With 1.51 I see a different screen , bigger but still to small.
Python version:
$ "C:\Data\Programming languages\64 bits\Python27\python.exe" --version
Python 2.7.10
My gitbash window shows the following:
$ "C:\Data\Programming languages\64 bits\Python27\python.exe" EDMarketConnector
.py
Loadout: 128064033: Unknown module "PowerPlant"
Exception in Tkinter callback
Traceback (most recent call last):
File "c:\Data\Programming languages\64 bits\Python27\lib\lib-tk\Tkinter.py", l
ine 1536, in call
return self.func(*args)
File "EDMarketConnector.py", line 93, in
file_menu.add_command(label="Statistics", command=lambda:stats.StatsDialog(s
elf.w, self.session))
File "c:\Data\Games\Elite Dangerous\edmc\stats.py", line 59, in init
self.showstats()
File "c:\Data\Games\Elite Dangerous\edmc\stats.py", line 91, in showstats
StatsResults(self.parent, data)
File "c:\Data\Games\Elite Dangerous\edmc\stats.py", line 170, in init
self.addstat(page, data, *thing)
File "c:\Data\Games\Elite Dangerous\edmc\stats.py", line 349, in addstat
assert False, content
AssertionError: (['stats', 'trade', 'profit'], ['stats', 'trade', 'count'])
The fetching data window never disappears and clicking update in the main window does not nothing. Seems to hang.
Orphu of EDAPI also shows some stats. It worked fine for him, all kind of errors for me. It turned out that his and mine JSON was a bit different. Perhaps because I had cleared my save and I had a PP JSON. His save was not cleared, it was from before PP but when he ran EDAPI he was running PP. Before Orphu could help you with this. Not sure what stats you are going to display but biobob has a private tools which basically display everything which is described in the section "What data is in the JSON datastructure" of this Redit thread . Perhaps you are displaying the same info ;-)
from edmarketconnector.
The link got lost. Again, hopefully now in correct markdown markup.
"What data is in the JSON datastructure" of this Redit thread.
from edmarketconnector.
Getting there. Have updated the draft release.
from edmarketconnector.
Works fine for me now ^^
from edmarketconnector.
Thanks.
Fixed in Release 1.51 (RC2)
from edmarketconnector.
Related Issues (20)
- The program just stopped opening, the reasons are unknown to me HOT 2
- Another error with the -o parameter of EDMC.exe getting exitcode 1 HOT 7
- Catch all exceptions at top level for better UX and bug reporting.
- Bug: The drop-down menus in the settings are shown completely white when the dark theme is set HOT 6
- Follow xdg base directory specification for log files (instead of `$TMPDIR`) HOT 2
- Incomplete Shipoutfit file export of EDMC.exe HOT 11
- Potential Issues with Jump Range Calculations in edshipyard.export HOT 2
- EDSM Preferences Tab Failing to Load on Clean Install HOT 3
- Styling issues with tkinter 8.6.14 HOT 5
- EDMC authenticates, but no updates are made HOT 5
- [EDDN
- 5.11.0 Installer Issues HOT 3
- Updating FDevIDs on linux HOT 15
- Killswitches are no longer found HOT 5
- Minimize to Tray broken in 5.11.1
- Window couldn't be opened after minimizing to tray bar HOT 2
- Export ship to SLEF option HOT 1
- Constantly needing to re-authenticate - but not working. HOT 4
- EDMC is unable to read my journal files HOT 7
- Translations PL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edmarketconnector.