inidun / text_analytics

Text analytic tools
3 stars 0 forks source link

Error when running PoS-statistics #11

Closed fredrik1984 closed 3 years ago

fredrik1984 commented 3 years ago

Jag får följande error när jag ska köra PoS-statistics-notebook

2021-02-18 12:55:35,616 : ERROR : Internal Python error in the inspect module. Below is the traceback from this internal error.

2021-02-18 12:55:35,623 : INFO : Unfortunately, your original traceback can not be constructed.

2021-02-18 12:55:35,635 : ERROR : Internal Python error in the inspect module. Below is the traceback from this internal error.

2021-02-18 12:55:35,645 : INFO : Unfortunately, your original traceback can not be constructed.

2021-02-18 12:55:35,668 : ERROR : Internal Python error in the inspect module. Below is the traceback from this internal error.

2021-02-18 12:55:35,683 : INFO : Unfortunately, your original traceback can not be constructed.

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3418, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 6, in gui = tokens_count_gui.create_token_count_gui( File "/usr/local/lib/python3.8/site-packages/penelope/notebook/token_counts/tokens_count_gui.py", line 252, in create_token_count_gui .setup(pipeline.CorpusConfig.list(resources_folder)) AttributeError: type object 'CorpusConfig' has no attribute 'list'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2045, in showtraceback stb = value._rendertraceback() AttributeError: 'AttributeError' object has no attribute '_rendertraceback'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1170, in get_records return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset) File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 316, in wrapped return f(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 350, in _fixed_getinnerframes records = fix_frame_records_filenames(inspect.getinnerframes(etb, context)) File "/usr/local/lib/python3.8/inspect.py", line 1503, in getinnerframes frameinfo = (tb.tb_frame,) + getframeinfo(tb, context) File "/usr/local/lib/python3.8/inspect.py", line 1461, in getframeinfo filename = getsourcefile(frame) or getfile(frame) File "/usr/local/lib/python3.8/inspect.py", line 708, in getsourcefile if getattr(getmodule(object, filename), 'loader', None) is not None: File "/usr/local/lib/python3.8/inspect.py", line 737, in getmodule file = getabsfile(object, _filename) File "/usr/local/lib/python3.8/inspect.py", line 721, in getabsfile return os.path.normcase(os.path.abspath(_filename)) File "/usr/local/lib/python3.8/posixpath.py", line 379, in abspath cwd = os.getcwd() FileNotFoundError: [Errno 2] No such file or directory ERROR! Session/line number was not unique in database. History logging moved to new session 9 Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3418, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 6, in gui = tokens_count_gui.create_token_count_gui( File "/usr/local/lib/python3.8/site-packages/penelope/notebook/token_counts/tokens_count_gui.py", line 252, in create_token_count_gui .setup(pipeline.CorpusConfig.list(resources_folder)) AttributeError: type object 'CorpusConfig' has no attribute 'list'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2045, in showtraceback stb = value._rendertraceback() AttributeError: 'AttributeError' object has no attribute '_rendertraceback'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3338, in run_ast_nodes if (await self.runcode(code, result, async=asy)): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3435, in run_code self.showtraceback(running_compiled_code=True) File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2047, in showtraceback stb = self.InteractiveTB.structured_traceback(etype, File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1436, in structured_traceback return FormattedTB.structured_traceback( File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1336, in structured_traceback return VerboseTB.structured_traceback( File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1193, in structured_traceback formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context, File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1151, in format_exception_as_a_whole last_unique, recursion_repeat = find_recursion(orig_etype, evalue, records) File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 451, in find_recursion return len(records), 0 TypeError: object of type 'NoneType' has no len()

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2045, in showtraceback stb = value._rendertraceback() AttributeError: 'TypeError' object has no attribute '_rendertraceback'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1170, in get_records return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset) File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 316, in wrapped return f(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 350, in _fixed_getinnerframes records = fix_frame_records_filenames(inspect.getinnerframes(etb, context)) File "/usr/local/lib/python3.8/inspect.py", line 1503, in getinnerframes frameinfo = (tb.tb_frame,) + getframeinfo(tb, context) File "/usr/local/lib/python3.8/inspect.py", line 1461, in getframeinfo filename = getsourcefile(frame) or getfile(frame) File "/usr/local/lib/python3.8/inspect.py", line 708, in getsourcefile if getattr(getmodule(object, filename), 'loader', None) is not None: File "/usr/local/lib/python3.8/inspect.py", line 737, in getmodule file = getabsfile(object, _filename) File "/usr/local/lib/python3.8/inspect.py", line 721, in getabsfile return os.path.normcase(os.path.abspath(_filename)) File "/usr/local/lib/python3.8/posixpath.py", line 379, in abspath cwd = os.getcwd() FileNotFoundError: [Errno 2] No such file or directory Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3418, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 6, in gui = tokens_count_gui.create_token_count_gui( File "/usr/local/lib/python3.8/site-packages/penelope/notebook/token_counts/tokens_count_gui.py", line 252, in create_token_count_gui .setup(pipeline.CorpusConfig.list(resources_folder)) AttributeError: type object 'CorpusConfig' has no attribute 'list'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2045, in showtraceback stb = value._rendertraceback() AttributeError: 'AttributeError' object has no attribute '_rendertraceback'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3338, in run_ast_nodes if (await self.runcode(code, result, async=asy)): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3435, in run_code self.showtraceback(running_compiled_code=True) File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2047, in showtraceback stb = self.InteractiveTB.structured_traceback(etype, File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1436, in structured_traceback return FormattedTB.structured_traceback( File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1336, in structured_traceback return VerboseTB.structured_traceback( File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1193, in structured_traceback formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context, File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1151, in format_exception_as_a_whole last_unique, recursion_repeat = find_recursion(orig_etype, evalue, records) File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 451, in find_recursion return len(records), 0 TypeError: object of type 'NoneType' has no len()

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2045, in showtraceback stb = value._rendertraceback() AttributeError: 'TypeError' object has no attribute '_rendertraceback'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2923, in _run_cell return runner(coro) File "/usr/local/lib/python3.8/site-packages/IPython/core/async_helpers.py", line 68, in _pseudo_sync_runner coro.send(None) File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3146, in run_cell_async has_raised = await self.run_ast_nodes(code_ast.body, cell_name, File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3357, in run_ast_nodes self.showtraceback() File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2047, in showtraceback stb = self.InteractiveTB.structured_traceback(etype, File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1436, in structured_traceback return FormattedTB.structured_traceback( File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1336, in structured_traceback return VerboseTB.structured_traceback( File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1211, in structured_traceback formatted_exceptions += self.format_exception_as_a_whole(etype, evalue, etb, lines_of_context, File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1151, in format_exception_as_a_whole last_unique, recursion_repeat = find_recursion(orig_etype, evalue, records) File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 451, in find_recursion return len(records), 0 TypeError: object of type 'NoneType' has no len()

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2045, in showtraceback stb = value._rendertraceback() AttributeError: 'TypeError' object has no attribute '_rendertraceback'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1170, in get_records return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset) File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 316, in wrapped return f(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 350, in _fixed_getinnerframes records = fix_frame_records_filenames(inspect.getinnerframes(etb, context)) File "/usr/local/lib/python3.8/inspect.py", line 1503, in getinnerframes frameinfo = (tb.tb_frame,) + getframeinfo(tb, context) File "/usr/local/lib/python3.8/inspect.py", line 1461, in getframeinfo filename = getsourcefile(frame) or getfile(frame) File "/usr/local/lib/python3.8/inspect.py", line 708, in getsourcefile if getattr(getmodule(object, filename), 'loader', None) is not None: File "/usr/local/lib/python3.8/inspect.py", line 737, in getmodule file = getabsfile(object, _filename) File "/usr/local/lib/python3.8/inspect.py", line 721, in getabsfile return os.path.normcase(os.path.abspath(_filename)) File "/usr/local/lib/python3.8/posixpath.py", line 379, in abspath cwd = os.getcwd() FileNotFoundError: [Errno 2] No such file or directory