Skip to content

python bugs (missing /dev/shm) #135

Closed

Description

(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

Activity

  1. patryk9200 commented on Apr 12, 2016

    @patryk9200

    Same issue as reported here: #16

  2. stehufntdev commented on Apr 14, 2016

    @stehufntdev

    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.

  3. trondhindenes commented on Apr 14, 2016

    @trondhindenes
    Author

    Thanks Stephen Hufnagel (@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.

  4. stehufntdev commented on Apr 14, 2016

    @stehufntdev

    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!

  5. trondhindenes commented on Apr 22, 2016

    @trondhindenes
    Author

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

  6. stehufntdev commented on Apr 22, 2016

    @stehufntdev

    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.

  7. tksarah commented on May 13, 2016

    @tksarah

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

  8. stehufntdev commented on May 13, 2016

    @stehufntdev

    Great to hear, thanks for the confirmation!

  9. trondhindenes commented on May 13, 2016

    @trondhindenes
    Author

    I agree, closing the issue. And thanks!

  10. fehrin commented on Aug 30, 2016

    @fehrin

    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?

  11. fehrin commented on Aug 30, 2016

    @fehrin

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

  12. sunilmut commented on Aug 30, 2016

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions