CA
Crawlee & Apify•3y ago
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
flat-fuchsia•3y ago
You are probably running it wrong. This is an outdated repo
afraid-scarlet
afraid-scarlet•3y ago
We recommend using the crawlee and the utils there instead of the ones from old versions of the apify package
Alexey Udovydchenko
Alexey Udovydchenko•3y ago
Ensure 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 references
exotic-emerald
exotic-emeraldOP•3y ago
but this actor successfully runs at the Apify platform... is that only the outdated Apify version issue ?
exotic-emerald
exotic-emeraldOP•3y ago
As I tried to upgrade apify: 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-emerald
exotic-emeraldOP•3y ago
yet as I check VS for update, there is no updates response.
flat-fuchsia
flat-fuchsia•3y ago
Sorry, we cannot really support this outdated build & old version
exotic-emerald
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...
MEE6
MEE6•3y ago
@MarK SavinkiN just advanced to level 1! Thanks for your contributions! 🎉
afraid-scarlet
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-emerald
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
flat-fuchsia•3y ago
No, the repo is outdated and is not supported. We cannot help you here.

Did you find this page helpful?