Open mdpradeep opened 6 years ago
I saw this problem when I was trying to build ROS, but I didn't look at it in detail because I had lots of other issues I was trying to fix. While trying to fix those, the problem seemed to go away. However, I can't say which - if any - of the things I did actually fixed the problem.
Fro what I recall, these were the steps I took after which the problem disappeared:
I began my ROS building efforts with a fresh install of homebrew and clearing the contents of /Library/python2.7/site-packages, so I don't think there were any weird background contextual issues.
Thanks so much @sjulier. I am able to get past that stage now. But I have a new problem.
Errors << geometric_shapes:cmake /Users/pradeep/work/ros/ros-install-osx/lunar_desktop_full_ws/logs/geometric_shapes/build.cmake.000.log
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/catkin_tools/execution/executor.py", line 109, in async_job
**stage.async_execute_process_kwargs))
File "/usr/local/lib/python2.7/site-packages/trollius/tasks.py", line 259, in _step
result = coro.send(value)
File "/usr/local/lib/python2.7/site-packages/osrf_pycommon/process_utils/async_execute_process_trollius.py", line 69, in _async_execute_process_pty
stderr_master, stderr_slave = pty.openpty()
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pty.py", line 29, in openpty
master_fd, slave_name = _open_terminal()
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pty.py", line 71, in _open_terminal
raise os.error, 'out of pty devices'
OSError: out of pty devices
I did some search on this but could not figure out how to fix this issue.
Thanks again for your help.
I have the same problem. I tried increasing the number of ptys available via:
sudo sysctl -w kern.tty.ptmx_max=999
but that didn't make much difference.
Assuming the problem is that too many pseudo-terminals are left dangling because the resources aren't being cleaned up properly, I installed findutils and am currently building all of the packages one-by-one using this slightly cheesy code:
for i in gfind src -maxdepth 1 -type d -not -name '.*' -printf '%f '
;do catkin build -p1 -j1 $i;done
It takes forever to run, but I'm trying to minimise the number of sessions that get started. Still hasn't finished yet, but it hasn't crashed out either.
Thanks so much @sjulier. I was able to build and also start core. Closing this issue. Thanks again.
while it is a great workaround, this is not a real solution. I would recommend reopening this issue.
@mdpradeep Could you please share how did you get past your first issue?
I had the same problem and I found a zombie cmake process stuck in the background.
lsof | grep ^cmake -> bunch of open files
ps aux | fgrep cmake ->zombie cmake build
I killed the cmake process and then everything worked.
Reopening this issue as per request above.
@Caramelle, I was able to get past the first issue based on @sjulier suggestion -
Check the python executable. Homebrew named the executables python2 and python3. I had to set up a symbolic link from /user/local/bin/python to /user/local/bin/python2. This fixed a problem which claimed that numpy was not installed with cv_bridge.
I had the same problem. I added a python script to the shim dir to do the same thing.
This explains homebrew's rationale for having python2 and python3 executables:
https://docs.brew.sh/Homebrew-and-Python.html
I think it's to have a clear separation between system installed and homebrew installed versions of Python (which has been a nightmare in the past). Have to confess I don't have time to see if there's an elegant way to specify the python executable name.
Temporarily increase the number of available pseudo terminals in Mac OS:
sudo sysctl -w kern.tty.ptmx_max=999
I am trying to install on High Sierra and am getting the following error:
Any ideas how I can get past this ?