narc0tiq / factorio-updater

Factorio update helper for headless servers
MIT License
245 stars 48 forks source link

ubuntu 18 error #44

Closed Goten87 closed 6 years ago

Goten87 commented 6 years ago

Getting a error on ubuntu 18

sudo service factorio update
Checking for updates...
Traceback (most recent call last):
  File "/opt/factorio-updater/update_factorio.py", line 4, in <module>
    import os, posixpath, requests, re, sys
ImportError: No module named requests
Update check failed!

and yes i have requests downloaded

narc0tiq commented 6 years ago

and yes i have requests downloaded

Well, your Python can't find it:

ImportError: No module named requests

It could be that:

I haven't looked at Bisa's init script (which you are clearly using) in ages, so I don't know whether it picks a specific version of Python or just lets the #! operate.

Goten87 commented 6 years ago

if i do python --version it results Python 2.7.15rc1 i did pip and the pip3 one as well and it still not finding it

the top of my update script was #!/usr/bin/env python2 changed that to #!/usr/bin/env python3 and its still not working

narc0tiq commented 6 years ago

Then your machine is broken in some way, and I can't help you. The updater works just fine for me, but I'm still using Ubuntu 16.04. Good luck fixing it.

Goten87 commented 6 years ago

what do you use then insted of bisa's init script is there somthing new and beter ?

narc0tiq commented 6 years ago

I don't use an init script at all -- I don't want my Factorio to start automatically. I do run mine in a tmux so I don't have to maintain an SSH session, but that's the extent of it.