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 — Error when doing run add_picture: 'Part' object has no attribute 'sha1' · Issue #1565 · python-openxml/python-docx

Error when doing run add_picture: 'Part' object has no attribute 'sha1' #1565

New issue
Copy link
New issue
Copy link
Open
#1566
Open
Error when doing run add_picture: 'Part' object has no attribute 'sha1'#1565
#1566
Copy link

Description

@ywang135
ywang135
opened on Jul 8, 2026
Issue body actions

The issue is similar to scanny/python-pptx#382

After added a picture that might have broken or non-standard exif data, the picture file cannot be parsed as ImagePart. And then next time, calling add_picture may trigger the error.

Can you add a similar check to src/docx/package.py, like in 4c0fd125136d726b8267c2d96cac7345281db1cc ?

Activity

  1. ywang135
    added a commit that references this issue on Jul 8, 2026

    fix: python-openxml#1565 skip sha1 check for broken image_part on .ad…

    This issue will close once commit 76edf74 is merged into the 'master' branch.
    76edf74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — 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.