It is already in version 3 of TD Helper and in the unreleased TDHelperJ that I'm currently working on.Mark, A request,please, to add to your pending new version of TD Helper. I like the pop-up that we recently got advising that a new version of Trade Dangerous is available and the option to click to update it. Could there also be some indication that the update has completed? This would avoid sitting there wondering if its OK to update the database yet!
trade import -P eddblink -O listings
trade import -P eddblink -O clean
If you really just want a prices file, there is one on my website at http://elite.tromador.com generated daily by the server. I make no promises it will work correctly, I have tested it but not extensively and don't know how robust it will be for things like megaship moves. Really should use the plugin as the guys show above to download the csv files and generate the database that way.Just started using TD - what's the most convenient way to get the .price files? Many old links are dead.
Ah, fair enough. I assumed that because there was an error message something was wrong, but this is more of a debug/info message I guess.The clean command will always display a warning about the prices file, because clean deletes it and rebuilds it from scratch. No need to run listings afterwards.
'trade import -P eddblink' is equivalent to 'trade import -P eddblink -O listings'.
If there is no .prices file, the eddblink plugin automagically runs as if it was called with 'trade import -P eddblink -O clean'.
So, really, just 'trade import -P eddblink' is usually all you need to do, whether on first run or when updating the database, because the default options for the plugin are, you know, actually sensible.
Thanks eyeonus.The listings.csv is provided by EDDN, so if it isn't getting updated that means something's going on upstream. EDDN is supposed to update it daily.
listings-live.csv is the one generated by the server, so as long as it's still getting updated there shouldn't be anything to worry about.
The live file contains all the data updates since the last daily provided by EDDN, so if the daily file isn't getting updated, that just means the live file will get bigger from all the updates until the daily does get updated again.
c:\trade>trade.py Traceback (most recent call last): File "C:\trade\trade.py", line 35, in <module> from tradedangerous import cli, gui File "C:\trade\tradedangerous\gui.py", line 45, in <module> from appJar import gui ModuleNotFoundError: No module named 'appJar'
Thanks for the info !TD has a GUI mode that depends on another python module called "appJar", which is installed automatically when you install TD using pip. (Which is what TDH did for you when you said yes to its prompt.)
You can check out the GUI mode yourself by simply running "trade gui" from a command line.
C:\trade>trade.py import "c:\trade\Fomalhaut.Wargnerport.2019-11-19T16.46.54.prices" NOTE: Rebuilding cache file: this may take a few moments. *** INTERNAL ERROR: NOT NULL constraint failed: RareItem.station_id CSV File: C:\trade\data\RareItem.csv:2 SQL Query: INSERT OR REPLACE INTO RareItem (station_id,category_id,name,cost,max_allocation,illegal,suppressed) VALUES((SELECT Station.station_id FROM Station INNER JOIN System USING(system_id) WHERE System.name = ? AND Station.name = ?),(SELECT Category.category_id FROM Category WHERE Category.name = ?),?,?,?,?,?) Params: ['16 LYRAE', 'Budrys Ring', 'Legal Drugs', 'Lyrae Weed', '148', '10', 'N', 'N']