Jump to content

Getting PermissionError: [Errno 13] Permission denied:


rjsayers

Recommended Posts

Hi Guys

 

Thanks for setting up mt new account. I'm working on a Python script and it is crashing with a permission error with this traceback

 

Traceback (most recent call last):
File "newtest.py", line 22, in <module>
g = Goose()
File "/usr/local/python3.6/lib/python3.6/site-packages/goose3/__init__.py", line 74, in __init__
level, path = mkstemp(dir=self.config.local_storage_path)
File "/usr/local/python3.6/lib/python3.6/tempfile.py", line 342, in mkstemp
return _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "/usr/local/python3.6/lib/python3.6/tempfile.py", line 260, in _mkstemp_inner
fd = _os.open(file, flags, 0o600)
PermissionError: [Errno 13] Permission denied: '/tmp/goose/tmp6h_vbtni'

 

The line in the script is 

g = Goose()

 

I've used to code elsewhere so it works fine but it looks like I do not have permission to create a temporary file or folder called tmp6h_vbtni (this is a guess). Do I have to do anything or is this a server configuration issue.

 

username is asayers

web address asayers.heliohost.org

script is newtest.py

 

Hope you can help. Many thanks.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...