Traceback (most recent call last):


 "/home/wes/PycharmProjects/poker/language.py", line 17, in <module>

(en.numpy() for pt, en in train_examples), target_vocab_size=2**13)


 "/home/wes/PycharmProjects/poker/venv/lib/python3.6/site-packages/tensorflow_datasets/core/features/text/subword_text_encoder.py", line 293, in build_from_corpus

reserved_tokens=reserved_tokens)


 "/home/wes/PycharmProjects/poker/venv/lib/python3.6/site-packages/tensorflow_datasets/core/features/text/subword_text_encoder.py", line 395, in _token_counts_from_generator

for s in generator:


 "/home/wes/PycharmProjects/poker/language.py", line 17, in <genexpr>

(en.numpy() for pt, en in train_examples), target_vocab_size=2**13)
AttributeError: 'str' object has no attribute 'numpy'

Traceback (most recent call last):


 "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 56, in application

response = frappe.handler.handle()


 "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 19, in handle

execute_cmd(cmd)


 "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 42, in execute_cmd

ret = frappe.call(method, **frappe.form_dict)


 "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 903, in call

return fn(*args, **newargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/desk/query_report.py", line 93, in run

res = frappe.get_attr(method_name)(frappe._dict(filters))


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/report/profitability_analysis/profitability_analysis.py", line 14, in execute

based_on = filters.based_on.replace(' ', '_').lower()
AttributeError: 'NoneType' object has no attribute 'replace'
