Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python bugs (missing /dev/shm) #135

Closed
trondhindenes opened this issue Apr 11, 2016 · 12 comments
Closed

python bugs (missing /dev/shm) #135

trondhindenes opened this issue Apr 11, 2016 · 12 comments

Comments

@trondhindenes
Copy link

(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

@patryk9200
Copy link

Same issue as reported here: #16

@stehufntdev
Copy link
Collaborator

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.

@trondhindenes
Copy link
Author

trondhindenes commented Apr 14, 2016

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.

@stehufntdev
Copy link
Collaborator

Appreciate the additional details, #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!

@trondhindenes
Copy link
Author

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

@stehufntdev
Copy link
Collaborator

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.

@tksarah
Copy link

tksarah commented May 13, 2016

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

@stehufntdev
Copy link
Collaborator

Great to hear, thanks for the confirmation!

@trondhindenes
Copy link
Author

I agree, closing the issue. And thanks!

@fehrin
Copy link

fehrin commented Aug 30, 2016

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
Copy link

fehrin commented Aug 30, 2016

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

@sunilmut
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants