ntt/reverence

Couple of different errors on version 1.8.0

ARezaK opened this issue · 2 comments

Trying out version 1.8.0 of reverence I get different errors depending on the OS.

First here is my code for reading the cache which seemed to be working w/ 1.7.0 on windows XP but not on win 7 after scylla:

EVEROOT = eveonlinelocation[:-7]
eve = blue.EVE(EVEROOT)
cfg = eve.getconfigmgr()
cachemgr = eve.getcachemgr()
path = os.path.join(cachemgr.machocachepath, "CachedMethodCalls")
cmc = cachemgr.LoadCacheFolder(path)
path1 = os.path.join(cachemgr.machocachepath, "BulkData")

On windows XP I get:

AttributeError: CacheMgr instance has no attribute 'machocachepath'

referring to line 5

and on Windows 7 I get:

2015-03-29 12:34:43,549 INFO Unhandled exception: Traceback (most recent call last):
    eve = blue.EVE(EVEROOT)
  File "C:\Python27\lib\site-packages\reverence\blue.py", line 185, in __init__
    self.cfg = self.cache.getconfigmgr(self)
  File "C:\Python27\lib\site-packages\reverence\cache.py", line 182, in getconfigmgr
    self.cfg = config.Config(*args, **kw)
  File "C:\Python27\lib\site-packages\reverence\config.py", line 526, in __init__
    self.localdb = sqlite3.connect(os.path.join(eve.paths.root, "bin", "staticdata", "mapObjects.db"))
OperationalError: unable to open database file
ntt commented

path information is now in the EVE instance (eve.paths.machocache is the
one you want)

as for the 2nd error, not being able to open the mapobjects db is not a
reverence error. check if eve.paths.root points to the correct location.

On Sun, Mar 29, 2015 at 6:44 PM, ARezaK notifications@github.com wrote:

Trying out version 1.8.0 of reverence I get different errors depending on
the OS.

First here is my code for reading the cache which seemed to be working w/
1.7.0 on windows XP but not on 7 after scylla:

EVEROOT = eveonlinelocation[:-7]
eve = blue.EVE(EVEROOT)
cfg = eve.getconfigmgr()
cachemgr = eve.getcachemgr()
path = os.path.join(cachemgr.machocachepath, "CachedMethodCalls")
cmc = cachemgr.LoadCacheFolder(path)
path1 = os.path.join(cachemgr.machocachepath, "BulkData")

On windows XP I get:

AttributeError: CacheMgr instance has no attribute 'machocachepath'

referring to line 5

and on Windows 7 I get:

2015-03-29 12:34:43,549 INFO Unhandled exception: Traceback (most recent call last):
eve = blue.EVE(EVEROOT)
File "C:\Python27\lib\site-packages\reverence\blue.py", line 185, in init
self.cfg = self.cache.getconfigmgr(self)
File "C:\Python27\lib\site-packages\reverence\cache.py", line 182, in getconfigmgr
self.cfg = config.Config(_args, *_kw)
File "C:\Python27\lib\site-packages\reverence\config.py", line 526, in init
self.localdb = sqlite3.connect(os.path.join(eve.paths.root, "bin", "staticdata", "mapObjects.db"))
OperationalError: unable to open database file

referring to line 2


Reply to this email directly or view it on GitHub
#31.

Yup figured it out. Thanks