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

cant run python3 -m app locally #62

Open
beniwallokendra opened this issue May 16, 2022 · 0 comments
Open

cant run python3 -m app locally #62

beniwallokendra opened this issue May 16, 2022 · 0 comments

Comments

@beniwallokendra
Copy link

beniwallokendra commented May 16, 2022

the error is
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/loki/Documents/TOOLS/tg-index/app/main.py", line 3, in
from .main import Indexer
File "/home/loki/Documents/TOOLS/tg-index/app/main.py", line 12, in
from .routes import setup_routes
File "/home/loki/Documents/TOOLS/tg-index/app/routes.py", line 8, in
from .config import index_settings
File "/home/loki/Documents/TOOLS/tg-index/app/config.py", line 21, in
api_id = int(os.environ["API_ID", 123521])
File "/usr/lib/python3.8/os.py", line 672, in getitem
value = self._data[self.encodekey(key)]
File "/usr/lib/python3.8/os.py", line 750, in encode
raise TypeError("str expected, not %s" % type(value).name)
TypeError: str expected, not tuple

i dont get it ... like what to do ... how can i fix this ???

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