Bug #212
KeyError: None in plugins/industry/models/research.py
| Status: | Closed | Start date: | Jul 12, 2012 | |
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | app-industry | Spent time: | 3.00 hours | |
| Target version: | 2.1.1 | Estimated time: | 2.00 hours | |
| Detected Version: | 2.0.5.2 | Python Version: | 2.6.6 |
Description
When running the Industry-Tasks i get:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/", line 116, in run
func(**args)
File "/usr/local/lib/python2.6/dist-packages/", line 63, in update_all_production_costs
update_production_cost(entry)
File "/usr/local/lib/python2.6/dist-packages/", line 83, in update_production_cost
missing_prices = order.create_jobs(ignore_fixed_prices=True)
File "/usr/local/lib/python2.6/dist-packages/", line 315, in create_jobs
cost, miss_prices = row.create_jobs(prices=prices)
File "/usr/local/lib/python2.6/dist-packages/", line 484, in create_jobs
job = Job.create(self.catalog_entry_id, self.quantity, order=self.order, row=self)
File "/usr/local/lib/python2.6/dist-packages/", line 173, in create
bp = InventionPolicy.blueprint(item.blueprint)
File "/usr/local/lib/python2.6/dist-packages/", line 95, in blueprint
runs_per_bp, me, pe, _, _ = InventionPolicy.resolve(blueprint)
File "/usr/local/lib/python2.6/dist-packages/", line 117, in resolve
decryptor_group = constants.INTERFACES_DECRYPTOR_MAPPING[blueprint.parent_blueprint.dataInterfaceID]
KeyError: None
Request repr() unavailable.
Related issues
History
#2
Updated by diabeteman 10 months ago
Hello drezil,
I can't work on ecm right now. I have a lot on my plate to finish my studies. If you want to give it a shot, I'll be happy to give you commit access :-P
I know this keyerror bug comes from some items that are t2 but cannot be invented (like some faction ships). We should add a test in the function that resolves the decryptors: InventionPolicy.resolve().
#3
Updated by Drezil 10 months ago
No. Problem in this case exists with a Guardian. This can be invented and i have added the blueprints i posses. Still it cannot calculate the Price.
#4
Updated by Drezil 10 months ago
As this happens in the Batch-Job you probably want an "expect Exception: pass" to skip over the errornous entries, log them in the log and continue to update the remaining.
#5
Updated by Drezil 10 months ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Estimated time set to 2.00
fixed.
to apply changes you have to redo:
ecm-admin load <instance> http://releases.eve-corp-management.org/eve_sde/inferno10/inferno10-<dbtype>.db.bz2
to update the database.
make sure to get the right file for your database, e.g. inferno10-sqlite-2.db.bz2 for sqlite
#7
Updated by diabeteman 9 months ago
- Status changed from Closed to In Progress
- Priority changed from Normal to High
- Target version set to 2.1.1
- Detected Version changed from 2.0.5 to 2.0.5.2
#8
Updated by diabeteman 9 months ago
- % Done changed from 100 to 0