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

test_lexicon_external misses etc/sample_lexicon.xml #25

Open
Mic92 opened this issue Dec 31, 2021 · 0 comments
Open

test_lexicon_external misses etc/sample_lexicon.xml #25

Mic92 opened this issue Dec 31, 2021 · 0 comments

Comments

@Mic92
Copy link

Mic92 commented Dec 31, 2021

$ python setup.py test
======================================================================
ERROR: test_lexicon_external (tests.test_ssml.SSMLTestCase)
Test <lexicon> from URI
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/rppr9s436950i1dlzknbmz40m2xqqnxc-python3-3.9.9/lib/python3.9/urllib/request.py", line 1503, in open_local_file
    stats = os.stat(localfile)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp.YVEnEy28Oj/gruut/etc/sample_lexicon.xml'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/tmp.YVEnEy28Oj/gruut/tests/test_ssml.py", line 379, in test_lexicon_external
    results = [
  File "/tmp/tmp.YVEnEy28Oj/gruut/tests/test_ssml.py", line 379, in <listcomp>
    results = [
  File "/tmp/tmp.YVEnEy28Oj/gruut/gruut/__init__.py", line 79, in sentences
    graph, root = text_processor(text, lang=lang, ssml=ssml, **process_args)
  File "/tmp/tmp.YVEnEy28Oj/gruut/gruut/text_processor.py", line 440, in __call__
    return self.process(*args, **kwargs)
  File "/tmp/tmp.YVEnEy28Oj/gruut/gruut/text_processor.py", line 972, in process
    load_lexicon(lexicon_uri, inline_lexicons[lexicon_id])
  File "/tmp/tmp.YVEnEy28Oj/gruut/gruut/utils.py", line 239, in load_lexicon
    with urlopen(uri, context=ssl_context) as response:
  File "/nix/store/rppr9s436950i1dlzknbmz40m2xqqnxc-python3-3.9.9/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/nix/store/rppr9s436950i1dlzknbmz40m2xqqnxc-python3-3.9.9/lib/python3.9/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/nix/store/rppr9s436950i1dlzknbmz40m2xqqnxc-python3-3.9.9/lib/python3.9/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/nix/store/rppr9s436950i1dlzknbmz40m2xqqnxc-python3-3.9.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/nix/store/rppr9s436950i1dlzknbmz40m2xqqnxc-python3-3.9.9/lib/python3.9/urllib/request.py", line 1481, in file_open
    return self.open_local_file(req)
  File "/nix/store/rppr9s436950i1dlzknbmz40m2xqqnxc-python3-3.9.9/lib/python3.9/urllib/request.py", line 1520, in open_local_file
    raise URLError(exp)
urllib.error.URLError: <urlopen error [Errno 2] No such file or directory: '/tmp/tmp.YVEnEy28Oj/gruut/etc/sample_lexicon.xml'>
@Mic92 Mic92 changed the title test_lexicon_external misses sample_lexicon.xml test_lexicon_external misses etc/sample_lexicon.xml Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant