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

sudo apt-get update && sudo apt-get upgrade MARK2 sending ERRORS! #64

Closed
TomLewis opened this issue Aug 25, 2016 · 11 comments
Closed

sudo apt-get update && sudo apt-get upgrade MARK2 sending ERRORS! #64

TomLewis opened this issue Aug 25, 2016 · 11 comments

Comments

@TomLewis
Copy link

as soon as I saw twisted pop up on the update to debian, I just knew mark2 would break.
mark2 start:
2016-08-25 13:04:00 # starting piratecraft Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred result = f(*args, **kw) File "/home/tom/mark2/mk2/services/process.py", line 107, in server_starting self.stat_process.start(self.parent.config['java.ps.interval']) File "/usr/lib/python2.7/dist-packages/twisted/internet/task.py", line 194, in start self() File "/usr/lib/python2.7/dist-packages/twisted/internet/task.py", line 239, in __call__ d = defer.maybeDeferred(self.f, *self.a, **self.kw) --- <exception caught here> --- File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred result = f(*args, **kw) File "/home/tom/mark2/mk2/services/process.py", line 165, in update_stat except psutil.error.NoSuchProcess: exceptions.AttributeError: 'module' object has no attribute 'error'

and again:
tom@ns501023:~/piratecraft/survival$ mark2 start 2016-08-25 13:04:31 # mark2 starting... 2016-08-25 13:04:31 # starting survival Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred result = f(*args, **kw) File "/home/tom/mark2/mk2/services/process.py", line 107, in server_starting self.stat_process.start(self.parent.config['java.ps.interval']) File "/usr/lib/python2.7/dist-packages/twisted/internet/task.py", line 194, in start self() File "/usr/lib/python2.7/dist-packages/twisted/internet/task.py", line 239, in __call__ d = defer.maybeDeferred(self.f, *self.a, **self.kw) --- <exception caught here> --- File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred result = f(*args, **kw) File "/home/tom/mark2/mk2/services/process.py", line 165, in update_stat except psutil.error.NoSuchProcess: exceptions.AttributeError: 'module' object has no attribute 'error'
when I attach to a server, CPU is broken, mem is broken, I just hope this wont crash the server.

@Trikolon
Copy link

Same issue here. Ubuntu Server 16.04

@gsand
Copy link
Collaborator

gsand commented Sep 4, 2016

I'm on mobile, will fix tonight.

@TomLewis
Copy link
Author

@gsand any luck? I did a git pull today, but it still exists.

@gsand
Copy link
Collaborator

gsand commented Sep 11, 2016

Haven't had time, I'm very busy IRL. Sorry about that.

@TomLewis
Copy link
Author

No sweat man

On Sun, 11 Sep 2016, 21:37 g sand, notifications@github.com wrote:

Haven't had time, I'm very busy IRL. Sorry about that.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#64 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAIyrrnZC3KfZlfgTljLCY9ka-Nz0OO_ks5qpGZsgaJpZM4Js_vv
.

@gsand
Copy link
Collaborator

gsand commented Sep 11, 2016

I'm running an ubuntu virtual machine and I'm unable to reproduce it, Will start all over in a bit. :(

@gsand
Copy link
Collaborator

gsand commented Sep 11, 2016

Hey fellas.

sudo apt-get remove python-feedparser python-psutil python-twisted-core python-twisted-mail python-twisted-web python-twisted-words python-urwid

Then

cd /usr/mark2

Then

pip install -r requirements.txt

Should work. 😆

@Trikolon
Copy link

Make sure to only run

sudo apt-get remove python-feedparser python-psutil python-twisted-core python-twisted-mail python-twisted-web python-twisted-words python-urwid

if you don't have any packages like 'letsencrypt' depending on it.
Installing the dependencies from the requirements.txt file did not work for me. I've installed the latest version of each python package manually. Everything seems to work now (no error messages). Thank you!

@TomLewis
Copy link
Author

Im glad I tried this on my test server where I use Tmux...
It completely failed.

Every package threw a "failed" at me, heres a snippety from one of the failed messages:

` ----------------------------------------
Failed building wheel for Twisted
Running setup.py clean for Twisted
Running setup.py bdist_wheel for urwid ... done
Stored in directory: /root/.cache/pip/wheels/e7/bb/9d/d7f7fcc9b3aeae20cf4685667635002415629e6395ff2dda7d
Running setup.py bdist_wheel for cryptography ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-hascox/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /tmp/tmpSPWevApip-wheel- --python-tag cp27:
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory

  No working compiler found, or bogus compiler options
  passed to the compiler from Python's distutils module.
  See the error messages above.
  (If they are about -mno-fused-madd and you are on OS/X 10.8,
  see http://stackoverflow.com/questions/22313407/ .)

Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-hascox/cryptography/setup.py", line 334, in
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 262, in init
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 287, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 631, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 874, in best_match
return self.obtain(req, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 886, in obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 338, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 636, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 666, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 856, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1078, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1066, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with 1`

@TomLewis
Copy link
Author

TomLewis commented Dec 24, 2016

I took another look at this, and in the end figured it out to be needing to install these things;

sudo pip install -U pip

sudo apt-get install build-essential libssl-dev libffi-dev python-dev

Not sure if I need them all, but that seemed to work.

@Column01 Column01 mentioned this issue Jul 11, 2021
@Column01
Copy link
Collaborator

Should be fixed with python 3 port with a reinstall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants