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

KeyError: 'AMAZON_USER' #5

Open
RedHatter opened this issue Jul 23, 2021 · 3 comments
Open

KeyError: 'AMAZON_USER' #5

RedHatter opened this issue Jul 23, 2021 · 3 comments

Comments

@RedHatter
Copy link

Any attempt to run amzscraper gives me the following.

Traceback (most recent call last):
  File "/home/ava/.pyenv/versions/3.8.3/bin/amzscraper", line 11, in <module>
    load_entry_point('amzscraper==1.0.0', 'console_scripts', 'amzscraper')()
  File "/home/ava/.pyenv/versions/3.8.3/lib/python3.8/site-packages/amzscraper.py", line 287, in main
    args = vars(parse_args())
  File "/home/ava/.pyenv/versions/3.8.3/lib/python3.8/site-packages/amzscraper.py", line 225, in parse_args
    default=os.environ["AMAZON_USER"],
  File "/home/ava/.pyenv/versions/3.8.3/lib/python3.8/os.py", line 675, in __getitem__
    raise KeyError(key) from None
KeyError: 'AMAZON_USER'
@nicjohnston
Copy link

@RedHatter Did you ever find a fix for this? I just ran into the same issue as you with python 3.9

@RedHatter
Copy link
Author

I did not. Though I didn't try very hard to solve it.

nicjohnston added a commit to nicjohnston/amzscraper that referenced this issue Jul 23, 2022
@nicjohnston
Copy link

I should have followed up on this a long time ago, but I was able to fix the problem by removing a handful of lines.
Forked this after updating some syntax for compatibility with recent selenium versions: https://github.com/nicjohnston/amzscraper

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

2 participants