Code Monkey home page Code Monkey logo

Comments (10)

Marginal avatar Marginal commented on July 24, 2024

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.

AnthorNet avatar AnthorNet commented on July 24, 2024
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.

Marginal avatar Marginal commented on July 24, 2024

Thanks. Looks like I need to code this much more defensively.

from edmarketconnector.

AnthorNet avatar AnthorNet commented on July 24, 2024

;)

from edmarketconnector.

Marginal avatar Marginal commented on July 24, 2024

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.

wolverine2710 avatar wolverine2710 commented on July 24, 2024

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

edmc_151_main_window
edmc_151_fetching_data_screen
edmc_151_stats_screen


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.

wolverine2710 avatar wolverine2710 commented on July 24, 2024

The link got lost. Again, hopefully now in correct markdown markup.

"What data is in the JSON datastructure" of this Redit thread.

from edmarketconnector.

Marginal avatar Marginal commented on July 24, 2024

Getting there. Have updated the draft release.

from edmarketconnector.

AnthorNet avatar AnthorNet commented on July 24, 2024

Works fine for me now ^^

from edmarketconnector.

Marginal avatar Marginal commented on July 24, 2024

Thanks.
Fixed in Release 1.51 (RC2)

from edmarketconnector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.