IndexError: Cannot choose from an empty sequence // Werkzeug Debugger var CONSOLE_MODE = false, EVALEX = true, EVALEX_TRUSTED = false, SECRET = "Cztug1SITH6VWk19YYTC";
IndexError
IndexError: Cannot choose from an empty sequence
Traceback(most recent call last)
The above exception was the direct cause of the following exception:File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line2551, in__call__
def __call__(self, environ: dict, start_response: t.Callable) -> t.Any:
"""The WSGI server calls the Flask application object as the
WSGI application. This calls :meth:`wsgi_app`, which can be
wrapped to apply middleware.
"""
return self.wsgi_app(environ, start_response)
File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line2531, inwsgi_app
try:
ctx.push()
response = self.full_dispatch_request()
except Exception as e:
error = e
response = self.handle_exception(e)
except: # noqa: B001
error = sys.exc_info()[1]
raise
return response(environ, start_response)
finally:
File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line2528, inwsgi_app
ctx = self.request_context(environ)
error: t.Optional[BaseException] = None
try:
try:
ctx.push()
response = self.full_dispatch_request()
except Exception as e:
error = e
response = self.handle_exception(e)
except: # noqa: B001
error = sys.exc_info()[1]
File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line1825, infull_dispatch_request
request_started.send(self)
rv = self.preprocess_request()
if rv is None:
rv = self.dispatch_request()
except Exception as e:
rv = self.handle_user_exception(e)
return self.finalize_request(rv)
def finalize_request(
self,
rv: t.Union[ft.ResponseReturnValue, HTTPException],
File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line1823, infull_dispatch_request
try:
request_started.send(self)
rv = self.preprocess_request()
if rv is None:
rv = self.dispatch_request()
except Exception as e:
rv = self.handle_user_exception(e)
return self.finalize_request(rv)
def finalize_request(
File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line1799, indispatch_request
and req.method == "OPTIONS"
):
return self.make_default_options_response()
# otherwise dispatch to the handler for that endpoint
view_args: t.Dict[str, t.Any] = req.view_args # type: ignore[assignment]
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
def full_dispatch_request(self) -> Response:
"""Dispatches the request and on top of that performs request
pre and postprocessing as well as HTTP exception catching and
error handling.
File "/www/wwwroot/chat.py", line39, ingen_header
# post入参访问方式二:from-data(k-v)格式参数
@api.route('/gen_header', methods=['post'])
def gen_header():
wd = flask.request.values.get('wd')
future = executor.submit(do_heavy_work,wd)
return str(future.result())
def do_heavy_work(wd):
prompt = wd
#openai.api_key = api_key_list[-1]
openai.api_key = random.choice(api_key_list)
File "/usr/local/python3/lib/python3.7/concurrent/futures/_base.py", line435, inresult
self._condition.wait(timeout)
if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
raise CancelledError()
elif self._state == FINISHED:
return self.__get_result()
else:
raise TimeoutError()
def exception(self, timeout=None):
"""Return the exception raised by the call that the future represents.
File "/usr/local/python3/lib/python3.7/concurrent/futures/_base.py", line384, in__get_result
with self._condition:
return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]
def __get_result(self):
if self._exception:
raise self._exception
else:
return self._result
def add_done_callback(self, fn):
"""Attaches a callable that will be called when the future finishes.IndexError: Cannot choose from an empty sequence
This is the Copy/Paste friendly version of the traceback.
concurrent.futures.process._RemoteTraceback: """Traceback (most recent call last): File "/usr/local/python3/lib/python3.7/concurrent/futures/process.py", line 239, in _process_worker r = call_item.fn(*call_item.args, **call_item.kwargs) File "/www/wwwroot/chat.py", line 44, in do_heavy_work openai.api_key = random.choice(api_key_list) File "/usr/local/python3/lib/python3.7/random.py", line 261, in choice raise IndexError('Cannot choose from an empty sequence') from NoneIndexError: Cannot choose from an empty sequence"""The above exception was the direct cause of the following exception:Traceback (most recent call last): File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 2551, in __call__ return self.wsgi_app(environ, start_response) File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 2531, in wsgi_app response = self.handle_exception(e) File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 2528, in wsgi_app response = self.full_dispatch_request() File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/www/wwwroot/chat.py", line 39, in gen_header return str(future.result()) File "/usr/local/python3/lib/python3.7/concurrent/futures/_base.py", line 435, in result return self.__get_result() File "/usr/local/python3/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result raise self._exceptionIndexError: Cannot choose from an empty sequenceThe debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. If you enable JavaScript you can also use additional features such as code execution (if the evalex feature is enabled), automatic pasting of the exceptions and much more.Brought to you byDON'T PANIC, your friendly Werkzeug powered traceback interpreter.Console Locked
The console is locked and needs to be unlocked by entering the PIN. You can find the PIN printed out on the standard output of your shell that runs the server.
PIN:
新年红色穿搭指南,跟着学又喜庆又时髦!
红色球鞋、单品如何搭配?
Hello Everyone!这里是和你相约每周的「喵准镜」。
一晃,春节的脚步离我们越来越近啦!(抑制不住内心的激动,终于...又要放假啦!)像我身边,有很多朋友今年都是本命年,他们早就盘算着今年要买什么样的红色单品。
相信此时此刻也有不少很“牛”的朋友可以看到这篇文章吧。那你就来对啦!本期我将带给大家红色衣服和球鞋的搭配以及推荐。新年咱们一起「牛」!
相信此时此刻也有不少很“牛”的朋友可以看到这篇文章吧。那你就来对啦!本期我将带给大家红色衣服和球鞋的搭配以及推荐。新年咱们一起「牛」! 冠希哥就刚刚晒出了自己的红色穿搭(最上)。EVISU30周年牛仔裤,还有脚上的 Air Jordan 1「红丝绸」不知道啥时候能买到了。(未来十年再无丝绸???)
红色怎么搭配?
那本命年除了秋衣、秋裤、红袜子穿在身上这些不容易看见的,其实还有很多好看的红色单品可以来搭配。而且红色并没有我们印象中这么难掌控,选好单品,搭配好了,穿红色也是可以时髦的~
1、红色 + 黑色
红+黑是最不容易出错的了,All Red运动套装比起All Black来说格外独特,红色虽亮眼,但是用黑色帽衫、球鞋来中和,让这一身装扮刚刚好。
红格子上衣是最不挑人的!JK的格子也是格子,格子衬衫的格子怎么就不是格子了?
2、红色 + 白色
红+白会看起来很有气色,元气少女既视感。再利用起相同颜色的配饰来呼应,从头红到脚。
冬天里的白色毛衣总有一种不炸眼但又很抢眼的魔力,如果刚刚我说的外搭红格衬衣你觉得太炸眼,把它放在内搭里,保暖又时尚。
3、红色 + 撞色
红配绿确实是一个难度配色,但这并不代表它们就是绝缘体。恰到好处的红绿能让整身LOOK变得有韵味。
不敢尝试红+绿的,可以尝试粉色,红与粉的近色搭配,既有红色的大气又有粉色的减龄,很「情人节」Style。搭配军绿色,清新脱俗,粉+绿这个配色可以穿到春天呢!
4、红色 + 牛仔

俗话说自古红蓝出cp~任何颜色都不会和牛仔合不来,轻松打造复古穿搭,特别有腔调。
5、只穿红色球鞋
如果以上搭配你都不太能接受,但是又想沾点红色,那一双红色球鞋全能抵了,拯救一身沉闷乏味的搭配。
红色球鞋
VANS 推出的牛年限定系列,这双酒红色的Era还是很适合新年来穿的。如果你还是不敢尝试大红色,酒红可是红色中的万金油。比大红低调,有质感,也更好驾驭一些。
相比一体红色球鞋,这双米白/红色的Jordan V Low「CNY」更能让大众接受吧,红得刚刚好。
New Balance 327「Primary Pack」
Kith x New Balance 992「Kithmas」
Nike Dunk Low 「Medium Grey」
我选择了相对来说性价比较高的鞋款,当然还有很多红色配色的球鞋,你入手了哪双呢?
上衣
北面你不会还只穿1996吧?这一次THE NORTH FACE以中国元素为设计灵感,推出了全新牛年限定系列冲锋衣、卫衣等。
FENG CHEN WANG x LEVI’S® RED 先锋联名系列牛仔夹克
Supreme x THE NORTH FACE 2020秋冬系列摇粒绒外套

Nike Sportswear
配饰
过年嘛,图的就是个红红火火的气氛,如果你不喜欢红色衣服,那可以选择一些红色配饰,让红色成为你全身上下的一个“亮点”所在。
KITH x New Era
G-SHOCK GMW-B5000
Supreme x THE NORTH FACE 「Faux Fur Nuptse」系列
Shawn Stussy x DIOR 2021 牛年限定系列围巾
红色的单品千千万,用对了才最好看!总之新的一年必须要红红火火滴!
感谢你能看到这里,看完本期的红色穿搭内容,你还有哪些喜欢的红色单品?
欢迎在评论区留言,分享你的看法。
下周同一时间我会继续为大家带来有关潮流时尚穿搭的内容,敬请期待!
也请持续关注KICKSVISION!
版权声明:免责声明:本文来源网友投稿及网络整合仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。投诉邮箱:1765130767@qq.com.