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.

Simple task raises OSError and addresses should be strings or tuples

See original GitHub issue

I’ve created functions and submitted them to the dask client on my work machine without a problem. Similar code on my home machine results in behavior or errors I don’t understand. Both machines have 6+ cores and use Windows 10, Anaconda Python 3.7 64 bit, and PyCharm. For example, this code:

from distributed import Client, wait
from random import randint

def dask_task(num_nodes):
	ids = {}
	for n in range(num_nodes):
		this_id = "V" + str(randint(0, 1000))
		ids[n] = this_id
	return ids


dask_client = Client(processes=False)
result = {}
for task_num in range(5):
	result[task_num] = dask_client.submit(dask_task, 100)
wait(result)
dask_client.close()

Results in a dictionary of cancelled futures:

result
{0: <Future: cancelled, type: builtins.dict, key: dask_task-7a742226fc2608487c29a8e88eace65c>, 1: <Future: cancelled, type: builtins.dict, key: dask_task-7a742226fc2608487c29a8e88eace65c>, 2: <Future: cancelled, type: builtins.dict, key: dask_task-7a742226fc2608487c29a8e88eace65c>, 3: <Future: cancelled, type: builtins.dict, key: dask_task-7a742226fc2608487c29a8e88eace65c>, 4: <Future: cancelled, type: builtins.dict, key: dask_task-7a742226fc2608487c29a8e88eace65c>}

Running the code with Client() instead of Client(processes=False) throws a long trace, which looks like a path error or bad character (OSError: [Errno 22] Invalid argument) but I’ve never encountered it before in this project.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 105, in spawn_main
    exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 114, in _main
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 225, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
    run_name="__mp_main__")
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 261, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 231, in _get_code_from_file
    with open(fname, "rb") as f:
OSError: [Errno 22] Invalid argument: 'D:\\projects\\Programming\\Emergent_Interactive_Fiction\\<input>'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 105, in spawn_main
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 114, in _main
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 105, in spawn_main
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 105, in spawn_main
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 225, in prepare
    exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 114, in _main
    _fixup_main_from_path(data['init_main_from_path'])    
exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 114, in _main
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 225, in prepare
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 225, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
    run_name="__mp_main__")
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 261, in run_path
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
    code, fname = _get_code_from_file(run_name, path_name)    run_name="__mp_main__")
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 231, in _get_code_from_file
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 261, in run_path
    run_name="__mp_main__")
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 261, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
    with open(fname, "rb") as f:  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 231, in _get_code_from_file
OSError: [Errno 22] Invalid argument: 'D:\\projects\\Programming\\Emergent_Interactive_Fiction\\<input>'
    code, fname = _get_code_from_file(run_name, path_name)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 231, in _get_code_from_file
    with open(fname, "rb") as f:
OSError: [Errno 22] Invalid argument: 'D:\\projects\\Programming\\Emergent_Interactive_Fiction\\<input>'
    with open(fname, "rb") as f:
