IlanFrumer / mql4compiler

mql4 compiler for sublime text 3
20 stars 9 forks source link

What version of Python is needed? #1

Closed currencysecrets closed 11 years ago

currencysecrets commented 11 years ago

It seems I have Python 2.6 on my Mac box and I'm getting the following error in the console view after compiling:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 362, in run_
  File "./mql4_compiler.py", line 20, in run
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 119, in dirname
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
IlanFrumer commented 11 years ago

The problem is probably to find metalang.exe.

I made some changes, Try it now.

currencysecrets commented 11 years ago

Thanks for the fix, here's what I'm getting now:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 362, in run_
  File "./mql4_compiler.py", line 63, in run
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 623, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1141, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
IlanFrumer commented 11 years ago

Have you installed wine?

IlanFrumer commented 11 years ago

Maybe python's subprocess module on os-x is not able to find wine path. I assume it is /usr/bin/wine on all platforms (linux / osx) try it again please

currencysecrets commented 11 years ago

The location of wine on my Mac is: /usr/local/bin/wine

IlanFrumer commented 11 years ago

OK , I added a (which) function that locates wine automatically.

I hope it would work now.

currencysecrets commented 11 years ago

Thanks Ilan! Unfortunately I'm now getting the error Mqlcompiler | error: wine is not installed.

IlanFrumer commented 11 years ago

I wish I had a mac to check it out on my own. Try again please.

I added manual paths as well

If it won't find it - it will log your env path variable

currencysecrets commented 11 years ago

Well done Ilan!! I think you've got it!!

IlanFrumer commented 11 years ago

Thanks for helping.