question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: 'int' object is not subscriptable

See original GitHub issue
(myenv_name) C:\Users\USER_NAME\dask_cluster>dask-scheduler
distributed.scheduler - INFO - -----------------------------------------------
distributed.scheduler - INFO - Local Directory: C:\Users\USER_NAME\AppData\Local\Temp\scheduler-3s6ed687
distributed.scheduler - INFO - -----------------------------------------------
distributed.scheduler - INFO - Clear task state
distributed.scheduler - INFO -   Scheduler at:     tcp://1#.1#.6#.2#:8786
distributed.scheduler - INFO -   dashboard at:                     :8787
distributed.utils - ERROR - 'int' object is not subscriptable
Traceback (most recent call last):
  File "C:\Users\USER_NAME\.conda\envs\myenv_name\lib\site-packages\distributed\utils.py", line 662, in log_errors
    yield
  File "C:\Users\USER_NAME\.conda\envs\myenv_name\lib\site-packages\distributed\scheduler.py", line 1469, in add_worker
    metrics=metrics,
  File "C:\Users\USER_NAME\.conda\envs\myenv_name\lib\site-packages\distributed\scheduler.py", line 1356, in heartbeat_worker
    self.bandwidth * (1 - frac) + metrics["bandwidth"]["total"] * frac
TypeError: 'int' object is not subscriptable
distributed.core - ERROR - 'int' object is not subscriptable
Traceback (most recent call last):
  File "C:\Users\USER_NAME\.conda\envs\myenv_name\lib\site-packages\distributed\core.py", line 403, in handle_comm
    result = await result
  File "C:\Users\USER_NAME\.conda\envs\myenv_name\lib\site-packages\distributed\scheduler.py", line 1469, in add_worker
    metrics=metrics,
  File "C:\Users\USER_NAME\.conda\envs\myenv_name\lib\site-packages\distributed\scheduler.py", line 1356, in heartbeat_worker
    self.bandwidth * (1 - frac) + metrics["bandwidth"]["total"] * frac
TypeError: 'int' object is not subscriptable

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jrbourbeaucommented, Oct 26, 2021

I haven’t seen this with more recent versions of distributed. Closing for now, but we can reopen as needed

0reactions
GenevieveBuckleycommented, Oct 22, 2021

I don’t think we see this with newer versions of Dask, can someone from @dask/maintenance confirm?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: 'int' object is not subscriptable [Solved Python Error]
The Python error "TypeError: 'int' object is not subscriptable" occurs when you try to treat an integer like a subscriptable object.
Read more >
TypeError: 'int' object is not subscriptable - STechies
Python TypeError: 'int' object is not subscriptable. This error occurs when you try to use the integer type value as an array.
Read more >
Python typeerror: 'int' object is not subscriptable Solution
The “typeerror: 'int' object is not subscriptable” error is raised when you try to access an integer as if it were a subscriptable...
Read more >
Error: 'int' object is not subscriptable - Python - Stack Overflow
'int' object is not subscriptable is TypeError in Python. To better understand how this error occurs, let us consider the following example:
Read more >
TypeError: 'int' object is not subscriptable in Python | bobbyhadz
The Python "TypeError: 'int' object is not subscriptable" occurs when we try to use square brackets to access an integer at a specific...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found