GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Resolve issues with GAE and os.path.expanduser() by daspecster · Pull Request #1924 · googleapis/google-cloud-python

Conversation

@daspecster

@daspecster daspecster commented Jun 28, 2016

Copy link
Copy Markdown
Contributor

os.path.expanduser imports the pwd module which is not supported by GAE.

This should resolve #1922.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@daspecster
Closes googleapis#1922, resolves issues with GAE and expanduser().
84ac521
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 28, 2016
@daspecster daspecster assigned tseaver Jun 28, 2016
tseaver
tseaver reviewed Jun 28, 2016
View reviewed changes
Comment thread gcloud/test__helpers.py Outdated
import pwd
del pwd
sys.modules['pwd'] = None # Blocks pwd from being imported.
project_id = self.callFUT('test-project-id')

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster

daspecster commented Jun 28, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver, I cleaned up some redundant code as well.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver
tseaver reviewed Jun 28, 2016
View reviewed changes
Comment thread gcloud/_helpers.py Outdated
# Workaround for GAE not supporting pwd which is used by expanduser.
try:
full_config_path = os.path.expanduser(DEFAULT_CONFIGURATION_PATH)
search_paths.append(full_config_path)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster
Add cleanup and refactor.
b1d56a5
@daspecster
daspecster force-pushed the fix-gae-default-project-id branch from b806b92 to b1d56a5 Compare June 28, 2016 15:37
@theacodes

theacodes commented Jun 28, 2016

Copy link
Copy Markdown
Contributor

FWIW, I'm filing a bug to get pwd enabled on GAE.

daspecster reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Jun 28, 2016

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster
daspecster merged commit ad5936c into googleapis:master Jun 28, 2016
@daspecster
daspecster deleted the fix-gae-default-project-id branch June 28, 2016 20:19
@tseaver tseaver mentioned this pull request Jun 29, 2016
Prepare 0.17.0 release. #1940
Merged
parthea pushed a commit that referenced this pull request Apr 1, 2026
@GarrettWu
fix: Series.str.isdigit in unicode superscripts and fractions (#1924)
b1bb616
* fix: Series.str.isdigit in unicode subscripts

* fix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tseaver tseaver

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Storage on Standard App Engine causing import error

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@daspecster @theacodes @tseaver @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.