trinity icon indicating copy to clipboard operation
trinity copied to clipboard

python3 runserver.py & (OSError: [WinError 193] %1 is not a valid Win32 application)

Open malcolmturnballs opened this issue 7 years ago • 3 comments

Hi all,

Trying to run a node on the TestNet using Windows and came across this error with runserver.py.

Has anyone encountered this issue and know of a way around it? Some googling suggested it might be related to python 32bit being incompatible with something that's 64bit or visa-versa.

Any help will be appreciated!

c:\Neo\trinity-master\src\NodeB>python runserver.py & Traceback (most recent call last): File "runserver.py", line 1, in from NodeB.app.app import app File "C:\Neo\trinity-master\src\NodeB\app\app.py", line 43, in from .controller import * File "C:\Neo\trinity-master\src\NodeB\app\controller.py", line 4, in from NodeB import service File "C:\Neo\trinity-master\src\NodeB\service.py", line 4, in from NodeB.utils import createMultiSigAddress, ToScriptHash, int_to_hex, con struct_opdata, privtkey_sign, hex_reverse,
File "C:\Neo\trinity-master\src\NodeB\utils.py", line 6, in from neocore.KeyPair import KeyPair File "C:\Python\Python36-32\lib\site-packages\neocore\KeyPair.py", line 4, in import scrypt File "C:\Python\Python36-32\lib\site-packages\scrypt.py", line 11, in

_scrypt = cdll.LoadLibrary(imp.find_module('_scrypt')[1])

File "C:\Python\Python36-32\lib\ctypes_init_.py", line 426, in LoadLibrary return self.dlltype(name) File "C:\Python\Python36-32\lib\ctypes_init.py", line 348, in init self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 is not a valid Win32 application

malcolmturnballs avatar Mar 11 '18 16:03 malcolmturnballs

Maybe you can try install the win32.whl , more information https://pypi.python.org/pypi/scrypt/

pigxo avatar Mar 12 '18 06:03 pigxo

Thanks, pigxo.

I installed the .whl file and still received the same error.

malcolmturnballs avatar Mar 12 '18 10:03 malcolmturnballs

File "C:\Neo\trinity-master\src\NodeB\app\app.py", line 43, in from .controller import *

if i exclude this line from app.py, it works, but i suspect it'll stuff something else up down the line.

malcolmturnballs avatar Mar 13 '18 11:03 malcolmturnballs