OSError: [Errno 22] Invalid argument: 'D:\\projects\\Programming\\Emergent_Interactive_Fiction\\<input>'
distributed.utils - ERROR - addresses should be strings or tuples, got None
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\utils.py", line 662, in log_errors
    yield
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 2122, in remove_worker
    address = self.coerce_address(address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 4831, in coerce_address
    raise TypeError("addresses should be strings or tuples, got %r" % (addr,))
TypeError: addresses should be strings or tuples, got None
distributed.core - ERROR - addresses should be strings or tuples, got None
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 408, in handle_comm
    result = handler(comm, **msg)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 2122, in remove_worker
    address = self.coerce_address(address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 4831, in coerce_address
    raise TypeError("addresses should be strings or tuples, got %r" % (addr,))
TypeError: addresses should be strings or tuples, got None
tornado.application - ERROR - Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOLoop object at 0x000001E4C23E27C8>>, <Task finished coro=<Nanny._on_exit() done, defined at C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\nanny.py:396> exception=TypeError('addresses should be strings or tuples, got None')>)
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\tornado\ioloop.py", line 743, in _run_callback
    ret = callback()
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\tornado\ioloop.py", line 767, in _discard_future_result
    future.result()
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\nanny.py", line 399, in _on_exit
    await self.scheduler.unregister(address=self.worker_address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 757, in send_recv_from_rpc
    result = await send_recv(comm=comm, op=key, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 556, in send_recv
    raise exc.with_traceback(tb)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 408, in handle_comm
    result = handler(comm, **msg)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 2122, in remove_worker
    address = self.coerce_address(address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 4831, in coerce_address
    raise TypeError("addresses should be strings or tuples, got %r" % (addr,))
TypeError: addresses should be strings or tuples, got None
distributed.utils - ERROR - addresses should be strings or tuples, got None
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\utils.py", line 662, in log_errors
    yield
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 2122, in remove_worker
    address = self.coerce_address(address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 4831, in coerce_address
    raise TypeError("addresses should be strings or tuples, got %r" % (addr,))
TypeError: addresses should be strings or tuples, got None
distributed.core - ERROR - addresses should be strings or tuples, got None
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 408, in handle_comm
    result = handler(comm, **msg)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 2122, in remove_worker
    address = self.coerce_address(address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 4831, in coerce_address
    raise TypeError("addresses should be strings or tuples, got %r" % (addr,))
TypeError: addresses should be strings or tuples, got None
distributed.utils - ERROR - addresses should be strings or tuples, got None
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\utils.py", line 662, in log_errors
    yield
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 2122, in remove_worker
    address = self.coerce_address(address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 4831, in coerce_address
    raise TypeError("addresses should be strings or tuples, got %r" % (addr,))
TypeError: addresses should be strings or tuples, got None
distributed.core - ERROR - addresses should be strings or tuples, got None
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 408, in handle_comm
    result = handler(comm, **msg)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 2122, in remove_worker
    address = self.coerce_address(address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 4831, in coerce_address
    raise TypeError("addresses should be strings or tuples, got %r" % (addr,))
TypeError: addresses should be strings or tuples, got None
distributed.utils - ERROR - addresses should be strings or tuples, got None
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\utils.py", line 662, in log_errors
    yield
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 2122, in remove_worker
    address = self.coerce_address(address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 4831, in coerce_address
    raise TypeError("addresses should be strings or tuples, got %r" % (addr,))
TypeError: addresses should be strings or tuples, got None
distributed.core - ERROR - addresses should be strings or tuples, got None
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 408, in handle_comm
    result = handler(comm, **msg)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 2122, in remove_worker
    address = self.coerce_address(address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 4831, in coerce_address
    raise TypeError("addresses should be strings or tuples, got %r" % (addr,))
TypeError: addresses should be strings or tuples, got None
tornado.application - ERROR - Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOLoop object at 0x000001E4C23E27C8>>, <Task finished coro=<Nanny._on_exit() done, defined at C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\nanny.py:396> exception=TypeError('addresses should be strings or tuples, got None')>)
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\tornado\ioloop.py", line 743, in _run_callback
    ret = callback()
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\tornado\ioloop.py", line 767, in _discard_future_result
    future.result()
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\nanny.py", line 399, in _on_exit
    await self.scheduler.unregister(address=self.worker_address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 757, in send_recv_from_rpc
    result = await send_recv(comm=comm, op=key, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 556, in send_recv
    raise exc.with_traceback(tb)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 408, in handle_comm
    result = handler(comm, **msg)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 2122, in remove_worker
    address = self.coerce_address(address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 4831, in coerce_address
    raise TypeError("addresses should be strings or tuples, got %r" % (addr,))
TypeError: addresses should be strings or tuples, got None
tornado.application - ERROR - Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOLoop object at 0x000001E4C23E27C8>>, <Task finished coro=<Nanny._on_exit() done, defined at C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\nanny.py:396> exception=TypeError('addresses should be strings or tuples, got None')>)
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\tornado\ioloop.py", line 743, in _run_callback
    ret = callback()
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\tornado\ioloop.py", line 767, in _discard_future_result
    future.result()
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\nanny.py", line 399, in _on_exit
    await self.scheduler.unregister(address=self.worker_address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 757, in send_recv_from_rpc
    result = await send_recv(comm=comm, op=key, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 556, in send_recv
    raise exc.with_traceback(tb)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 408, in handle_comm
    result = handler(comm, **msg)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 2122, in remove_worker
    address = self.coerce_address(address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 4831, in coerce_address
    raise TypeError("addresses should be strings or tuples, got %r" % (addr,))
TypeError: addresses should be strings or tuples, got None
tornado.application - ERROR - Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOLoop object at 0x000001E4C23E27C8>>, <Task finished coro=<Nanny._on_exit() done, defined at C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\nanny.py:396> exception=TypeError('addresses should be strings or tuples, got None')>)
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\tornado\ioloop.py", line 743, in _run_callback
    ret = callback()
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\tornado\ioloop.py", line 767, in _discard_future_result
    future.result()
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\nanny.py", line 399, in _on_exit
    await self.scheduler.unregister(address=self.worker_address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 757, in send_recv_from_rpc
    result = await send_recv(comm=comm, op=key, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 556, in send_recv
    raise exc.with_traceback(tb)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\core.py", line 408, in handle_comm
    result = handler(comm, **msg)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 2122, in remove_worker
    address = self.coerce_address(address)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\site-packages\distributed\scheduler.py", line 4831, in coerce_address
    raise TypeError("addresses should be strings or tuples, got %r" % (addr,))
TypeError: addresses should be strings or tuples, got None
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 105, in spawn_main
    exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 114, in _main
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 225, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
    run_name="__mp_main__")
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 261, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 231, in _get_code_from_file
    with open(fname, "rb") as f:
OSError: [Errno 22] Invalid argument: 'D:\\projects\\Programming\\Emergent_Interactive_Fiction\\<input>'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 105, in spawn_main
    exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 114, in _main
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 225, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
    run_name="__mp_main__")
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 261, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 231, in _get_code_from_file
    with open(fname, "rb") as f:
OSError: [Errno 22] Invalid argument: 'D:\\projects\\Programming\\Emergent_Interactive_Fiction\\<input>'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 105, in spawn_main
    exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 114, in _main
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 225, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
    run_name="__mp_main__")
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 261, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 231, in _get_code_from_file
    with open(fname, "rb") as f:
OSError: [Errno 22] Invalid argument: 'D:\\projects\\Programming\\Emergent_Interactive_Fiction\\<input>'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 105, in spawn_main
    exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 114, in _main
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 225, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
    run_name="__mp_main__")
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 261, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 231, in _get_code_from_file
    with open(fname, "rb") as f:
OSError: [Errno 22] Invalid argument: 'D:\\projects\\Programming\\Emergent_Interactive_Fiction\\<input>'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 105, in spawn_main
    exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 114, in _main
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 225, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
    run_name="__mp_main__")
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 261, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 231, in _get_code_from_file
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    with open(fname, "rb") as f:
OSError: [Errno 22] Invalid argument: 'D:\\projects\\Programming\\Emergent_Interactive_Fiction\\<input>'
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 105, in spawn_main
    exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 114, in _main
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 225, in prepare
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 105, in spawn_main
    run_name="__mp_main__")
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 261, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 231, in _get_code_from_file
    exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 114, in _main
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 105, in spawn_main
    with open(fname, "rb") as f:
OSError: [Errno 22] Invalid argument: 'D:\\projects\\Programming\\Emergent_Interactive_Fiction\\<input>'
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 225, in prepare
    exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 114, in _main
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 225, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
    run_name="__mp_main__")
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 261, in run_path
    run_name="__mp_main__")
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 261, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 231, in _get_code_from_file
    code, fname = _get_code_from_file(run_name, path_name)
  File "C:\ProgramData\Anaconda3\envs\fiction\lib\runpy.py", line 231, in _get_code_from_file
    with open(fname, "rb") as f:
OSError: [Errno 22] Invalid argument: 'D:\\projects\\Programming\\Emergent_Interactive_Fiction\\<input>'
    with open(fname, "rb") as f:
OSError: [Errno 22] Invalid argument: 'D:\\projects\\Programming\\Emergent_Interactive_Fiction\\<input>'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
SultanOrazbayevcommented, Feb 11, 2020

FWIW, I’m experiencing the same problem when running dask in a Jupyter Lab session (running a notebook) on a SLURM cluster.

0reactions
CMCDragonkaicommented, Oct 13, 2020

@CMCDragonkai I’m more asking how does this error:

raise TypeError("addresses should be strings or tuples, got %r" % (addr,))

Occur?

There’s no addresses that I’m aware of here.

If you could explain what exactly is this address that it’s complaining about? It looks like a small type error somewhere that I can investigate further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source code for distributed.scheduler
[docs]class TaskState: """A simple object holding information about a task. Not to be confused with :class:`distributed.worker_state_machine.
Read more >
How to properly ignore exceptions - python - Stack Overflow
It will give the error "TypeError: coercing to Unicode: need string or buffer, int found" - you probably don't want to ignore that,...
Read more >
multiprocessing — Process-based parallelism — Python 3.11 ...
This module does not work or is not available on WebAssembly platforms ... of the process will not be terminated – they will...
Read more >
Tasks — Celery 5.2.7 documentation
A list/tuple of exception classes. If any of these exceptions are raised during the execution of the task, the task will automatically be...
Read more >
Socket Programming in Python (Guide)
The server will simply echo whatever it receives back to the client. ... errors related to socket or address semantics raise OSError or...
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