Executing Fabric python code on windows 7 -
i trying import fabric use version of python, 3.3 below code:
fabfile.py
from fabric.api import * def hello(): print("hello world!")
but while executing ( c:> fab hello )it gives following error message.
from operator import ismappingtype
importerror:cannot import name ismappingtype
i having python version : 3.3.2 win32.i installed related package mentioned on below web-link:
http://ridingpython.blogspot.in/2011/07/installing-fabric-on-windows.html
any idea how can fixed?
thanks in advance!
fabric requires python version 2.5 or 2.6. fabric has not yet been tested on python 3.x , incompatible line of development.
it's not simple install fabric on windows, because uses specific c libs needs compiled. try next in windows:
pip install fabric # failed!
easy_install fabric # failed again!
but if don't want install visual studio or cygwin , compile c code consider way, more simple. have figured out, fabric needs next python libs installed on windows:
- pycrypto
- pywin32
both requires compilation or may installed pre-built binary packages (my choice!):
pycrypto: click here pywin32: click here download , install these 2 , able do:
pip install fabric # success!
Comments
Post a Comment