Hello,
im geting this error for some reason when i run the script. Any help?
>>> import pymongo>>> from pymongo import MongoClient>>> from pprint import pprint>>> from bson.int64 import Int64>>> import copy>>>>>> class Marketplace:... File "<stdin>", line 2 ^IndentationError: expected an indented block>>> item_data = { File "<stdin>", line 1 item_data = { ^IndentationError: unexpected indent>>> # weapons: index0 is used for price... "weapons" : [ File "<stdin>", line 2 "weapons" : [ ^IndentationError: unexpected indent>>> [ 200000, 10413, 10613, 13313, 11213, 11363, 10213, 10013, 13213, 14413 ], # Bares File "<stdin>", line 1 [ 200000, 10413, 10613, 13313, 11213, 11363, 10213, 10013, 13213, 14413 ], # Bares ^IndentationError: unexpected indent>>> [ 200000, 10403, 10603, 13303, 11203, 11353, 10203, 10003, 13203, 14403 ], # Elsh File "<stdin>", line 1 [ 200000, 10403, 10603, 13303, 11203, 11353, 10203, 10003, 13203, 14403 ], # Elsh ^IndentationError: unexpected indent>>> [ 120000, 10406, 10606, 13306, 11206, 11356, 10206, 10006, 13206, 14406 ], # Ain File "<stdin>", line 1 [ 120000, 10406, 10606, 13306, 11206, 11356, 10206, 10006, 13206, 14406 ], # Ain ^IndentationError: unexpected indent>>> [ 120000, 10405, 10605, 13305, 11205, 11355, 10205, 10005, 13205, 14405 ], # Azwell File "<stdin>", line 1 [ 120000, 10405, 10605, 13305, 11205, 11355, 10205, 10005, 13205, 14405 ], # Azwell ^IndentationError: unexpected indent>>> [ 140000, 10471, 10671, 13371, 11222, 11372, 10271, 10071, 13271, 14471 ], # Styd File "<stdin>", line 1 [ 140000, 10471, 10671, 13371, 11222, 11372, 10271, 10071, 13271, 14471 ], # Styd ^IndentationError: unexpected indent>>> [ 150000, 10414, 10614, 13314, 11214, 11364, 10214, 10014, 13214, 14414 ], # Yuria File "<stdin>", line 1 [ 150000, 10414, 10614, 13314, 11214, 11364, 10214, 10014, 13214, 14414 ], # Yuria ^IndentationError: unexpected indent>>> [ 150000, 10407, 10607, 13307, 11207, 11357, 10207, 10007, 13207, 14407 ], # Seleth File "<stdin>", line 1 [ 150000, 10407, 10607, 13307, 11207, 11357, 10207, 10007, 13207, 14407 ], # Seleth ^IndentationError: unexpected indent>>> [ 200000, 10412, 10612, 13312, 11212, 11362, 10212, 10012, 13212, 14412 ], # Kalis File "<stdin>", line 1 [ 200000, 10412, 10612, 13312, 11212, 11362, 10212, 10012, 13212, 14412 ], # Kalis ^IndentationError: unexpected indent>>> [ 250000, 10456, 10656, 13356, 11220, 11370, 10256, 10056, 13256, 14456 ], # Krea File "<stdin>", line 1 [ 250000, 10456, 10656, 13356, 11220, 11370, 10256, 10056, 13256, 14456 ], # Krea ^IndentationError: unexpected indent>>> [ 300000, 10457, 10657, 13357, 11221, 11371, 10257, 10057, 13257, 14457 ], # Rosar File "<stdin>", line 1 [ 300000, 10457, 10657, 13357, 11221, 11371, 10257, 10057, 13257, 14457 ], # Rosar ^IndentationError: unexpected indent>>> [ 9000000, 10409, 10609, 13309, 11209, 11359, 10209, 10009, 13209, 14409 ], # Liverto File "<stdin>", line 1 [ 9000000, 10409, 10609, 13309, 11209, 11359, 10209, 10009, 13209, 14409 ], # Liverto ^IndentationError: unexpected indent>>> [ 90000000, 10410, 10610, 13310, 11210, 11360, 10210, 10010, 13210, 14410 ], # Kzarka File "<stdin>", line 1 [ 90000000, 10410, 10610, 13310, 11210, 11360, 10210, 10010, 13210, 14410 ], # Kzarka ^IndentationError: unexpected indent>>> # Secondaries... #[ 10000, 10301, 13001, 10101, 10501, 10701, 13101, 14501, 14601, 11301 ], # t1... #[ 60000, 10302, 13002, 10104, 10502, 10702, 13102, 14502, 14602, 11302 ], # t2... [ 60000, 10303, 13003, 10102, 10503, 10705, 13104, 14503, 14603, 11303 ], # t3 File "<stdin>", line 4 [ 60000, 10303, 13003, 10102, 10503, 10705, 13104, 14503, 14603, 11303 ], # t3 ^IndentationError: unexpected indent>>> [ 200000, 10304, 13004, 10103, 10504, 10704, 13103, 14504, 14604, 11304 ], # t4 File "<stdin>", line 1 [ 200000, 10304, 13004, 10103, 10504, 10704, 13103, 14504, 14604, 11304 ], # t4 ^IndentationError: unexpected indent>>> [ 250000, 10305, 13005, 10105, 10505, 10703, 13105, 14505, 14605, 11305 ], # t5 File "<stdin>", line 1 [ 250000, 10305, 13005, 10105, 10505, 10703, 13105, 14505, 14605, 11305 ], # t5 ^IndentationError: unexpected indent>>> [ 350000, 10324, 13024, 10124, 10724, 10524, 13124, 14524, 14624, 11324 ], # t6 File "<stdin>", line 1 [ 350000, 10324, 13024, 10124, 10724, 10524, 13124, 14524, 14624, 11324 ], # t6 ^IndentationError: unexpected indent>>> [ 400000, 10325, 13025, 10125, 10525, 10725, 13125, 14525, 14625, 11325 ], # t7 File "<stdin>", line 1 [ 400000, 10325, 13025, 10125, 10525, 10725, 13125, 14525, 14625, 11325 ], # t7 ^IndentationError: unexpected indent>>> [ 80000000, 10340, 13140, 14540, 10740, 10140, 14640, 10540, 13040, 11340 ], # t8 kutum File "<stdin>", line 1 [ 80000000, 10340, 13140, 14540, 10740, 10140, 14640, 10540, 13040, 11340 ], # t8 kutum ^IndentationError: unexpected indent>>> [ 90000000, 13038, 10338, 13138, 14538, 10738, 10138, 10138, 14638, 10538, 11338 ], # t9 nouver File "<stdin>", line 1 [ 90000000, 13038, 10338, 13138, 14538, 10738, 10138, 10138, 14638, 10538, 11338 ], # t9 nouver ^IndentationError: unexpected indent>>>... # Awakened... [ 90000000, 14802, 14742, 14762, 14822, 14812, 14702, 14722, 14732, 14772, 14752, 14792, 14712, 14782, 14817 ], # dandelion File "<stdin>", line 3 [ 90000000, 14802, 14742, 14762, 14822, 14812, 14702, 14722, 14732, 14772, 14752, 14792, 14712, 14782, 14817 ], # dandelion ^IndentationError: unexpected indent>>>... # Misusing the weapon structure here for non-stacking misc items... # because they are processed in the same way.... # Magic Crystals:... [ 5000, 15034, 15035, 15036, 15037, 15038, 15039, 15040, 15041, 15042, 15043, 15044, 15045 ], # white File "<stdin>", line 5 [ 5000, 15034, 15035, 15036, 15037, 15038, 15039, 15040, 15041, 15042, 15043, 15044, 15045 ], # white ^IndentationError: unexpected indent>>> [ 5000, 15001, 15002, 15003, 15004, 15005, 15006, 15007, 15008, 15009, 15010, 15011, 15012, 15013, 15014, 15015, 15016, 15017, 15018, 15019, 15020, 15027, 15028, 15029, 15030, 15031, 15033 ], # green File "<stdin>", line 1 [ 5000, 15001, 15002, 15003, 15004, 15005, 15006, 15007, 15008, 15009, 15010, 15011, 15012, 15013, 15014, 15015, 15016, 15017, 15018, 15019, 15020, 15027, 15028, 15029, 15030, 15031, 15033 ], # green ^IndentationError: unexpected indent>>> [ 250000, 15101, 15102, 15103, 15104, 15105, 15106, 15107, 15108, 15109, 15110, 15111, 15112, 15113, 15114, 15115, 15116, 15117, 15118, 15119, 15120, 15121, 15122, 15123, 15124, 15125, 15126, 15127, 15128, 15129, 15130, 15131, 15132, 15133, 15134, 15135, 15136, 15137, 15138, 15139, 15146, 15147, 15148, 15149, 15150, 15151, 15152, 15153, 15154 ], # blue File "<stdin>", line 1 [ 250000, 15101, 15102, 15103, 15104, 15105, 15106, 15107, 15108, 15109, 15110, 15111, 15112, 15113, 15114, 15115, 15116, 15117, 15118, 15119, 15120, 15121, 15122, 15123, 15124, 15125, 15126, 15127, 15128, 15129, 15130, 15131, 15132, 15133, 15134, 15135, 15136, 15137, 15138, 15139, 15146, 15147, 15148, 15149, 15150, 15151, 15152, 15153, 15154 ], # blue ^IndentationError: unexpected indent>>> [ 1600000, 15021, 15022, 15023, 15024, 15025, 15026, 15032, 15201, 15202, 15203, 15204, 15205, 15206, 15207, 15208, 15209, 15210, 15211, 15212, 15213, 15214, 15215, 15216, 15217, 15218, 15219, 15220, 15221, 15222, 15223, 15224, 15606, 15607, 15608, 15609, 15610, 15611, 15612, 15613, 15614, 15615, 15616, 15617, 15618, 15619, 15620, 15621, 15622, 15623, 15624, 15625 ], # yellow File "<stdin>", line 1 [ 1600000, 15021, 15022, 15023, 15024, 15025, 15026, 15032, 15201, 15202, 15203, 15204, 15205, 15206, 15207, 15208, 15209, 15210, 15211, 15212, 15213, 15214, 15215, 15216, 15217, 15218, 15219, 15220, 15221, 15222, 15223, 15224, 15606, 15607, 15608, 15609, 15610, 15611, 15612, 15613, 15614, 15615, 15616, 15617, 15618, 15619, 15620, 15621, 15622, 15623, 15624, 15625 ], # yellow ^IndentationError: unexpected indent>>> [ 15000000, 15501, 15502, 15503, 15504, 15505, 15601, 15602, 15603, 15604, 15605, 15606, 15626, 15627, 15628, 15629, 15630, 15631, 15632, 15633, 15634, 15635, 15636, 15637, 15638, 15639, 15640, 15649, 15650, 15651 ], # orange File "<stdin>", line 1 [ 15000000, 15501, 15502, 15503, 15504, 15505, 15601, 15602, 15603, 15604, 15605, 15606, 15626, 15627, 15628, 15629, 15630, 15631, 15632, 15633, 15634, 15635, 15636, 15637, 15638, 15639, 15640, 15649, 15650, 15651 ], # orange ^IndentationError: unexpected indent>>>......... # Summon Items 15226,... [ 100000, 40220 ], # Forbidden Book File "<stdin>", line 5 [ 100000, 40220 ], # Forbidden Book ^IndentationError: unexpected indent>>> [ 200000, 40218 ], # Ancient Relic Crystal shard File "<stdin>", line 1 [ 200000, 40218 ], # Ancient Relic Crystal shard ^IndentationError: unexpected indent>>> [ 250000, 40228 ], # Scroll written in ancient language File "<stdin>", line 1 [ 250000, 40228 ], # Scroll written in ancient language ^IndentationError: unexpected indent>>>... ### Useful consumables ###... # Purified Water, Star Anise Tea... [ 1000, 6656, 9306 ], File "<stdin>", line 4 [ 1000, 6656, 9306 ], ^IndentationError: unexpected indent>>>>>> # Dim Tree Armor, Red Nose Armor, Giath Hat, Muskan Shoe, Bheg Glove... [ 100000000, 11017, 11014, 11013, 11016, 11015 ], File "<stdin>", line 2 [ 100000000, 11017, 11014, 11013, 11016, 11015 ], ^IndentationError: unexpected indent>>>... ## Crafting ##... [ 50000, 44195 ], # Memory Fragment File "<stdin>", line 3 [ 50000, 44195 ], # Memory Fragment ^IndentationError: unexpected indent>>> [ 100000, 4911, 4910 ], # grade 3 reform stones File "<stdin>", line 1 [ 100000, 4911, 4910 ], # grade 3 reform stones ^IndentationError: unexpected indent>>> [ 100000, 16001, 16002 ], # Black stones File "<stdin>", line 1 [ 100000, 16001, 16002 ], # Black stones ^IndentationError: unexpected indent>>> [ 10000000, 16004, 16005 ], # Concentrated Black stones File "<stdin>", line 1 [ 10000000, 16004, 16005 ], # Concentrated Black stones ^IndentationError: unexpected indent>>>>>> # Accessories...... # Riddell Earring... [ 900000, 11811 ], File "<stdin>", line 4 [ 900000, 11811 ], ^IndentationError: unexpected indent>>>... # Shrine Guardian Token, Outlaw's Ring... [ 1500000, 12008, 12012 ], File "<stdin>", line 3 [ 1500000, 12008, 12012 ], ^IndentationError: unexpected indent>>>... # Blue Coral Ring, Blue Coral Earring, Ancient Weapon Core, Red Coral Ring, Scarla Necklace... [ 4500000, 12017, 11816, 12220, 12018, 11610 ], File "<stdin>", line 3 [ 4500000, 12017, 11816, 12220, 12018, 11610 ], ^IndentationError: unexpected indent>>>... # Belt of Shultz... [ 7000000, 12211 ], File "<stdin>", line 3 [ 7000000, 12211 ], ^IndentationError: unexpected indent>>>... # Necklace of Shultz, Red Coral Earring, Witch's Earring, Fugitive Khalk's Earring, Mark of Shadow... [ 12000000, 11631, 11817, 11808, 11827, 12007 ], File "<stdin>", line 3 [ 12000000, 11631, 11817, 11808, 11827, 12007 ], ^IndentationError: unexpected indent>>>... # Ancient Guardian's Seal... [ 18000000, 11613 ], File "<stdin>", line 3 [ 18000000, 11613 ], ^IndentationError: unexpected indent>>>... # Tree Spirit Belt... [ 35000000, 12210 ], File "<stdin>", line 3 [ 35000000, 12210 ], ^IndentationError: unexpected indent>>>... # Blue Whale Molar Earring... [ 40000000, 11815 ], File "<stdin>", line 3 [ 40000000, 11815 ], ^IndentationError: unexpected indent>>>... # Ring of Cadry Guardian, Ring of Crescent Guardian, Serap's Necklace... [ 45000000, 12032, 12031, 11628 ], File "<stdin>", line 3 [ 45000000, 12032, 12031, 11628 ], ^IndentationError: unexpected indent>>>... # Sicil's Necklace... [ 55000000, 11625 ], File "<stdin>", line 3 [ 55000000, 11625 ], ^IndentationError: unexpected indent>>>... # Basilisk's Belt... [ 70000000, 12230 ], File "<stdin>", line 3 [ 70000000, 12230 ], ^IndentationError: unexpected indent>>>... # Tungrad Earring, Ogre Ring, Laytenn's Power Stone... [ 90000000, 11828, 11607, 11630 ], File "<stdin>", line 3 [ 90000000, 11828, 11607, 11630 ], ^IndentationError: unexpected indent>>>... # Tungrad Necklace... [ 120000000, 11629 ], File "<stdin>", line 3 [ 120000000, 11629 ], ^IndentationError: unexpected indent>>>... ], File "<stdin>", line 2 ], ^IndentationError: unexpected indent>>> # armor has a feature where chests are more expensive than other parts... "armor" : [ # price, hatID, chestID, gloveID, shoeID File "<stdin>", line 2 "armor" : [ # price, hatID, chestID, gloveID, shoeID ^IndentationError: unexpected indent>>> [ 100000, 10813, 10814, 10815, 10816 ], # Taritas File "<stdin>", line 1 [ 100000, 10813, 10814, 10815, 10816 ], # Taritas ^IndentationError: unexpected indent>>> [ 100000, 10821, 10822, 10823, 10824 ], # Talis File "<stdin>", line 1 [ 100000, 10821, 10822, 10823, 10824 ], # Talis ^IndentationError: unexpected indent>>> [ 250000, 10809, 10810, 10811, 10812 ], # Agerian File "<stdin>", line 1 [ 250000, 10809, 10810, 10811, 10812 ], # Agerian ^IndentationError: unexpected indent>>> [ 330000, 11005, 11006, 11007, 11008 ], # Strength of Heve File "<stdin>", line 1 [ 330000, 11005, 11006, 11007, 11008 ], # Strength of Heve ^IndentationError: unexpected indent>>> [ 320000, 11001, 11002, 11003, 11004 ], # Hercules Might File "<stdin>", line 1 [ 320000, 11001, 11002, 11003, 11004 ], # Hercules Might ^IndentationError: unexpected indent>>> [ 330000, 11009, 11010, 11011, 11012 ], # Luck Fortuna File "<stdin>", line 1 [ 330000, 11009, 11010, 11011, 11012 ], # Luck Fortuna ^IndentationError: unexpected indent>>> [ 340000, 10817, 10818, 10819, 10820 ], # Zereth File "<stdin>", line 1 [ 340000, 10817, 10818, 10819, 10820 ], # Zereth ^IndentationError: unexpected indent>>> [ 350000, 10933, 10934, 10935, 10936 ], # grunil File "<stdin>", line 1 [ 350000, 10933, 10934, 10935, 10936 ], # grunil ^IndentationError: unexpected indent>>> [ 200000, 10937, 10938, 10939, 10940 ], # Rocaba File "<stdin>", line 1 [ 200000, 10937, 10938, 10939, 10940 ], # Rocaba ^IndentationError: unexpected indent>>> ], File "<stdin>", line 1 ], ^IndentationError: unexpected indent>>>... # other have price as index0 and quantity as index 1... "other" : [ File "<stdin>", line 3 "other" : [ ^IndentationError: unexpected indent>>> [ 100000, 9999, 16001, 16002 ], # Black stones File "<stdin>", line 1 [ 100000, 9999, 16001, 16002 ], # Black stones ^IndentationError: unexpected indent>>> [ 10000000, 999, 16004, 16005 ], # Concentrated Black stones File "<stdin>", line 1 [ 10000000, 999, 16004, 16005 ], # Concentrated Black stones ^IndentationError: unexpected indent>>>... ] File "<stdin>", line 2 ] ^IndentationError: unexpected indent>>> } File "<stdin>", line 1 } ^IndentationError: unexpected indent>>>>>> base_item = { File "<stdin>", line 1 base_item = { ^IndentationError: unexpected indent>>> "_id":Int64(10000002000000002), File "<stdin>", line 1 "_id":Int64(10000002000000002), ^IndentationError: unexpected indent>>> "accountId": 2, File "<stdin>", line 1 "accountId": 2, ^IndentationError: unexpected indent>>> "marketRegistredDate": 1531821851, File "<stdin>", line 1 "marketRegistredDate": 1531821851, ^IndentationError: unexpected indent>>> "marketExpirationDate": 1832426651, File "<stdin>", line 1 "marketExpirationDate": 1832426651, ^IndentationError: unexpected indent>>> "revenue":0, File "<stdin>", line 1 "revenue":0, ^IndentationError: unexpected indent>>> "totalCount":9999999, File "<stdin>", line 1 "totalCount":9999999, ^IndentationError: unexpected indent>>> "price":33333, File "<stdin>", line 1 "price":33333, ^IndentationError: unexpected indent>>> "territoryKey":0, File "<stdin>", line 1 "territoryKey":0, ^IndentationError: unexpected indent>>> "item":{ File "<stdin>", line 1 "item":{ ^IndentationError: unexpected indent>>> "objectId": -1, File "<stdin>", line 1 "objectId": -1, ^IndentationError: unexpected indent>>> "itemId":10813, File "<stdin>", line 1 "itemId":10813, ^IndentationError: unexpected indent>>> "regionId":1, File "<stdin>", line 1 "regionId":1, ^IndentationError: unexpected indent>>> "enchantLevel":0, File "<stdin>", line 1 "enchantLevel":0, ^IndentationError: unexpected indent>>> "count":9999, File "<stdin>", line 1 "count":9999, ^IndentationError: unexpected indent>>> "endurance":100, File "<stdin>", line 1 "endurance":100, ^IndentationError: unexpected indent>>> "maxEndurance":100, File "<stdin>", line 1 "maxEndurance":100, ^IndentationError: unexpected indent>>> "expirationPeriod":-1, File "<stdin>", line 1 "expirationPeriod":-1, ^IndentationError: unexpected indent>>> "isVested":False, File "<stdin>", line 1 "isVested":False, ^IndentationError: unexpected indent>>> "price":33333, File "<stdin>", line 1 "price":33333, ^IndentationError: unexpected indent>>> "alchemyStoneExp":0, File "<stdin>", line 1 "alchemyStoneExp":0, ^IndentationError: unexpected indent>>> "colorPaletteType":0, File "<stdin>", line 1 "colorPaletteType":0, ^IndentationError: unexpected indent>>> "jewels":[], File "<stdin>", line 1 "jewels":[], ^IndentationError: unexpected indent>>> "colorPalettes":[] File "<stdin>", line 1 "colorPalettes":[] ^IndentationError: unexpected indent>>> } File "<stdin>", line 1 } ^IndentationError: unexpected indent>>> } File "<stdin>", line 1 } ^IndentationError: unexpected indent>>>>>> base_master = { File "<stdin>", line 1 base_master = { ^IndentationError: unexpected indent>>> "_id":Int64(10000002000000002), File "<stdin>", line 1 "_id":Int64(10000002000000002), ^IndentationError: unexpected indent>>> "itemId":10813, File "<stdin>", line 1 "itemId":10813, ^IndentationError: unexpected indent>>> "itemEnchantLevel":0, File "<stdin>", line 1 "itemEnchantLevel":0, ^IndentationError: unexpected indent>>> "itemMinPrice":100, File "<stdin>", line 1 "itemMinPrice":100, ^IndentationError: unexpected indent>>> "itemMaxPrice":Int64(100000000000), File "<stdin>", line 1 "itemMaxPrice":Int64(100000000000), ^IndentationError: unexpected indent>>> "marketSoldCount":0, File "<stdin>", line 1 "marketSoldCount":0, ^IndentationError: unexpected indent>>> "marketMinPrice":100, File "<stdin>", line 1 "marketMinPrice":100, ^IndentationError: unexpected indent>>> "marketMaxPrice":Int64(100000000000), File "<stdin>", line 1 "marketMaxPrice":Int64(100000000000), ^IndentationError: unexpected indent>>> "marketPrice":33333 File "<stdin>", line 1 "marketPrice":33333 ^IndentationError: unexpected indent>>> } File "<stdin>", line 1 } ^IndentationError: unexpected indent>>>>>> def __init__(self): File "<stdin>", line 1 def __init__(self): ^IndentationError: unexpected indent>>> # Account ID in mongo account collection of the user who is... # "selling" everything that we are putting on the market. To create... # an account for this modify the Start64.bat to change the... # credentials and the change back to launch your main account.... self.account_id = 2 File "<stdin>", line 5 self.account_id = 2 ^IndentationError: unexpected indent>>>... self.current_key = 0 File "<stdin>", line 2 self.current_key = 0 ^IndentationError: unexpected indent>>> self.market_items = [] File "<stdin>", line 1 self.market_items = [] ^IndentationError: unexpected indent>>> self.master_items = [] File "<stdin>", line 1 self.master_items = [] ^IndentationError: unexpected indent>>>... def collectionsAreEmpty(self, db): File "<stdin>", line 2 def collectionsAreEmpty(self, db): ^IndentationError: unexpected indent>>> gs = db["gameserver"] File "<stdin>", line 1 gs = db["gameserver"] ^IndentationError: unexpected indent>>> if "itemMarket" in gs.collection_names(): File "<stdin>", line 1 if "itemMarket" in gs.collection_names(): ^IndentationError: unexpected indent>>> if gs["itemMarket"].count() > 0: File "<stdin>", line 1 if gs["itemMarket"].count() > 0: ^IndentationError: unexpected indent>>> gs["itemMarket"].drop() File "<stdin>", line 1 gs["itemMarket"].drop() ^IndentationError: unexpected indent>>> gs["itemMarket"].remove() File "<stdin>", line 1 gs["itemMarket"].remove() ^IndentationError: unexpected indent>>>... if gs["itemMarket"].count() > 0: File "<stdin>", line 2 if gs["itemMarket"].count() > 0: ^IndentationError: unexpected indent>>> raise EnvironmentError("Script was unable to create an empty collection. You need to manually delete itemMarket and itemMarketMaster collections to run this script.") File "<stdin>", line 1 raise EnvironmentError("Script was unable to create an empty collection. You need to manually delete itemMarket and itemMarketMaster collections to run this script.") ^IndentationError: unexpected indent>>>... if "itemMarketMaster" in gs.collection_names(): File "<stdin>", line 2 if "itemMarketMaster" in gs.collection_names(): ^IndentationError: unexpected indent>>> if gs["itemMarketMaster"].count() > 0: File "<stdin>", line 1 if gs["itemMarketMaster"].count() > 0: ^IndentationError: unexpected indent>>> gs["itemMarketMaster"].drop() File "<stdin>", line 1 gs["itemMarketMaster"].drop() ^IndentationError: unexpected indent>>> gs["itemMarketMaster"].remove() File "<stdin>", line 1 gs["itemMarketMaster"].remove() ^IndentationError: unexpected indent>>>...... def populate(self): File "<stdin>", line 3 def populate(self): ^IndentationError: unexpected indent>>> # if collections do not exist, create them... # if that fails, error out... # if collections exist and are empty, proceed... # if collections exist and are not empty, drop them... # if collections still exist and are not empty, error out...>>> try: File "<stdin>", line 1 try: ^IndentationError: unexpected indent>>> db = MongoClient("localhost", 27017) File "<stdin>", line 1 db = MongoClient("localhost", 27017) ^IndentationError: unexpected indent>>> gameserver = db["gameserver"] File "<stdin>", line 1 gameserver = db["gameserver"] ^IndentationError: unexpected indent>>>>>> self.collectionsAreEmpty(db) File "<stdin>", line 1 self.collectionsAreEmpty(db) ^IndentationError: unexpected indent>>>... self.col_item_market = gameserver.itemMarket File "<stdin>", line 2 self.col_item_market = gameserver.itemMarket ^IndentationError: unexpected indent>>> self.col_master_item_market = db["gameserver"].masterItemMarket File "<stdin>", line 1 self.col_master_item_market = db["gameserver"].masterItemMarket ^IndentationError: unexpected indent>>>>>> self.buildArmor() File "<stdin>", line 1 self.buildArmor() ^IndentationError: unexpected indent>>> self.buildWeapons() File "<stdin>", line 1 self.buildWeapons() ^IndentationError: unexpected indent>>> self.buildOther() File "<stdin>", line 1 self.buildOther() ^IndentationError: unexpected indent>>> self.send_item_market() File "<stdin>", line 1 self.send_item_market() ^IndentationError: unexpected indent>>> self.send_item_master() File "<stdin>", line 1 self.send_item_master() ^IndentationError: unexpected indent>>> print("If you don't see any error messages, it probably worked") File "<stdin>", line 1 print("If you don't see any error messages, it probably worked") ^IndentationError: unexpected indent>>>... except EnvironmentError as e: File "<stdin>", line 2 except EnvironmentError as e: ^IndentationError: unexpected indent>>> print (e.args) File "<stdin>", line 1 print (e.args) ^IndentationError: unexpected indent>>>... def getNewId(self): File "<stdin>", line 2 def getNewId(self): ^IndentationError: unexpected indent>>> self.current_key = self.current_key + 1 File "<stdin>", line 1 self.current_key = self.current_key + 1 ^IndentationError: unexpected indent>>> return Int64(1000000200000) + self.current_key File "<stdin>", line 1 return Int64(1000000200000) + self.current_key ^IndentationError: unexpected indent>>>>>> def addDupes(self, item_record, num_dupes): File "<stdin>", line 1 def addDupes(self, item_record, num_dupes): ^IndentationError: unexpected indent>>> for c in range(0, num_dupes): File "<stdin>", line 1 for c in range(0, num_dupes): ^IndentationError: unexpected indent>>> new_clone_item = copy.deepcopy(item_record) File "<stdin>", line 1 new_clone_item = copy.deepcopy(item_record) ^IndentationError: unexpected indent>>> new_clone_item["_id"] = self.getNewId() File "<stdin>", line 1 new_clone_item["_id"] = self.getNewId() ^IndentationError: unexpected indent>>> self.market_items.append(new_clone_item) File "<stdin>", line 1 self.market_items.append(new_clone_item) ^IndentationError: unexpected indent>>>>>> def buildArmor(self): File "<stdin>", line 1 def buildArmor(self): ^IndentationError: unexpected indent>>> for idx in range(len(self.item_data["armor"])): File "<stdin>", line 1 for idx in range(len(self.item_data["armor"])): ^IndentationError: unexpected indent>>> armor_set = self.item_data["armor"][idx] File "<stdin>", line 1 armor_set = self.item_data["armor"][idx] ^IndentationError: unexpected indent>>> price = armor_set[0] File "<stdin>", line 1 price = armor_set[0] ^IndentationError: unexpected indent>>> armor_set.pop(0) File "<stdin>", line 1 armor_set.pop(0) ^IndentationError: unexpected indent>>>... for idx2 in range(len(armor_set)): File "<stdin>", line 2 for idx2 in range(len(armor_set)): ^IndentationError: unexpected indent>>> new_item = copy.deepcopy(self.base_item) File "<stdin>", line 1 new_item = copy.deepcopy(self.base_item) ^IndentationError: unexpected indent>>> new_item["_id"] = self.getNewId() File "<stdin>", line 1 new_item["_id"] = self.getNewId() ^IndentationError: unexpected indent>>> new_item["price"] = price File "<stdin>", line 1 new_item["price"] = price ^IndentationError: unexpected indent>>> new_item["item"]["price"] = price File "<stdin>", line 1 new_item["item"]["price"] = price ^IndentationError: unexpected indent>>> new_item["item"]["itemId"] = armor_set[idx2] File "<stdin>", line 1 new_item["item"]["itemId"] = armor_set[idx2] ^IndentationError: unexpected indent>>> self.market_items.append(new_item) File "<stdin>", line 1 self.market_items.append(new_item) ^IndentationError: unexpected indent>>> #self.addDupes(new_item, 10)...... new_master = copy.deepcopy(self.base_master) File "<stdin>", line 3 new_master = copy.deepcopy(self.base_master) ^IndentationError: unexpected indent>>> new_master["_id"] = new_item["_id"] File "<stdin>", line 1 new_master["_id"] = new_item["_id"] ^IndentationError: unexpected indent>>> new_master["itemId"] = armor_set[idx2] File "<stdin>", line 1 new_master["itemId"] = armor_set[idx2] ^IndentationError: unexpected indent>>> new_master["marketPrice"] = price File "<stdin>", line 1 new_master["marketPrice"] = price ^IndentationError: unexpected indent>>> self.master_items.append(new_master) File "<stdin>", line 1 self.master_items.append(new_master) ^IndentationError: unexpected indent>>>... def buildWeapons(self): File "<stdin>", line 2 def buildWeapons(self): ^IndentationError: unexpected indent>>> for idx in range(len(self.item_data["weapons"])): File "<stdin>", line 1 for idx in range(len(self.item_data["weapons"])): ^IndentationError: unexpected indent>>> weapon_set = self.item_data["weapons"][idx] File "<stdin>", line 1 weapon_set = self.item_data["weapons"][idx] ^IndentationError: unexpected indent>>> price = weapon_set[0] File "<stdin>", line 1 price = weapon_set[0] ^IndentationError: unexpected indent>>> weapon_set.pop(0) File "<stdin>", line 1 weapon_set.pop(0) ^IndentationError: unexpected indent>>>... for idx2 in range(len(weapon_set)): File "<stdin>", line 2 for idx2 in range(len(weapon_set)): ^IndentationError: unexpected indent>>> new_item = copy.deepcopy(self.base_item) File "<stdin>", line 1 new_item = copy.deepcopy(self.base_item) ^IndentationError: unexpected indent>>> new_item["_id"] = self.getNewId() File "<stdin>", line 1 new_item["_id"] = self.getNewId() ^IndentationError: unexpected indent>>> new_item["price"] = price File "<stdin>", line 1 new_item["price"] = price ^IndentationError: unexpected indent>>> new_item["item"]["price"] = price File "<stdin>", line 1 new_item["item"]["price"] = price ^IndentationError: unexpected indent>>> new_item["item"]["itemId"] = weapon_set[idx2] File "<stdin>", line 1 new_item["item"]["itemId"] = weapon_set[idx2] ^IndentationError: unexpected indent>>> self.market_items.append(new_item) File "<stdin>", line 1 self.market_items.append(new_item) ^IndentationError: unexpected indent>>> #self.addDupes(new_item, 10)...... new_master = copy.deepcopy(self.base_master) File "<stdin>", line 3 new_master = copy.deepcopy(self.base_master) ^IndentationError: unexpected indent>>> new_master["_id"] = new_item["_id"] File "<stdin>", line 1 new_master["_id"] = new_item["_id"] ^IndentationError: unexpected indent>>> new_master["itemId"] = weapon_set[idx2] File "<stdin>", line 1 new_master["itemId"] = weapon_set[idx2] ^IndentationError: unexpected indent>>> new_master["marketPrice"] = price File "<stdin>", line 1 new_master["marketPrice"] = price ^IndentationError: unexpected indent>>> self.master_items.append(new_master) File "<stdin>", line 1 self.master_items.append(new_master) ^IndentationError: unexpected indent>>>... def buildOther(self): File "<stdin>", line 2 def buildOther(self): ^IndentationError: unexpected indent>>> pass File "<stdin>", line 1 pass ^IndentationError: unexpected indent>>>... def send_item_market(self): File "<stdin>", line 2 def send_item_market(self): ^IndentationError: unexpected indent>>> for idx in range(len(self.market_items)): File "<stdin>", line 1 for idx in range(len(self.market_items)): ^IndentationError: unexpected indent>>> result = self.col_item_market.insert_one(self.market_items[idx]) File "<stdin>", line 1 result = self.col_item_market.insert_one(self.market_items[idx]) ^IndentationError: unexpected indent>>> if not result.acknowledged: File "<stdin>", line 1 if not result.acknowledged: ^IndentationError: unexpected indent>>> pprint(market_items[idx]) File "<stdin>", line 1 pprint(market_items[idx]) ^IndentationError: unexpected indent>>> raise ConnectionError("Insert failed") File "<stdin>", line 1 raise ConnectionError("Insert failed") ^IndentationError: unexpected indent>>>>>> def send_item_master(self): File "<stdin>", line 1 def send_item_master(self): ^IndentationError: unexpected indent>>> for idx in range(len(self.master_items)): File "<stdin>", line 1 for idx in range(len(self.master_items)): ^IndentationError: unexpected indent>>> result = self.col_master_item_market.insert_one(self.master_items[idx]) File "<stdin>", line 1 result = self.col_master_item_market.insert_one(self.master_items[idx]) ^IndentationError: unexpected indent>>> if not result.acknowledged: File "<stdin>", line 1 if not result.acknowledged: ^IndentationError: unexpected indent>>> pprint(master_items[idx]) File "<stdin>", line 1 pprint(master_items[idx]) ^IndentationError: unexpected indent>>> raise ConnectionError("Insert failed") File "<stdin>", line 1 raise ConnectionError("Insert failed") ^IndentationError: unexpected indent>>>>>> if __name__ == "__main__":... mrkt = Marketplace()... mrkt.populate()...Traceback (most recent call last): File "<stdin>", line 2, in <module>NameError: name 'Marketplace' is not defined>>>