Upon trying to run the following command on intellij terminal rfbrowser init
I am getting following error :
Could not write to /Library/Python/3.9/site-packages/Browser/rfbrowser.log, got error: [Errno 13] Permission denied: '/Library/Python/3.9/site-packages/Browser/rfbrowser.log'
Writing install log to: /Users/username/newframework_qa_automation/rfbrowser.log
2024-05-31 17:13:25,063 [INFO ] ==============================================================================================================
2024-05-31 17:13:25,063 [INFO ] Installing node dependencies...
2024-05-31 17:13:25,063 [INFO ] ==============================================================================================================
2024-05-31 17:13:25,063 [INFO ] RuntimeError: `rfbrowser init` needs write permissions to /Library/Python/3.9/site-packages/Browser/wrapper
2024-05-31 17:13:25,063 [INFO ] ==============================================================================================================
2024-05-31 17:13:25,064 [INFO ] Used Python is: /Library/Developer/CommandLineTools/usr/bin/python3
Version: 3.9.6
2024-05-31 17:13:25,064 [INFO ] ==============================================================================================================
2024-05-31 17:13:25,064 [INFO ] pip freeze output:
2024-05-31 17:13:25,442 [INFO ] altgraph @ file:///AppleInternal/Library/BuildRoots/860631e9-c1c5-11ee-98ee-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/python3/altgraph-0.17.2-py2.py3-none-any.whl
async-generator==1.10
attrs==23.2.0
Authlib==1.2.1
blessed==1.20.0
catalogue==2.0.10
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.3.2
chromedriver-autoinstaller==0.4.0
click==8.1.7
contexttimer==0.3.3
cryptography==42.0.3
docutils==0.19
et-xmlfile==1.1.0
exceptiongroup==1.1.0
future @ file:///AppleInternal/Library/BuildRoots/860631e9-c1c5-11ee-98ee-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/python3/future-0.18.2-py3-none-any.whl
gitdb==4.0.11
GitPython==3.1.43
grpcio==1.60.1
grpcio-tools==1.60.1
h11==0.14.0
humanfriendly==10.0
idna==3.6
isodate==0.6.1
lxml==5.1.0
macholib @ file:///AppleInternal/Library/BuildRoots/860631e9-c1c5-11ee-98ee-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/python3/macholib-1.15.2-py2.py3-none-any.whl
more-itertools==10.2.0
natsort==8.4.0
npm==0.1.1
numpy==1.26.1
nvm==1.0.21
opencv-contrib-python==4.8.1.78
openpyxl==3.1.1
optional-django==0.1.0
outcome==1.2.0
overrides==7.7.0
packaging==23.0
pandas==2.2.2
pendulum==3.0.0
platformdirs==4.2.0
prompt-toolkit==3.0.43
protobuf==4.25.2
pycparser==2.21
Pygments==2.14.0
PyJWT==2.8.0
pyobjc-framework-CloudKit==10.2
pyobjc-framework-Cocoa==10.2
pyobjc-framework-Collaboration==10.2
pyobjc-framework-ColorSync==10.2
pyobjc-framework-Contacts==10.2
pyobjc-framework-ContactsUI==10.2
pyobjc-framework-CoreAudio==10.2
pyobjc-framework-CoreAudioKit==10.2
pyobjc-framework-CoreBluetooth==10.2
pyobjc-framework-CoreData==10.2
pyobjc-framework-CoreHaptics==10.2
pyobjc-framework-CoreLocation==10.2
pyobjc-framework-CoreMedia==10.2
pyobjc-framework-CoreMediaIO==10.2
pyobjc-framework-CoreMIDI==10.2
pyobjc-framework-CoreML==10.2
pyobjc-framework-CoreMotion==10.2
pyobjc-framework-CoreServices==10.2
pyobjc-framework-CoreSpotlight==10.2
pyobjc-framework-CoreText==10.2
pyobjc-framework-CoreWLAN==10.2
pyobjc-framework-CryptoTokenKit==10.2
pyobjc-framework-DataDetection==10.2
pyobjc-framework-DeviceCheck==10.2
pyobjc-framework-DictionaryServices==10.2
pyobjc-framework-DiscRecording==10.2
pyobjc-framework-DiscRecordingUI==10.2
pyobjc-framework-DiskArbitration==10.2
pyobjc-framework-DVDPlayback==10.2
pyobjc-framework-EventKit==10.2
pyobjc-framework-ExceptionHandling==10.2
pyobjc-framework-ExecutionPolicy==10.2
pyobjc-framework-ExtensionKit==10.2
pyobjc-framework-ExternalAccessory==10.2
pyobjc-framework-FileProvider==10.2
pyobjc-framework-FileProviderUI==10.2
pyobjc-framework-FinderSync==10.2
pyobjc-framework-FSEvents==10.2
pyobjc-framework-GameCenter==10.2
pyobjc-framework-GameController==10.2
pyobjc-framework-GameKit==10.2
pyobjc-framework-GameplayKit==10.2
pyobjc-framework-HealthKit==10.2
pyobjc-framework-ImageCaptureCore==10.2
pyobjc-framework-InputMethodKit==10.2
pyobjc-framework-InstallerPlugins==10.2
pyobjc-framework-InstantMessage==10.2
pyobjc-framework-Intents==10.2
pyobjc-framework-IntentsUI==10.2
pyobjc-framework-IOBluetooth==10.2
pyobjc-framework-IOBluetoothUI==10.2
pyobjc-framework-IOSurface==10.2
pyobjc-framework-iTunesLibrary==10.2
pyobjc-framework-KernelManagement==10.2
pyobjc-framework-LatentSemanticMapping==10.2
pyobjc-framework-LaunchServices==10.2
pyobjc-framework-libdispatch==10.2
pyobjc-framework-libxpc==10.2
pyobjc-framework-LinkPresentation==10.2
pyobjc-framework-LocalAuthentication==10.2
pyobjc-framework-LocalAuthenticationEmbeddedUI==10.2
pyobjc-framework-MailKit==10.2
pyobjc-framework-MapKit==10.2
pyobjc-framework-MediaAccessibility==10.2
pyobjc-framework-MediaLibrary==10.2
pyobjc-framework-MediaPlayer==10.2
pyobjc-framework-MediaToolbox==10.2
pyobjc-framework-Metal==10.2
pyobjc-framework-MetalFX==10.2
pyobjc-framework-MetalKit==10.2
pyobjc-framework-MetalPerformanceShaders==10.2
pyobjc-framework-MetalPerformanceShadersGraph==10.2
pyobjc-framework-MetricKit==10.2
pyobjc-framework-MLCompute==10.2
pyobjc-framework-ModelIO==10.2
pyobjc-framework-MultipeerConnectivity==10.2
pyobjc-framework-NaturalLanguage==10.2
pyobjc-framework-NetFS==10.2
pyobjc-framework-Network==10.2
pyobjc-framework-NetworkExtension==10.2
pyobjc-framework-NotificationCenter==10.2
pyobjc-framework-OpenDirectory==10.2
pyobjc-framework-OSAKit==10.2
pyobjc-framework-OSLog==10.2
pyobjc-framework-PassKit==10.2
pyobjc-framework-PencilKit==10.2
pyobjc-framework-PHASE==10.2
pyobjc-framework-Photos==10.2
pyobjc-framework-PhotosUI==10.2
pyobjc-framework-PreferencePanes==10.2
pyobjc-framework-PushKit==10.2
pyobjc-framework-Quartz==10.2
pyobjc-framework-QuickLookThumbnailing==10.2
pyobjc-framework-ReplayKit==10.2
pyobjc-framework-SafariServices==10.2
pyobjc-framework-SafetyKit==10.2
pyobjc-framework-SceneKit==10.2
pyobjc-framework-ScreenCaptureKit==10.2
pyobjc-framework-ScreenSaver==10.2
pyobjc-framework-ScreenTime==10.2
pyobjc-framework-ScriptingBridge==10.2
pyobjc-framework-SearchKit==10.2
pyobjc-framework-Security==10.2
pyobjc-framework-SecurityFoundation==10.2
pyobjc-framework-SecurityInterface==10.2
pyobjc-framework-SensitiveContentAnalysis==10.2
pyobjc-framework-ServiceManagement==10.2
pyobjc-framework-SharedWithYou==10.2
pyobjc-framework-SharedWithYouCore==10.2
pyobjc-framework-ShazamKit==10.2
pyobjc-framework-Social==10.2
pyobjc-framework-SoundAnalysis==10.2
pyobjc-framework-Speech==10.2
pyobjc-framework-SpriteKit==10.2
pyobjc-framework-StoreKit==10.2
pyobjc-framework-Symbols==10.2
pyobjc-framework-SyncServices==10.2
pyobjc-framework-SystemConfiguration==10.2
pyobjc-framework-SystemExtensions==10.2
pyobjc-framework-ThreadNetwork==10.2
pyobjc-framework-UniformTypeIdentifiers==10.2
pyobjc-framework-UserNotifications==10.2
pyobjc-framework-UserNotificationsUI==10.2
pyobjc-framework-VideoSubscriberAccount==10.2
pyobjc-framework-VideoToolbox==10.2
pyobjc-framework-Virtualization==10.2
pyobjc-framework-Vision==10.2
pyobjc-framework-WebKit==10.2
pyOpenSSL==23.0.0
pyperclip==1.8.2
PySocks==1.7.1
python-dateutil==2.8.2
python-decouple==3.8
python-dotenv==0.21.1
pytweening==1.2.0
pytz==2024.1
requests==2.31.0
requests-file==2.0.0
requests-toolbelt==1.0.0
robot==20071211
robotframework==7.0
robotframework-assertion-engine==3.0.3
robotframework-browser==18.1.0
robotframework-datadriver==1.7.0
robotframework-debuglibrary==2.5.0
robotframework-excellib==2.0.1
robotframework-openpyxllib==0.7
robotframework-pabot==2.15.0
robotframework-pythonlibcore==4.3.0
robotframework-seleniumlibrary==6.1.1rc1
robotframework-stacktrace==0.4.1
rubicon-objc==0.4.7
selenium==4.11.2
simple-salesforce==1.12.5
six==1.16.0
smmap==5.0.1
sniffio==1.3.0
sortedcontainers==2.4.0
srsly==2.4.8
time-machine==2.13.0
tqdm==4.64.1
trio==0.22.0
trio-websocket==0.9.2
typing_extensions==4.9.0
tzdata==2024.1
tzlocal==5.2
urllib3==2.2.1
wcwidth==0.2.13
webdriver-manager==4.0.0
wrapt==1.16.0
wsproto==1.2.0
zeep==4.2.1
2024-05-31 17:13:25,444 [INFO ] ==============================================================================================================
2024-05-31 17:13:25,667 [INFO ] npm version is:n
2024-05-31 17:13:25,667 [INFO ] 10.7.0
2024-05-31 17:13:25,668 [INFO ] ==============================================================================================================
2024-05-31 17:13:25,668 [INFO ] Installation directory `/Library/Python/3.9/site-packages/Browser/wrapper` does not contain the required files for. unknown reason. Investigate the npm output and fix possible problems.
Printing contents:
2024-05-31 17:13:25,668 [INFO ] /Library/Python/3.9/site-packages/Browser/wrapper/index.js
2024-05-31 17:13:25,668 [INFO ] /Library/Python/3.9/site-packages/Browser/wrapper/package-lock.json
2024-05-31 17:13:25,668 [INFO ] /Library/Python/3.9/site-packages/Browser/wrapper/package.json
2024-05-31 17:13:25,668 [INFO ] static/
2024-05-31 17:13:25,668 [INFO ] /Library/Python/3.9/site-packages/Browser/wrapper/static/selector-finder.js
2024-05-31 17:13:25,668 [INFO ] ==============================================================================================================
RuntimeError: `rfbrowser init` needs write permissions to /Library/Python/3.9/site-packages/Browser/wrapper
My questions is how I can update permissions for the above directory ? How can i find out npm output to investigate more ?