mark2devel / mark2

Minecraft Multi Server Wrapper Written in Python with Twisted; Pull Requests HIGHLY Encouraged, Collaborators Needed Discord: https://discord.gg/zymJygHNpv
Other
208 stars 44 forks source link

Cannot run mark2 config #10

Closed JerzySpendel closed 9 years ago

JerzySpendel commented 9 years ago

When I type: python2 mark2 config I get:

Traceback (most recent call last):
  File "./mark2", line 6, in <module>
    sys.exit(main())
  File "/home/jerzy/mc/mark2/mk2/launcher.py", line 611, in main
    command.start()
  File "/home/jerzy/mc/mark2/mk2/launcher.py", line 126, in start
    self.run()
  File "/home/jerzy/mc/mark2/mk2/launcher.py", line 485, in run
    subprocess.call([editor, path_tmp])
  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 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
gsand commented 9 years ago

Where did you install it to?

Normally, one would install it to /usr/mark2 or /usr/local/share/mark2 and symlink to /usr/local/bin/mark2 so it's able to be ran using mark2 start /path/to/server or just mark2 start

https://github.com/gsand/mark2/blob/master/INSTALL.md

JerzySpendel commented 9 years ago

I didn't install it, I just went to the folder when it was clonned and typed python2 mark2 config. I also tried with installation but then if i type mark2 i get:

Traceback (most recent call last): File "/usr/bin/mark2", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3018, in working_set = WorkingSet._build_master() File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 614, in _build_master return cls._build_from_requirements(requires) File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 627, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 805, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: urwid==1.1.1

And urwid is of course installed.

barneygale commented 9 years ago

try running export EDITOR=nano first.

JerzySpendel commented 9 years ago

And what it is supposed to do?

gsand commented 9 years ago

That sets your default editor to nano.

You can also create the directory /etc/mark2 and create a blank file inside called mark2.properties

JerzySpendel commented 9 years ago

And why I should have nano as default editor? I created mark2.properties in /etc/mark2 and I while running python2 mark2 config I got:

Traceback (most recent call last): File "mark2", line 6, in sys.exit(main()) File "/home/jerzy/mc/mark2/mk2/launcher.py", line 611, in main command.start() File "/home/jerzy/mc/mark2/mk2/launcher.py", line 126, in start self.run() File "/home/jerzy/mc/mark2/mk2/launcher.py", line 485, in run subprocess.call([editor, path_tmp]) 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 1335, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

gsand commented 9 years ago

No, you are doing it all wrong...

Check out the installation instructions again. follow them closely.

JerzySpendel commented 9 years ago

What I have done wrong? I clonned repository in /home/jerzy/mc and I have now it in /home/jerzy/mc/mark2. In installation guide is said that i don't have to install it in any particular place, so I left it in this directory and I symlinked to /usr/bin/mark2 by sudo ln -s /home/jerzy/mc/mark2/mark2 /usr/bin/mark2. After symlinking INSTALL.md says nothing more, so i guess it's done. Which step of installation I described you I haven't done as I should?

gsand commented 9 years ago

Are you using ubuntu?

Try running it in the recommended location using the recommended install instructions.

edk0 commented 9 years ago

or just EDITOR=nano mark2 config