How to add a the third library into robocloud

how to add a the third library into robocloud. I can add a library on robolab. but when i add into on robocloud. i can find the place to pip install robotframework-archivelibrary.

[ ERROR ] Error in file ‘/home/worker/instance/runs/f506b5b0-dbdb-4c69-bae6-dfafcb22475b/package/tasks/RPA_Codeless.robot’ on line 4: Importing test library ‘ArchiveLibrary’ failed: ModuleNotFoundError: No module named ‘ArchiveLibrary’
2020-08-13 23:07:57.059: Traceback (most recent call last):
2020-08-13 23:07:57.059: None
2020-08-13 23:07:57.059: PYTHONPATH:
2020-08-13 23:07:57.059: /home/worker/instance/runs/f506b5b0-dbdb-4c69-bae6-dfafcb22475b/package
2020-08-13 23:07:57.059: /home/worker/instance/runs/f506b5b0-dbdb-4c69-bae6-dfafcb22475b/package/variables
2020-08-13 23:07:57.059: /home/worker/instance/runs/f506b5b0-dbdb-4c69-bae6-dfafcb22475b/package/libraries
2020-08-13 23:07:57.059: /home/worker/instance/runs/f506b5b0-dbdb-4c69-bae6-dfafcb22475b/package/resources
2020-08-13 23:07:57.059: /home/worker/.robocorp/live/d9c012db204dd725f32630c3a0ed065b83e63788e00bf40c5df403044aa9b80a509b56/lib/python37.zip
2020-08-13 23:07:57.059: /home/worker/.robocorp/live/d9c012db204dd725f32630c3a0ed065b83e63788e00bf40c5df403044aa9b80a509b56/lib/python3.7
2020-08-13 23:07:57.059: /home/worker/.robocorp/live/d9c012db204dd725f32630c3a0ed065b83e63788e00bf40c5df403044aa9b80a509b56/lib/python3.7/lib-dynload
2020-08-13 23:07:57.059: /home/worker/.robocorp…
2020-08-13 23:07:57.085: Tasks.RPA Codeless
2020-08-13 23:07:57.085: ==============================================================================
2020-08-13 23:07:57.086: Check Mailbox New Task
2020-08-13 23:08:09.207: | PASS |
2020-08-13 23:08:09.207: ------------------------------------------------------------------------------
2020-08-13 23:08:10.511: Codeless Generate and CreateZip
2020-08-13 23:08:10.736: | FAIL |
2020-08-13 23:08:10.736: No keyword with name ‘Create Zip From Files In Directory’ found.

Hello @nixuewei!

In order to have the library available both in Robocode Lab and when you run your activity in Robocloud, the library should be included in the config/conda.yaml file. That yaml file is what robocloud uses to create the environment to run your activity, so if you have added it only using pip it might be available locally but it will not be when you run on robocloud.

You can see an example of a conda.yaml file with the archive library added in one of the example activities here: https://github.com/robocorp/example-activities/blob/master/work-item-to-pdf/config/conda.yaml

To add the library to your conda.yaml you have two possibilities:

The easiest way to use Robocode CLI is via the integrated terminal in Robocode Lab:

I hope this solves your issue! :slight_smile:

2 Likes

I verified it with following conda.yaml. Let us know if any problems.

channels:
  - defaults
  - conda-forge
dependencies:
  - python=3.7.5
  - pip=20.1
  - pip:
    - rpaframework==2.*
    - robotframework-archivelibrary
1 Like

@Mario and @MikaK, thank you for your suggestion. It is very helpful and i have already succeeded in installing robotframework-archivelibrary on robocloud. but i meet a new issue. i have already generate zip files and send email as attachment. the scripts can work on robolab to send email with attachment but always failed on robocloud. if I remove attachment param of RPA.Email.ImapSmtp.Send Message command, it can send email success on robocloud without attachment. i debet if the local rpaframework version is not the same version as robocloud. I have try to change rpaframework version to 2.4.0 on conda.yaml files, but it still does not work.

This is my first RPA robot, I prefer to fully success not only on roboLab but also on roboCloud. :slight_smile:

Hi

You can find the versions of libraries in the console output:

If you specify an exact version in conda.yaml, then that version is used e.g.

channels:
  - defaults
  - conda-forge
dependencies:
  - python=3.7.5
  - pip=20.1
  - pip:
    - rpaframework==2.4.0
1 Like

@Teppo, yes i set as your suggestion. but still failed. and I can’t see rpaframework version since it disappear in …


