robotframework / RIDE

Test data editor for Robot Framework
Apache License 2.0
963 stars 379 forks source link

when RIDE will support python3? #1719

Closed ruancan closed 5 years ago

ruancan commented 7 years ago

wxpython4.0 has been released. It supports python3. robotFrameWork also supports python3. Does RIDE have any plans?

aray0322 commented 7 years ago

I also want konw.

luisxiaomai commented 6 years ago

Hope it can support python3 asap

HelioGuilherme66 commented 6 years ago

You can experiment from my fork, with:

pip install -U --pre https://github.com/HelioGuilherme66/RIDE/archive/python3.zip
akshaykochar commented 6 years ago

Any update on when ride with python 3 support will get stable release?

akshaykochar commented 6 years ago

@HelioGuilherme66

HelioGuilherme66 commented 6 years ago

@akshaykochar There is no official stable release (this project is more a less abandoned). You can experiment latest development branch from my fork with:

sudo -H pip3 install -U https://github.com/HelioGuilherme66/RIDE/archive/python3.zip
edfacundo commented 6 years ago

Hi, I loaded RIDE above but can not execute it. What is the command to launch the app? Thanks, Ed

HelioGuilherme66 commented 6 years ago

Try instead this one, it creates a desktop shortcut:

sudo -H pip3 install -U https://github.com/HelioGuilherme66/RIDE/archive/neweditor.zip

If on Windows you need to install pywin32.

To start RIDE you can use:

python -m robotide.__init__

But be aware of nasty bugs.

edfacundo commented 6 years ago

Thanks! Here is the return, [root@localhost /]# python -m robotide.init Traceback (most recent call last): File "/root/anaconda3/lib/python3.6/runpy.py", line 183, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/root/anaconda3/lib/python3.6/runpy.py", line 109, in _get_module_details import(pkg_name) File "/root/anaconda3/lib/python3.6/site-packages/robotide/init.py", line 35, in from robotide.utils import basestring, unicode File "/root/anaconda3/lib/python3.6/site-packages/robotide/utils/init.py", line 28, in from .eventhandler import RideEventHandler File "/root/anaconda3/lib/python3.6/site-packages/robotide/utils/eventhandler.py", line 15, in import wx ModuleNotFoundError: No module named 'wx'

I tried installing wx with no luck.

HelioGuilherme66 commented 6 years ago

You need wxPython. I was assumng that you knew RIDE already (or seen the Wiki). install with:

sudo -H python3 -m pip install wxPython

If it is a Mac or Windows, if not you get the wheel from wxpython.org

Frizziero77 commented 6 years ago

HI guys, I'm trying to make work RIDE in python 3.6.2 here, my system is Windows10, after following your indication i'm still seeing this kinf of error when trying to execute it:

C:\Users\CARLOS-PC\AppData\Local\Programs\Python\Python36-32>python -m robotide.init Thank you for helping developing and testing RIDE on Python 3 and wxPython 4 Traceback (most recent call last): File "C:\Users\CARLOS-PC\AppData\Local\Programs\Python\Python36-32\lib\site-packages\robotide\application\application.py", line 56, in OnInit coreplugins.get_core_plugins()) File "C:\Users\CARLOS-PC\AppData\Local\Programs\Python\Python36-32\lib\site-packages\robotide\context\coreplugins.py", line 22, in get_core_plugins from robotide.editor.texteditor import TextEditorPlugin File "C:\Users\CARLOS-PC\AppData\Local\Programs\Python\Python36-32\lib\site-packages\robotide\editor\texteditor.py", line 41, in from . import robotframeworklexer File "C:\Users\CARLOS-PC\AppData\Local\Programs\Python\Python36-32\lib\site-packages\robotide\editor\robotframeworklexer.py", line 17, in from pygments.lexer import Lexer ModuleNotFoundError: No module named 'pygments' OnInit returned false, exiting...

C:\Users\CARLOS-PC\AppData\Local\Programs\Python\Python36-32>

Any idea?

HelioGuilherme66 commented 6 years ago

It is pretty obvious: from pygments.lexer import Lexer ModuleNotFoundError: No module named 'pygments'

Solve with:

sudo -H python3 -m pip install Pygments
JoffreyN commented 6 years ago

@HelioGuilherme66 RIDE officially supports wxPython 2.8.12.1 and 3.0.2. But wxPython 3.0.2 does not support python3. https://sourceforge.net/projects/wxpython/files/wxPython/3.0.2.0/ so.......emmm......

JoffreyN commented 6 years ago

@HelioGuilherme66 An Error! wx._core.wxAssertionError: C++ assertion "m_count == -1 || m_count == -2" failed at ....\src\msw\textctrl.cpp(242) in UpdatesCountFilter::UpdatesCountFilter(): wrong initial m_updatesCount value

The above exception was the direct cause of the following exception:

SystemError: <class 'wx._core.CommandEvent'> returned a result with an error set

HelioGuilherme66 commented 6 years ago

@JoffreyN Regarding my fork. Well, for Python 2.7 you can use wxPython, 2.8.12.1, 3.02, 4.0.1, 4.0.2a1. For Python 3.6 you can use wxPython, 4.0.1, 4.0.2a1. Rule is, first install wxPython for the correct python architecture and version, then robotframework and pygments (on Windows you also should install pywin32). For Python 3, see instructions for my latest pre-release

Anney-Ying commented 6 years ago

