Skip to content

Problem usage #19

@goupil35000

Description

@goupil35000

Hello,

I installed uvicorn and gnuicorn with pip in uv environment. I then launch the command:
gunicorn wisup_e2m.api.main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000

The result is :
Image

Is-it normal ?

When I launch my python file to convert pptx, I get the messages below (I replace my path by $MY_PATH in the command).

Could you help me ? Thanks.

Goupil

===========================================

Traceback (most recent call last):
File "$MY_PATH/./pptx_convertor_md.py", line 6, in
pptx_data = parser.parse(pptx_path)
File "$MY_PATH/.venv/lib/python3.10/site-packages/wisup_e2m/parsers/doc/pptx_parser.py", line 214, in parse
return self.get_parsed_data(**kwargs)
File "$MY_PATH/.venv/lib/python3.10/site-packages/wisup_e2m/parsers/doc/pptx_parser.py", line 170, in get_parsed_data
return self._parse_by_unstructured(
File "$MY_PATH/.venv/lib/python3.10/site-packages/wisup_e2m/parsers/doc/pptx_parser.py", line 91, in _parse_by_unstructured
self.unstructured_parse_func(
File "$MY_PATH/.venv/lib/python3.10/site-packages/unstructured/partition/common/metadata.py", line 162, in wrapper
elements = func(*args, **kwargs)
File "$MY_PATH/.venv/lib/python3.10/site-packages/unstructured/chunking/dispatch.py", line 74, in wrapper
elements = func(*args, **kwargs)
File "$MY_PATH/.venv/lib/python3.10/site-packages/unstructured/partition/pptx.py", line 126, in partition_pptx
return list(_PptxPartitioner.iter_presentation_elements(opts))
File "$MY_PATH/.venv/lib/python3.10/site-packages/unstructured/partition/pptx.py", line 169, in _iter_presentation_elements
yield from self._iter_shape_elements(shape)
File "$MY_PATH/.venv/lib/python3.10/site-packages/unstructured/partition/pptx.py", line 265, in _iter_shape_elements
elif is_possible_narrative_text(text):
File "$MY_PATH/.venv/lib/python3.10/site-packages/unstructured/partition/text_type.py", line 74, in is_possible_narrative_text
if exceeds_cap_ratio(text, threshold=cap_threshold):
File "$MY_PATH/.venv/lib/python3.10/site-packages/unstructured/partition/text_type.py", line 270, in exceeds_cap_ratio
if sentence_count(text, 3) > 1:
File "$MY_PATH/.venv/lib/python3.10/site-packages/unstructured/partition/text_type.py", line 219, in sentence_count
sentences = sent_tokenize(text)
File "$MY_PATH/.venv/lib/python3.10/site-packages/unstructured/nlp/tokenize.py", line 134, in sent_tokenize
_download_nltk_packages_if_not_present()
File "$MY_PATH/.venv/lib/python3.10/site-packages/unstructured/nlp/tokenize.py", line 128, in _download_nltk_packages_if_not_present
download_nltk_packages()
File "$MY_PATH/.venv/lib/python3.10/site-packages/unstructured/nlp/tokenize.py", line 86, in download_nltk_packages
urllib.request.urlretrieve(NLTK_DATA_URL, tgz_file_path)
File "$HOME/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/lib/python3.10/urllib/request.py", line 241, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "$HOME/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "$HOME/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "$HOME/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "$HOME/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/lib/python3.10/urllib/request.py", line 563, in error
return self._call_chain(*args)
File "$HOME/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "$HOME/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/lib/python3.10/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions