SumoEasyMiner icon indicating copy to clipboard operation
SumoEasyMiner copied to clipboard

sumominer.py not running on ubuntu 17.04

Open yeahia2508 opened this issue 7 years ago • 11 comments

python sumominer.py command giving exception :

Traceback (most recent call last):
  File "sumominer.py", line 10, in <module>
    from main import main
  File "/home/y34h1a/Downloads/SumoEasyMiner/main.py", line 10, in <module>
    from app.QSingleApplication import QSingleApplication
  File "/home/y34h1a/Downloads/SumoEasyMiner/app/QSingleApplication.py", line 58
    except Exception, err:
	            ^
SyntaxError: invalid syntax

yeahia2508 avatar Dec 22 '17 10:12 yeahia2508

I think you need to run sumominer.py with python 2, not python 3. You can check your version by running

python --version

zausnerd avatar Dec 22 '17 15:12 zausnerd

I've run it with python2 and python 3 with the same results.

python --version Python 2.7.6

Traceback (most recent call last): File "sumominer.py", line 10, in from main import main File "/home/chase/SumoEasyMiner/main.py", line 10, in from app.QSingleApplication import QSingleApplication File "/home/chase/SumoEasyMiner/app/QSingleApplication.py", line 12, in from PySide.QtGui import QApplication ImportError: No module named PySide.QtGui

Tan-tan-san avatar Dec 26 '17 19:12 Tan-tan-san

@Tan-tan-san , that would be a different issue. The error is saying you need the PySide module. You can take a look at https://pypi.python.org/pypi/PySide, that will give you instructions on installing based on your OS.

zausnerd avatar Dec 28 '17 20:12 zausnerd

I also teseted in python 2 but same issue like before.

yeahia2508 avatar Dec 29 '17 02:12 yeahia2508

@yeahia2508 If you run python2 sumominer.py, what error do you see?

zausnerd avatar Dec 29 '17 03:12 zausnerd

i encountered this one also, even when using python2

python2 sumominer.py

Traceback (most recent call last):
  File "sumominer.py", line 10, in <module>
    from main import main
  File "/home/xx/gitprojects/SumoEasyMiner/main.py", line 10, in <module>
    from app.QSingleApplication import QSingleApplication
  File "/home/xx/gitprojects/SumoEasyMiner/app/QSingleApplication.py", line 12, in <module>
    from PySide.QtGui import QApplication
ImportError: No module named PySide.QtGui

python --version

Python 2.7.12

canteboi avatar Dec 29 '17 07:12 canteboi

  1. Using PySide for Qt bindings is a bad idea because it's officially a dead project. Use PyQt instead.

  2. Using PySide for Qt bindings is a bad idea because it's doesn't support python 3.5 and 3.6.

$ sudo pip install pyside

Collecting pyside
  Downloading PySide-1.2.4.tar.gz (9.3MB)
    100% |████████████████████████████████| 9.3MB 133kB/s
    Complete output from command python setup.py egg_info:
    only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-jd4etxjc/pyside/

$ python --version
Python 3.6.4

noraj avatar Dec 30 '17 13:12 noraj

I need step by step method to build it in ubuntu, am kind of confused

ghost avatar Feb 16 '18 08:02 ghost

This is hard to set up in linux, there is no proper guide WTF!!

pangdiin avatar Feb 20 '18 10:02 pangdiin

Everything is possible, there is a way

ghost avatar Feb 20 '18 22:02 ghost

Use apt-get to install pyside and psutil:

sudo apt-get install python-pyside python-psutil

Lastly you'll need the cryptonite_hash library. Idk why the devs didn't just use tk for the UI it's not like this UI is all that fancy and tk has better support throughout Python and is easy to install.

Moogly avatar Mar 02 '18 19:03 Moogly