chrisBrookes93 / robotframework-remoterunner

This library provides a robotframework agent, and accompanying robot executor script that allows you to run Robot Framework Test Suites remotely. It's designed to be a lightweight agent and can be used as an alternative, or with a CI Agent (e.g. Jenkins Agent).
MIT License
8 stars 8 forks source link

PermissionError: [Errno 13] Permission denied: 'C:\\Users\\ajay\\python\\Browser' #19

Open ajaysai-g opened 1 year ago

ajaysai-g commented 1 year ago

Hi,

Gettig below issue while running the rfremoterun

Could you please provide the solution?

C:\Users\ajay\python\robot\running\builder\builders.py:112: UserWarning: 'TestSuiteBuilder' argument 'included_suites' is deprecated and has no effect. Use the new 'included_files' argument or filter the created suite instead. warnings.warn("'TestSuiteBuilder' argument 'included_suites' is deprecated " Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\ajay\python\Scripts\rfremoterun.exe__main__.py", line 7, in File "C:\Users\ajay\python\rfremoterunner\executor.py", line 25, in run_executor result = rfs.execute_run(arg_parser.suites, arg_parser.extension, arg_parser.suite, arg_parser.robot_run_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ajay\python\rfremoterunner\rf_client.py", line 63, in execute_run self._package_suite_hierarchy(suite) File "C:\Users\ajay\python\rfremoterunner\rf_client.py", line 109, in _package_suite_hierarchy self._suites[suite_filename] = self._process_test_suite(suite) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ajay\python\rfremoterunner\rf_client.py", line 134, in _process_test_suite updated_file = self._process_robot_file(suite) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ajay\python\rfremoterunner\rf_client.py", line 191, in _process_robot_file self._dependencies[filename] = read_file_from_disk(full_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ajay\python\rfremoterunner\utils.py", line 30, in read_file_from_disk with open(path, 'r', encoding=encoding) as file_handle: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: 'C:\Users\ajay\python\Browser'

chrisBrookes93 commented 1 year ago

Hi @ajaysai-g,

It looks to me like its a file permissions error, can you try running as an Administrator.

If this doesn't work then can you please provide some more info, including:

Thanks

mardukbp commented 1 year ago

The problem is that robotframework-remoterunner expects third-party libraries to be a single Python file, not a directory. It has been reported before (#16) and a PR fixing it (#17) was ignored. I just submitted a PR (#20) that fixes this and another problem.

@chrisBrookes93 Please take a look at this issue. Your library is very useful, but in its current state it is unusable for most people.