AWS Device Farm - Getting issues with Canvas and additional packages

0

Hi there, I'm making attempts to run CodeceptJS Appium test suites for iOS and Android on Device Farm. Everything will go well, but an issue occurs when I turn on using ResembleHelper as following:

Could not load helper ResembleHelper from module 'codeceptjs-resemblehelper':
dlopen(/private/tmp/scratch_01gRm.scratch/test-packagegv_xYF/node_modules/codeceptjs-dvf-poc/node_modules/resemblejs/node_modules/canvas/build/Release/canvas.node, 1): Library not loaded: /usr/local/opt/pango/lib/libpangocairo-1.0.0.dylib
  Referenced from: /private/tmp/scratch_01gRm.scratch/test-packagegv_xYF/node_modules/codeceptjs-dvf-poc/node_modules/resemblejs/node_modules/canvas/build/Release/canvas.node
  Reason: image not found
Error: dlopen(/private/tmp/scratch_01gRm.scratch/test-packagegv_xYF/node_modules/codeceptjs-dvf-poc/node_modules/resemblejs/node_modules/canvas/build/Release/canvas.node, 1): Library not loaded: /usr/local/opt/pango/lib/libpangocairo-1.0.0.dylib

Is there any way to resolve it to make ResembleHelper usable on Device Farm? install missing packages or pull them from somewhere,... Thanks.

  • .dylib is a MacOS file format, AWS Device Farm servers are Linux. I imagine you're running npm install on a Mac and then uploading the whole folder including node_modules to AWS, whereas what I think you need to do is run npm install during the 'install' stage of your test spec.

gefragt vor 2 Jahren51 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen