sumoprojects / SumoEasyMiner

The most easy, intuitive CPU miner for cryptonote-based cryptocurrency
Other
87 stars 64 forks source link

sumominer.py not running on ubuntu 17.04 #10

Open yeahia2508 opened 6 years ago

yeahia2508 commented 6 years ago

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
zausnerd commented 6 years ago

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

python --version
Tan-tan-san commented 6 years ago

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

zausnerd commented 6 years ago

@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.

yeahia2508 commented 6 years ago

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

zausnerd commented 6 years ago

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

canteboi commented 6 years ago

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

noraj commented 6 years ago

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
ghost commented 6 years ago

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

pangdiin commented 6 years ago

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

ghost commented 6 years ago

Everything is possible, there is a way

Moogly commented 6 years ago

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.