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 encountered when run "docker run -p 5001:5001 know-my-doc" #2

Open
norsizu opened this issue Mar 27, 2023 · 4 comments
Open

Error encountered when run "docker run -p 5001:5001 know-my-doc" #2

norsizu opened this issue Mar 27, 2023 · 4 comments

Comments

@norsizu
Copy link

norsizu commented Mar 27, 2023

Hello,

I have encountered an issue while attempting to use "docker run -p 5001:5001 know-my-doc" after exporting my blog posts into over 800 txt documents. The process started smoothly and proceeded for several hundred lines after "Reading document from string", but then abruptly displayed an error report.

I am using a macOS system and the documents are encoded in Chinese utf-8. Can you please help me understand what went wrong?

The error codes are as follows:

Traceback (most recent call last):
File "/usr/local/bin/flask", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/flask/cli.py", line 1050, in main
cli.main()
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/flask/cli.py", line 911, in run_command
raise e from None
File "/usr/local/lib/python3.10/site-packages/flask/cli.py", line 897, in run_command
app = info.load_app()
File "/usr/local/lib/python3.10/site-packages/flask/cli.py", line 308, in load_app
app = locate_app(import_name, name)
File "/usr/local/lib/python3.10/site-packages/flask/cli.py", line 218, in locate_app
import(module_name)
File "/app/app.py", line 7, in
import chat
File "/app/chat.py", line 32, in
for webpage in webpages:
TypeError: 'NoneType' object is not iterable

@ger0nimo
Copy link

got the same issue

@ger0nimo
Copy link

Using mac apple chip.

@StephanDeida
Copy link

Can't your project execute in Windows?

@incert-og
Copy link

got the same issue. could you support mac OS?

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

4 participants