Skip to content
This repository was archived by the owner on May 2, 2018. It is now read-only.
This repository was archived by the owner on May 2, 2018. It is now read-only.

lmh mmt permission issues #27

@aoripov

Description

@aoripov

After running lmh mmt

Traceback (most recent call last):
  File "/path/to/localmh/bin/lmh", line 13, in <module>
    main()
  File "/path/to/localmh/bin/lmh", line 10, in main
    lmh.run(sys.argv[1:])
  File "/path/to/localmh/lmh/__init__.py", line 85, in run
    if main(argv):
  File "/path/to/localmh/lmh/__init__.py", line 79, in main
    return submods[args.action].do(args, unknown)
  File "/path/to/localmh/lmh/commands/mmt/__init__.py", line 27, in do
    return run.do(arguments, unparsed)
  File "/path/to/localmh/lmh/commands/mmt/run.py", line 5, in do
    return run(unknown)
  File "/path/to/localmh/lmh/lib/mmt.py", line 21, in run
    proc = subprocess.Popen([mmt_executable] + args, stderr=subprocess.PIPE if quiet else sys.stderr, stdout=subprocess.PIPE if quiet else sys.stdout, cwd=path)
  File "/usr/lib/python3.4/subprocess.py", line 859, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.4/subprocess.py", line 1457, in _execute_child
    raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied

lmh seems to have crashed with <class 'PermissionError'>
a report will be generated in 
Error in sys.excepthook:
Traceback (most recent call last):
  File "/path/to/localmh/lmh/__init__.py", line 30, in my_excepthook
    write_file(lmh_locate("logs", time.strftime("%Y-%m-%d-%H-%M-%S.log")), s)
  File "/path/to/localmh/lmh/lib/io.py", line 163, in write_file
    text_file = open(filename, "w")
PermissionError: [Errno 13] Permission denied: '/path/to/localmh/logs/2016-02-15-16-03-37.log'

Original exception was:
Traceback (most recent call last):
  File "/path/to/localmh/bin/lmh", line 13, in <module>
    main()
  File "/path/to/localmh/bin/lmh", line 10, in main
    lmh.run(sys.argv[1:])
  File "/path/to/localmh/lmh/__init__.py", line 85, in run
    if main(argv):
  File "/path/to/localmh/lmh/__init__.py", line 79, in main
    return submods[args.action].do(args, unknown)
  File "/path/to/localmh/lmh/commands/mmt/__init__.py", line 27, in do
    return run.do(arguments, unparsed)
  File "/path/to/localmh/lmh/commands/mmt/run.py", line 5, in do
    return run(unknown)
  File "/path/to/localmh/lmh/lib/mmt.py", line 21, in run
    proc = subprocess.Popen([mmt_executable] + args, stderr=subprocess.PIPE if quiet else sys.stderr, stdout=subprocess.PIPE if quiet else sys.stdout, cwd=path)
  File "/usr/lib/python3.4/subprocess.py", line 859, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.4/subprocess.py", line 1457, in _execute_child
    raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied

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