CA
exotic-emerald
Issue with Apify.utils
I try to run the repo https://github.com/natashalekh/actor-airbnb-scraper at my local env, Windows 10.
There is the following problem:
either
const { utils: { log } } = Apify;
or
const { log } = Apify.utils;
produces the error:
const { log } = Apify.utils; ^ TypeError: Cannot destructure property 'log' of 'Apify.utils' as it is undefined.I did install
npm i @apify/utilities
yet the problem persist.GitHub
GitHub - natashalekh/actor-airbnb-scraper: Airbnb Scraper actor is ...
Airbnb Scraper actor is designed to extract most of publicly available data for home listings - GitHub - natashalekh/actor-airbnb-scraper: Airbnb Scraper actor is designed to extract most of public...
12 Replies
flat-fuchsia•3y ago
You are probably running it wrong. This is an outdated repo
afraid-scarlet•3y ago
We recommend using the
crawlee
and the utils there instead of the ones from old versions of the apify
packageEnsure that you using latest Apify 2.3.2 then
const Apify = require('apify'); const { utils: { log } } = Apify;
must work, I have live actors with exactly this referencesexotic-emeraldOP•3y ago
but this actor successfully runs at the Apify platform...
is that only the outdated Apify version issue ?
exotic-emeraldOP•3y ago
As I tried to upgrade apify:
any comments , hints ?
npm i [email protected]
the error has occurred (see files attached).
The one of reasons is "1009 error gyp ERR! find VS You need to install the latest version of Visual Studio"any comments , hints ?
exotic-emeraldOP•3y ago
yet as I check VS for update, there is no updates response.
flat-fuchsia•3y ago
Sorry, we cannot really support this outdated build & old version
exotic-emeraldOP•3y ago
@Lukas Krivka , do you mean that the actor https://github.com/natashalekh/actor-airbnb-scraper is outdated and you do not intend to support it ?
GitHub
GitHub - natashalekh/actor-airbnb-scraper: Airbnb Scraper actor is ...
Airbnb Scraper actor is designed to extract most of publicly available data for home listings - GitHub - natashalekh/actor-airbnb-scraper: Airbnb Scraper actor is designed to extract most of public...
@MarK SavinkiN just advanced to level 1! Thanks for your contributions! 🎉
afraid-scarlet•3y ago
@MarK SavinkiN He means that we don't support version
2.3.2
of the apify
package anymore
That is an old version. We recommend using the crawlee
package and the newest version of the apify
package instead.exotic-emeraldOP•3y ago
newest of
apify
is v3.0.4. Will the airbnb repo be compatible to apify
v3.0.4 then?flat-fuchsia•3y ago
No, the repo is outdated and is not supported. We cannot help you here.