Oh yes, it seems to cut it. Could you check it from the “Run Artifacts -> execution-output.log” (same page as console log?

@Mario, it so strange that after I initial a project and add a library into config/conda.yaml or use CLI robo libs --add --pip robotframework-archivelibrary. it popup a meesege on the bottom of window that New environment setup is available. after i click update it always updating and no any stop. if I quit windows and click project again to load, it will no longer load project again. I have two python version my macos one is python=2.7.16, another is python3=3.7.7

At last

I go to check files:

Something goes wrong when applying Conda configuration.
We could check the log file if you don’t mind sending it to support@robocorp.com.

Location available at https://hub.robocorp.com/knowledge-base/articles/robocode-lab-installation/#robocode-lab-log-file-locations

@Teppo

Progress: 0/3 [try use existing live same environment?]

Progress: 3/3 [Done.] [Stats: 4 environments, 5 requests, 1 hits, 0 dirty, 4 misses, 0 failures | v0.7.1]

Installed pip packages:
appdirs==1.4.4
attrs==19.3.0
Authlib==0.14.3
beautifulsoup4==4.9.1
cached-property==1.5.1
certifi==2020.6.20
cffi==1.14.2
chardet==3.0.4
click==7.1.2
clipboard==0.0.4
cryptography==2.9.2
defusedxml==0.6.0
dnspython==2.0.0
EasyProcess==0.3
entrypoint2==0.2.1
et-xmlfile==1.0.1
exchangelib==3.2.1
fpdf==1.7.2
furl==2.1.0
graphviz==0.13.2
idna==2.10
importlib-metadata==1.7.0
isodate==0.6.0
jdcal==1.4.1
jsonschema==3.2.0
lxml==4.5.2
netsuitesdk==1.5.0
notifiers==1.2.1
ntlm-auth==1.5.0
oauthlib==3.1.0
openpyxl==3.0.4
orderedmultidict==1.0.1
pdfminer.six==20200402
Pillow==7.2.0
pip==20.1.1
pycparser==2.20
pycryptodome==3.9.8
Pygments==2.6.1
PyPDF2==1.26.0
pyperclip==1.8.0
pyrsistent==0.16.0
pyscreenshot==1.0
python-dateutil==2.8.1
pytz==2020.1
requests==2.24.0
requests-ntlm==1.1.0
requests-oauthlib==1.3.0
requests-toolbelt==0.9.1
rfc3987==1.3.8
robotframework==3.2.1
robotframework-archivelibrary==0.4.0
robotframework-databaselibrary==1.2.4
robotframework-pythonlibcore==2.1.0
robotframework-requests==0.6.6
robotframework-seleniumlibrary==4.5.0
robotframework-seleniumtestability==1.1.0
rpaframework==2.4.0
rpaframework-core==1.5.0
selenium==3.141.0
setuptools==49.3.1.post20200810
simple-salesforce==1.10.1
six==1.15.0
sortedcontainers==2.2.2
soupsieve==2.0.1
tqdm==4.48.2
tweepy==3.9.0
tzlocal==2.1
urllib3==1.25.10
webdrivermanager==0.8.0
wheel==0.34.2
wrapt==1.12.1
xlrd==1.2.0
xlutils==2.0.0
xlwt==1.3.0
zeep==3.4.0
zipp==3.1.0

==============================================================================
Tasks

Tasks.Robot :: Get Email Attachment and translate to codeless code. then se…

Coldless Robot Run | FAIL |
AttributeError: ‘NoneType’ object has no attribute ‘split’

Tasks.Robot :: Get Email Attachment and translate to codeless code… | FAIL |
1 critical task, 0 passed, 1 failed
1 task total, 0 passed, 1 failed

Tasks | FAIL |
1 critical task, 0 passed, 1 failed
1 task total, 0 passed, 1 failed

Output: /home/worker/instance/runs/89ce152b-19cb-49a8-921f-70f2d132df91/package/output/output.xml
Log: /home/worker/instance/runs/89ce152b-19cb-49a8-921f-70f2d132df91/package/output/log.html
Report: /home/worker/instance/runs/89ce152b-19cb-49a8-921f-70f2d132df91/package/output/report.html
K.O. exit status 1

@MikaK, it seems ok after I uninstall my robolab and install the newest version 3.5.2

1 Like

today, I refract my scripts but still failed to attach 2 files separate with “,” on cloud. But succeeded in attach 1 files on cloud. Thank you for all supporting. My first robot is running now. thank you robolab and robocloud.

1 Like

@nixuewei I found a bug related to attachment handling with certain filetypes and it will be fixed in the next release of rpaframework. It will fix the issue with ‘NoneType’ object has no attribute ‘split’. Thank you for reporting this.

Sounds pretty good. Thank your for your effort. Looking forward to new release :slight_smile:

1 Like