Shopify / Shopify/shopify_python_api

Console "HOME" key error on Windows (with FIX)

Open
#103 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Python
Stars
1.4k
Forks
388
Avg merge
5h 39m
Merged PRs (30d)
1

Description

When trying to use the console from windows I get a key error as described in this post on StackOverflow.

FIX:
Replace os.environ["HOME"] with os.path.expanduser('~') on line 90 in scripts/shopify_api.py

Proposed fix needs to be tested on Linux and Mac. Works on Windows 7 x64.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at line 90 of scripts/shopify_api.py and compare the reported Windows failure with the proposed HOME lookup. Verify the behavior on Windows, Linux, and macOS; the issue is done when console use no longer raises the environment-key error on all three platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.