@Hélio Guilherme I have update robotframework ride according with your latest pre-release. I create my own Library,but import error,it is red. [ ERROR ] Error in file 'E:\Programs\Python36-32\Scripts\TestDobot\Init_Dobot.txt': Importing test library 'TestRF' failed: ModuleNotFoundError: No module named 'MyClass' Traceback (most recent call last): File "e:\programs\python36-32\lib\site-packages\TestRF__init__.py", line 1, in from MyClass import Test My scripts is simple: 444 555

It can run at the python2.6 .

HelioGuilherme66 commented 6 years ago

@Anney-Ying Glad that you installed and use my pre-release, however, you should not use this Issue to report a different problem. Also you are not reporting a problem but asking for help, that should be done in different forums that you see here. About your specific problem, you must know the differences of Python 2.6, 2.7 and >3.5, so the first thing is to make sure your script or module is running on Python 3.6.

wjlu commented 6 years ago

i have use this
sudo -H pip3 install -U https://github.com/HelioGuilherme66/RIDE/archive/neweditor.zip

but there is no desktop shortcut ,how can i run it ? thanks the environment is mac

HelioGuilherme66 commented 6 years ago

@wjlu That is an old branch. You may try to install from my latest development branch:

sudo -H pip3 install -U https://github.com/HelioGuilherme66/RIDE/archive/gificons.zip

Or you should try the latest pre-release, see the instructions and warnings, here

Note: when using versions from my fork Issues or Pull Request should also be reported there!

wangjianlian commented 6 years ago

RobotFrameWork also supports python3 Does RIDE have any plans?

wangjianlian commented 6 years ago

Robot Framework 3.0.4+pyhon3.6.2+ ride1.72 is astable

wangjianlian commented 6 years ago

Testsuit have defined Variable, Testsuit have resource Variable come from resource should be defined again python2 RIDE is OK

resource 1

Testsuit 2

run 3

xuxk1 commented 5 years ago

Testsuit已经定义了Variable,Testsuit有资源 变量来自资源应该再定义 python2 RIDE就行了

资源 1

Testsuit 2

3

你这个问题是你使用的变量出现歧义了,跟RIDE没有关系

AWayyyyyy commented 5 years ago

@HelioGuilherme66 i install RIDE-release,but do not run error: command: "no pybot" --argumentfile C:\Users\admin\AppData\Local\Temp\RIDEuthk1lcb.d\argfile.txt --listener D:\python\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:5259:False D:\robot_project\test [WinError 2] 系统找不到指定的文件。 i do not how to solve it

hyh162213 commented 5 years ago

Testsuit已经定义了Variable,Testsuit有资源 变量来自资源应该再定义 python2 RIDE就行了 资源 1 Testsuit 23

你这个问题是你使用的变量出现歧义了,跟RIDE没有关系

求教三个问题,从python2的ride到python3的ride才出现的 以下三个问题有任何解决思路吗,感激不尽! image image

xuxk1 commented 5 years ago

你好,你的这个变量名可以区分一下,这样就可以了,你这个报错主要还是命名有很多相似的导致的

发自我的 iPhone

在 2019年1月22日,23:51,hyh162213 notifications@github.com 写道:

Testsuit已经定义了Variable,Testsuit有资源 变量来自资源应该再定义 python2 RIDE就行了 资源

Testsuit

你这个问题是你使用的变量出现歧义了,跟RIDE没有关系

求教三个问题,从python2的ride到python3的ride才出现的 以下三个问题有任何解决思路吗,感激不尽!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

HelioGuilherme66 commented 5 years ago

RIDE 1.7.3.1 supports Python 3 now.

MrEthan commented 4 years ago

@HelioGuilherme66 i install RIDE-release,but do not run error: command: "no pybot" --argumentfile C:\Users\admin\AppData\Local\Temp\RIDEuthk1lcb.d\argfile.txt --listener D:\python\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:5259:False D:\robot_project\test [WinError 2] 系统找不到指定的文件。 i do not how to solve it

I miss the same problem too, have you solve it? RIDE 1.7.4.2 running on Python 3.7.8.

I have try these steps, but still don't work. I can run case in cmd like pybot MY_CASE.robot succeed, but in RIDE, It doesn't work.

  1. add fle pybot.bat to python dir Python37\Scripts. pybot.bat like this: @Echo off python -m robot.run %*
  2. add these to system PATH D:\Software\Python37\Scripts D:\Software\Python37 D:\Software\Python37\Lib\site-packages\robot
xuxk1 commented 4 years ago

You can refer to this blog.If you have any questions, you can contact me again https://mp.weixin.qq.com/s/zTo4w33ZzBjiPMr6NkvTLw ------------------ 原始邮件 ------------------ 发件人: "robotframework/RIDE" <notifications@github.com>; 发送时间: 2020年8月28日(星期五) 下午4:12 收件人: "robotframework/RIDE"<RIDE@noreply.github.com>; 抄送: "冷风"<962199374@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [robotframework/RIDE] when RIDE will support python3? (#1719)

@HelioGuilherme66 i install RIDE-release,but do not run error: command: "no pybot" --argumentfile C:\Users\admin\AppData\Local\Temp\RIDEuthk1lcb.d\argfile.txt --listener D:\python\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:5259:False D:\robot_project\test [WinError 2] 系统找不到指定的文件。 i do not how to solve it

I miss the same problem too, have you solve it? RIDE 1.7.4.2 running on Python 3.7.8.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.