rjsayers Posted April 19, 2018 Posted April 19, 2018 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 mkstempreturn _mkstemp_inner(dir, prefix, suffix, flags, output_type)File "/usr/local/python3.6/lib/python3.6/tempfile.py", line 260, in _mkstemp_innerfd = _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 asayersweb address asayers.heliohost.orgscript is newtest.py Hope you can help. Many thanks.
Krydos Posted April 20, 2018 Posted April 20, 2018 We recommend people use their own temporary directory like /home/asayers/tmp instead of /tmp.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now