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

'os.path.expanduser' func create the temp dir question #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

taozywu
Copy link

@taozywu taozywu commented Nov 27, 2019

  • Fixed: Change 'os.path.expanduser' func to 'tempfile.gettempdir' func for create the temp dir.

  • Question:
    When you install with root, the normal account will be called with the following error:

Traceback (most recent call last):
  File "/usr/bin/myqr", line 9, in <module>
    load_entry_point('MyQR==2.3.1', 'console_scripts', 'myqr')()
  File "/usr/lib/python2.7/site-packages/MyQR/terminal.py", line 34, in main
    args.directory
  File "/usr/lib/python2.7/site-packages/MyQR/myqr.py", line 92, in run
    os.makedirs(tempdir)
  File "/usr/lib64/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/root/.myqr'
  • Location:
    os.path.expanduser('~'):the value i get in my Linux system is root,so i try to fix it!
    I don't know much about python, so i am not sure this is a bug!

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

Successfully merging this pull request may close these issues.

None yet

1 participant