-
Notifications
You must be signed in to change notification settings - Fork 678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r.init() is very slow - network issue to github.com, pack() or download manually #376
Comments
Hi @zhaoyukoon yes I suspect it is network issue. I have other users reporting similar issue. In China, it seems that the network is not very reliable to download files from GitHub, which this package does during the initial run. Can you try on your personal laptop or use VPN software to see if it works? If it does, you can use pack() function to create a zip file for you to move to your company intranet computer. More info on using pack() - #36 (comment) In the future, @kangyiwen may be looking at hosting some of these resource files on a website which can be reliably accessed in China. When that happens, I can upgrade the package to support downloading from alternative hosts. |
Let me know how it goes. There is another way which is to download manually, but there are a few steps and more complicated to do. Need to download manually the zip file, and also the delta update files, and then create a dummy marker file to tell the package that it is already updated. |
Thanks for reply. It is internet issue. It is very unstable to download file from github. Usually i download files manually via Chrome with proxy. My suggestion is that the setup script can be updated to check whether the required file exist or not. Currently i am trying to change the tagui.py for checking. |
I see.. There are a few steps, first is download the TagUI zip file for your OS, then update them with the delta files from this folder (including the file in tagui.sikuli) - https://github.com/tebelorg/Tump/tree/master/TagUI-Python Finally, need to create a dummy file rpa_python_1.47.0 in your tagui folder, as a marker so that the package does not try to download or update again on init(). Can you let me know if doing all the above steps is easier for you than using pack()? If yes, I will update the package to support users who prefer to manually download the files instead of using pack(). Thanks in advance for your feedback! It will help improve the usability of rpa package. |
What is the purpose of _tagui_delta, which try to download files from I suggest the program can either download a zip file or support manual download here. |
The TagUI zip file is big, 100-200MB. The delta file design is to only update the small changes (<1MB), instead of downloading big latest zip file every time. Thanks for your feedback, I will think over how to make it easier. The real work is the manual downloading. Maybe a good way is write clearly the steps how to download manually for Windows, Mac, Linux. I think that might be the best and easier path for users. I will try to do that when I get some time. |
Cool! Wait for the update. |
These are the steps to manually download and set up the dependencies. If you are using 1. Download TagUI engine from https://github.com/tebelorg/Tump/releases
2. Unzip the file to the respective folders for your operating system
3. Download update files from https://github.com/tebelorg/Tump/tree/master/TagUI-Python
4. Create marker file so that rpa package will not try to download anything on init()
5. For Windows, check if PHP is working correctly and no broken dependency
6. For Mac and Linux, do the following to ensure execute permissions are there
7. For Mac only, do the following steps to fix the OpenSSL issue with Mac
|
@zhaoyukoon above are the steps to download and set up manually, let me know if you run into any problems! |
@zhaoyukoon Github下载的确非常慢,我放到国内了 各类TagUI安装/插件/资源 国内下载,请访问: 如果百度网盘下载还慢,加我微信: kyw2004 我单独发你。 |
Thanks @kangyiwen! For rpa package, it uses a forked version of TagUI that I maintain, in order to adapt TagUI engine to work well with Python process. Thus rpa package will not work with the standard TagUI (human language version) zip files which have iterated in another direction. The files at steps 1357 above would be separately required to be downloaded. |
Adding on to above discussions, @zhaoyukoon and @kangyiwen, if you can, Can you try below Python script file to see how is automatic downloading from my own server instead of GitHub? That will give me more information if it makes sense to host a separate download location as an option to GitHub. test_download.py import rpa as r
r.download('https://tebel.org/TagUI_Windows.zip') |
I'm suspecting downloading from my tebel.org will not be much better than GitHub. My server is hosted in Singapore. Anyway, see how your testing goes. And if it makes sense to set up a secondary download server as part of package. |
It is still very slow for |
I see.. Looks like for now, need to try these steps here - #376 (comment) Because even if iterate codebase for rpa package to support files that are pre-downloaded by users, most of steps above are still needed to download manually from GitHub, using VPN or other ways. For users without access to github.com. |
Alternative is try pack() on a PC with internet access. Also, in theory, Python can support setting proxy. But I have not validated that approach to work, no feedback from users so far on that method. |
I try to install related file based on your instruction, it works.
Thanks! |
Thanks @zhaoyukoon for sharing back your findings! Ok I'll close the issue now. In the future, if there's a better way around this, I will improve the rpa package with the new way. |
Using proxies to download is faster and easier, open a cmd window, set the proxy to the cmd window, and execute |
Also adding on, it is also possible to set proxy within the Python code - |
when i try to run
import rpa as r; r.init()
, the second line code never stop with following message:I try to downlaod tagUI and unzip to
/Users/ygzhao_1
, the problem still exists.I guess it is because of the slow speed in China.
What can I do to fix this?
Thanks
The text was updated successfully, but these errors were encountered: