vendredi 28 juillet 2017

error while installing robot framework on ironpython

I'm becoming mad about installing robotframework on IronPython in a Windows machine. Please someone could take a look on this.

I have installed IronPython 2.7.7, added the path system variable for both main and Scripts folder, also I installed the elementtree-1.2.7-20070827-preview.zip as it looks that the library that comes with IronPython is "broken" (this info and instruction comes from IronPython site).

Then I run the

    ipy -X:Frames -m ensurepip 

to be able to use pip.

Everything should be ready now to get the robotframework installed by:

    ipy -X:Frames -m pip install robotframework

The package starts getting downloaded until here:

  Complete output from command python setup.py egg_info:
  Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\setuptools\__init__.py", line 11, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\setuptools\extern\__init__.py", line 1, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\__init__.py", line 46, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\extern\__init__.py", line 42, in load_module
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\_vendor\six.py", line 701, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\_vendor\six.py", line 692, in exec_
  AttributeError: 'module' object has no attribute '_getframe'

----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in c:\users\***\appdata\local\temp\pip-build-vnlada\robotframework\

I tried another workaround just downloading the robotframework source, uncompressing and placing it in my program folders. From the RF folder I tried to run:

    C:\Program Files (x86)\IronPython 2.7\ipy.exe" setup.py install

and again same error:

     File "setup.py", line 11, in <module>
       File "C:\Program Files (x86)\IronPython 2.7\Lib\site-                  packages\setuptools\__init__.py", line 11, in <module>
       File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\setuptools\extern\__init__.py", line 1, in <module>
       File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\__init__.py", line 46, in <module>
       File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\extern\__init__.py", line 42, in load_module
       File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\_vendor\six.py", line 701, in <module>
       File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\_vendor\six.py", line 692, in exec_
     AttributeError: 'module' object has no attribute '_getframe'

In this website this guy solves the issue using this last workaround, however it didnt work for me. http://ift.tt/1N5mLwV

Thank you in advance.

Aucun commentaire:

Enregistrer un commentaire