Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error after the installation #21

Open
arademaker opened this issue Jun 30, 2021 · 2 comments
Open

error after the installation #21

arademaker opened this issue Jun 30, 2021 · 2 comments
Assignees
Labels

Comments

@arademaker
Copy link

% python -m coolisf text "I drink green tea." -f dmrs
Traceback (most recent call last):
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/Users/ar/venv/lib/python3.8/site-packages/coolisf/__main__.py", line 6, in <module>
    main.main()
  File "/Users/ar/venv/lib/python3.8/site-packages/coolisf/main.py", line 468, in main
    app.run()
  File "/Users/ar/venv/lib/python3.8/site-packages/texttaglib/chirptext/cli.py", line 135, in run
    args.func(self, args)
  File "/Users/ar/venv/lib/python3.8/site-packages/coolisf/main.py", line 230, in parse_text
    result = ghub.parse(text, args.grammar, args.topk, args.wsd, args.nocache, wsd=wsd, ctx=ctx)
  File "/Users/ar/venv/lib/python3.8/site-packages/coolisf/ghub.py", line 133, in parse
    sent = self[grm].parse(txt, parse_count=pc, ignore_cache=ignore_cache)
  File "/Users/ar/venv/lib/python3.8/site-packages/coolisf/ghub.py", line 226, in parse
    return self.parse_many((text,), parse_count, extra_args, ignore_cache)[0]
  File "/Users/ar/venv/lib/python3.8/site-packages/coolisf/ghub.py", line 221, in parse_many
    for sent in self.parse_many_iterative(texts, parse_count, extra_args, ignore_cache):
  File "/Users/ar/venv/lib/python3.8/site-packages/coolisf/ghub.py", line 179, in parse_many_iterative
    with ace.AceParser(self.gram_file, executable=self.ace_bin, cmdargs=args) as parser, self.cache.ctx() as ctx:
  File "/Users/ar/venv/lib/python3.8/site-packages/texttaglib/puchikarui/puchikarui.py", line 570, in ctx
    return self.ds.open(schema=self)
  File "/Users/ar/venv/lib/python3.8/site-packages/texttaglib/puchikarui/puchikarui.py", line 232, in open
    exe = ExecutionContext(self.path, schema=schema, auto_commit=ac)
  File "/Users/ar/venv/lib/python3.8/site-packages/texttaglib/puchikarui/puchikarui.py", line 376, in __init__
    self.conn = sqlite3.connect(str(path))
sqlite3.OperationalError: unable to open database file

I have to create the local/isf/data/temp manually. Maybe add that to https://coolisf.readthedocs.io/en/latest/?

@letuananh
Copy link
Owner

Thank you @arademaker. This seems to be a bug in the parse cache. I'll fix it and issue a patch asap.

@letuananh letuananh added the bug label Jun 30, 2021
@letuananh letuananh self-assigned this Jun 30, 2021
letuananh added a commit that referenced this issue Jul 14, 2021
@letuananh
Copy link
Owner

Fixed in: 140a9f5
To do:

  • UAT
  • Deploy patch to PyPI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants