WSL icon indicating copy to clipboard operation
WSL copied to clipboard

python bugs (missing /dev/shm)

Open trondhindenes opened this issue 10 years ago • 12 comments

(Also posted at https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13333764-python-bugs since I have no idea which feedback channel to use)

The following python code doesn't work, since /dev/shm is unavailable on Ubuntu on Windows: from multiprocessing import Lock a = Lock()

I'm getting Errno 38 not implemented

trondhindenes avatar Apr 11 '16 17:04 trondhindenes

Same issue as reported here: #16

patryk9200 avatar Apr 12 '16 22:04 patryk9200

Thanks for reporting the issue. We recently added tmpfs mounts for run (e.g. /run, /run/lock, /run/user, and /run/shm) with permissions that match native Ubuntu. This change should be out for insiders soon.

Locally I was able to confirm the issue above was resolved after the fix.

stehufntdev avatar Apr 14 '16 20:04 stehufntdev

Thanks @stehufntdev - my goal was to run Ansible under WSL, and this was the first snag(so I have no idea if there's other missing pieces as well). There's a growing community of people using Ansible for Windows management, and having Ansible working under WSL would give us a tremendous productivity boost when coding. Testing it is as easy as git clone + source + execute (http://docs.ansible.com/ansible/intro_installation.html#running-from-source) so if you guys are operating with some kind of "compatability list", a lot of enthusiastic devs would appreciate it if Ansible was added to it.

trondhindenes avatar Apr 14 '16 21:04 trondhindenes

Appreciate the additional details, https://github.com/Microsoft/BashOnWindows/issues/115, was also for Ansible. With these changes I can run the binary to print the version but there may be other snags as you mentioned.

To get Ansible on our priority list can you add it to our UserVoice https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash page? Thanks again for trying out WSL!

stehufntdev avatar Apr 14 '16 21:04 stehufntdev

fyi, the problem remains on the build that was released today.

trondhindenes avatar Apr 22 '16 18:04 trondhindenes

Yes, unfortunately that is expected since the fix didn't make the cutoff for the insider build. We published the release notes for the build the most recent insider build here - https://msdn.microsoft.com/en-us/commandline/wsl/release_notes.

stehufntdev avatar Apr 22 '16 19:04 stehufntdev

I tried this combination again with Build 14342. I looked good working.

tksarah avatar May 13 '16 00:05 tksarah

Great to hear, thanks for the confirmation!

stehufntdev avatar May 13 '16 04:05 stehufntdev

I agree, closing the issue. And thanks!

trondhindenes avatar May 13 '16 14:05 trondhindenes

With the python snippet at the very top of this issue i see no error but by simply starting gvim (gvim:2262): Gdk-WARNING **: shmget failed: error 38 (Function not implemented) is shown What could be wrong here?

fehrin avatar Aug 30 '16 13:08 fehrin

It seems only Posix shared memory is supported while shmget is System V.

fehrin avatar Aug 30 '16 13:08 fehrin

@fehrin - Thanks for trying out WSL and providing feedback! Unfortunately, shmget syscall is currently not implemented in WSL. Please use the user voice page to provide feedback so that we can prioritize the scenario in future.

sunilmut avatar Aug 30 '16 18:08 sunilmut