testdotai / appium-classifier-plugin

Apache License 2.0
259 stars 78 forks source link

The module '/usr/local/lib/node_modules/test-ai-classifier/node_modules/canvas/build/Release/canvas.node' #51

Open iloveleejunghyun opened 3 years ago

iloveleejunghyun commented 3 years ago

When I run the test script, it showed:

Traceback (most recent call last): File "/Users/adm/Desktop/test.py", line 40, in test_login ele1 = self.driver.find_element('-custom', 'ai:cart') File "/var/root/anaconda3/lib/python3.8/site-packages/appium/webdriver/webdriver.py", line 279, in find_element return self.execute(RemoteCommand.FIND_ELEMENT, { File "/var/root/anaconda3/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/var/root/anaconda3/lib/python3.8/site-packages/appium/webdriver/errorhandler.py", line 31, in check_response raise wde File "/var/root/anaconda3/lib/python3.8/site-packages/appium/webdriver/errorhandler.py", line 26, in check_response super().check_response(response) File "/var/root/anaconda3/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not load your custom find module 'ai'. Did you put it somewhere Appium can 'require' it? Original error: Error: The module '/Applications/Appium.app/Contents/Resources/app/node_modules/canvas/build/Release/canvas.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 88. This version of Node.js requires NODE_MODULE_VERSION 75. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install).

How to solve this problem?