You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running Ray in a Docker container, I can run python test/runtest.py but when I try to actually write code, I am getting IOError as follow:
>>>importray>>>ray.init(num_workers=1)
1932:M24Mar22:20:50.149# WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.1932:M24Mar22:20:50.149# Server started, Redis version 3.9.1021932:M24Mar22:20:50.149# WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.1932:M24Mar22:20:50.149# WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.Waitingforredisserverat127.0.0.1:54264torespond...
Warning: Reducingobjectstorememorybecause/dev/shmhasonly536870912bytesavailable. Youmaybeabletofreeupspacebydeletingfilesin/dev/shm. IfyouareinsideaDockercontainer, youmayneedtopassanargumentwiththeflag'--shm-size'to'docker run'.
[INFO] (/ray/src/plasma/plasma_store.cc:908) AllowingthePlasmastoretouseupto0.43GBofmemory.
[INFO] (/ray/src/local_scheduler/local_scheduler.cc:242) Startedworkerwithpid1946NotstartingthewebUIbecausethewebUIrequiresPython3.
{'object_store_addresses': [ObjectStoreAddress(name='/tmp/plasma_store11252270', manager_name='/tmp/plasma_manager19950947', manager_port=14602)], 'redis_address': '127.0.0.1:54264', 'local_scheduler_socket_names': ['/tmp/scheduler11107798'], 'node_ip_address': '127.0.0.1'}
>>>>>> @ray.remote
... deff(x):
... returnx
...
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"/opt/conda/lib/python2.7/site-packages/ray-0.0.1-py2.7.egg/ray/worker.py", line2104, inremotereturnmake_remote_decorator(num_return_vals, num_cpus, num_gpus)(args[0])
File"/opt/conda/lib/python2.7/site-packages/ray-0.0.1-py2.7.egg/ray/worker.py", line2014, inremote_decoratorfunction_id_hash.update(inspect.getsource(func).encode("ascii"))
File"/opt/conda/lib/python2.7/inspect.py", line701, ingetsourcelines, lnum=getsourcelines(object)
File"/opt/conda/lib/python2.7/inspect.py", line690, ingetsourcelineslines, lnum=findsource(object)
File"/opt/conda/lib/python2.7/inspect.py", line538, infindsourceraiseIOError('could not get source code')
IOError: couldnotgetsourcecode
Maybe there is something wrong with my env or I did something stupid during setup and I will retry from scratch but if by chance the error is familiar and you can provide a pointer, that is very much appreciated.
The text was updated successfully, but these errors were encountered:
Ah this is a bug #349. I'll fix this (I'm a bit surprised we haven't run into this more).
As a quick work around, it should work inside of ipython. E.g., do pip install ipython and then start up ipython at the command line, and then try the same sequence of commands.
Hi,
I am running Ray in a Docker container, I can run python test/runtest.py but when I try to actually write code, I am getting IOError as follow:
Maybe there is something wrong with my env or I did something stupid during setup and I will retry from scratch but if by chance the error is familiar and you can provide a pointer, that is very much appreciated.
The text was updated successfully, but these errors were encountered: