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

PermissionError: [Errno 13] Permission denied when running python-jl #226

Open
Seanny123 opened this issue Nov 23, 2018 · 4 comments
Open

Comments

@Seanny123
Copy link

Trying to get around the module import error discussed in #185 using Ubuntu on the Windows Linux Subsytem. However, when I run python-jl I'm getting the error:

Traceback (most recent call last):
  File "/home/mr_bo/.local/bin/python-jl", line 11, in <module>
    sys.exit(main())
  File "/home/mr_bo/.local/lib/python3.6/site-packages/julia/python_jl.py", line 117, in main
    os.execvp(julia, [julia, "-e", script_jl, "--"] + unused_args)
  File "/usr/lib/python3.6/os.py", line 559, in execvp
    _execvpe(file, args)
  File "/usr/lib/python3.6/os.py", line 603, in _execvpe
    raise saved_exc.with_traceback(saved_tb)
  File "/usr/lib/python3.6/os.py", line 594, in _execvpe
    exec_func(fullname, *argrest)
PermissionError: [Errno 13] Permission denied

I'm really unclear about what's causing this. When I do ls -ls ~/src/julia-1.0.2/bin/julia I get 48 -rwxr-xr-x 1 mr_bo mr_bo 47296 Nov 8 16:16 /home/mr_bo/src/julia-1.0.2/bin/julia which leads me to believe everything should be fine? Should I change the user and the group to something else?

@tkf
Copy link
Member

tkf commented Nov 23, 2018

Hmmm... Do you have julia in the PATH? What happens when you do python-jl --julia ~/src/julia-1.0.2/bin/julia?

@Seanny123
Copy link
Author

Yep, it wasn't in my path, despite that importance being noted at the beginning of the README. Would it be sensible to add this to the "Troubleshooting" section of the README? I'll make a PR if you think it's helpful.

@tkf
Copy link
Member

tkf commented Nov 23, 2018

Did it work when you added julia to PATH? We've never tested it in WSL so that's a good news if so.

Would it be sensible to add this to the "Troubleshooting" section of the README?

I think it's already mentioned in Installation section. Generally I think it's better to have a better error message including some instructions. Sometimes you can't (e.g., when Python segfaults) but here we can catch the exception.

@Seanny123
Copy link
Author

Sounds good. I'll make a PR today.

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

2 participants