Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

No such file or directory #156

Closed
aaomidi opened this issue May 26, 2014 · 2 comments
Closed

No such file or directory #156

aaomidi opened this issue May 26, 2014 · 2 comments

Comments

@aaomidi
Copy link

aaomidi commented May 26, 2014

root@mc-0 [/mc/mark2]# mark2 config
Traceback (most recent call last):
File "/usr/bin/mark2", line 6, in
sys.exit(main())
File "/mc/mark2/mk2/launcher.py", line 610, in main
command.start()
File "/mc/mark2/mk2/launcher.py", line 126, in start
self.run()
File "/mc/mark2/mk2/launcher.py", line 469, in run
if self.check_executable(editor):
File "/mc/mark2/mk2/launcher.py", line 414, in check_executable
stderr=subprocess.PIPE
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(_popenargs, *_kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

Running Ubuntu 14.04

Edit: I was able to set it up by using per server config and making a fake configuration file in /etc/mark2
with the command:

sudo touch /etc/mark2/mark2.properties

A good guide: https://gist.github.com/vemacs/5663144

I would still like to know the reason for mark2 config erroring like that.

Edit 2: Looks like the new commit has a problem with reading the files! Thanks for @shepherdjerred for pointing me out to a file version thats actually working!
https://github.com/mcdevs/mark2/blob/23d61ab5e129ecd5e5e205caaf383629c4abb0df/mk2/launcher.py

@shepherdjerred
Copy link

I've found that the latest commit to the launcher.py causes this issue, using the version from July 16th and this error no longer occurs. Using Ubuntu 14.04 as well.

Link to older version of launcher.py: https://github.com/mcdevs/mark2/blob/23d61ab5e129ecd5e5e205caaf383629c4abb0df/mk2/launcher.py

@aaomidi
Copy link
Author

aaomidi commented May 29, 2014

Thank you, this helped!

@aaomidi aaomidi closed this as completed Mar 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants