Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

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

Open
iloveleejunghyun opened this issue Jan 8, 2021 · 0 comments

Comments

@iloveleejunghyun
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant