Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get it running #15

Open
PioMen opened this issue Sep 18, 2018 · 0 comments
Open

Can't get it running #15

PioMen opened this issue Sep 18, 2018 · 0 comments

Comments

@PioMen
Copy link

PioMen commented Sep 18, 2018

I'm trying to get the library running however I face a problem while trying to execute following code:
import otodom, os, logging
from otodom.category import get_category
from otodom.offer import get_offer_information.

The error I get is following:

PS C:\Users\Dom\Dysk Google\Analizator Nieruchomosci> python .\example.py
'getconf' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File ".\example.py", line 7, in
from otodom.category import get_category
File "C:\Users\Dom\Anaconda3\lib\site-packages\otodom\category.py", line 9, in
from otodom.utils import get_response_for_url, get_url
File "C:\Users\Dom\Anaconda3\lib\site-packages\otodom\utils.py", line 14, in
from scrapper_helpers.utils import caching, normalize_text, key_sha1, get_random_user_agent
File "C:\Users\Dom\Anaconda3\lib\site-packages\scrapper_helpers\utils.py", line 22, in
MAX_FILENAME_LENGTH = subprocess.check_output("getconf NAME_MAX /", shell=True).strip()
File "C:\Users\Dom\Anaconda3\lib\subprocess.py", line 336, in check_output
**kwargs).stdout
File "C:\Users\Dom\Anaconda3\lib\subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'getconf NAME_MAX /' returned non-zero exit status 1.

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

No branches or pull requests

1 participant