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

AttributeError: 'NoneType' object has no attribute 'lower' #322

Open
olegs opened this issue Nov 30, 2022 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'lower' #322

olegs opened this issue Nov 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@olegs
Copy link
Member

olegs commented Nov 30, 2022

[2022-11-28 10:57:25,169: INFO/MainProcess] Received task: analyze_search_terms[30d0576d-e220-4a5a-9428-3b402a1933da]  
[2022-11-28 10:57:25,171: INFO/ForkPoolWorker-1] Analyzing search query
[2022-11-28 10:57:25,172: INFO/ForkPoolWorker-1] Searching 1000 most cited publications matching rat scenic
[2022-11-28 10:57:39,225: WARNING/ForkPoolWorker-3] /home/user/pysrc/papers/analyzer.py:228: PerformanceWarning: DataFrame is highly fragmented.  This is usually the result of calling `frame.insert` many times, which has poor perf
ormance.  Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()`
  self.df['x'] = tsne_embeddings_2d[:, 0]
[2022-11-28 10:57:39,226: WARNING/ForkPoolWorker-3] /home/user/pysrc/papers/analyzer.py:229: PerformanceWarning: DataFrame is highly fragmented.  This is usually the result of calling `frame.insert` many times, which has poor perf
ormance.  Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()`
  self.df['y'] = tsne_embeddings_2d[:, 1]
[2022-11-28 10:57:39,227: ERROR/ForkPoolWorker-3] Task analyze_search_paper[96584252-e074-42a7-894c-8a55fb3984ba] raised unexpected: AttributeError("'NoneType' object has no attribute 'lower'")
Traceback (most recent call last):
  File "/home/user/miniconda3/envs/pubtrends/lib/python3.10/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/user/miniconda3/envs/pubtrends/lib/python3.10/site-packages/celery/app/trace.py", line 650, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/user/pysrc/celery/tasks_main.py", line 146, in analyze_search_paper
    return _analyze_id_list(
  File "/home/user/pysrc/celery/tasks_main.py", line 120, in _analyze_id_list
    analyzer.analyze_papers(ids, query, topics, test=test, task=task)
  File "/home/user/pysrc/papers/analyzer.py", line 235, in analyze_papers
    self.progress.info(f'Extracting {topics.lower()} number of topics from papers text and graph similarity',
AttributeError: 'NoneType' object has no attribute 'lower'
@olegs olegs added the bug Something isn't working label Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant