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

_ctypes.COMError #83

Open
jaye-li opened this issue Sep 14, 2021 · 4 comments
Open

_ctypes.COMError #83

jaye-li opened this issue Sep 14, 2021 · 4 comments

Comments

@jaye-li
Copy link

jaye-li commented Sep 14, 2021

Describe the bug
I want to rasterize all layers imported from PDF,but i received :
_ctypes.COMError: (-2147352577, '出现了内部错误。', (None, None, None, 0, None))

To Reproduce
my code:
for j in doc.layers: j.rasterize(target=5)

the tracebake:
image

Desktop (please complete the following information):

  • OS: [e.g. Windows10]
  • Photoshop Version: [e.g. Photoshop-2021]
  • Python Version: [e.g. python-3.9]

Additional context
thanks for your solution!

@jaye-li
Copy link
Author

jaye-li commented Sep 14, 2021

@loonghao

@jaye-li
Copy link
Author

jaye-li commented Sep 14, 2021

though the error message appears in pycharm,layers can still be rasterized in Photoshop:
image
now I use "try...except..." to cuntiue

@loonghao
Copy link
Owner

@jaye-li
Can you give me a test psd file? This is convenient for me to debug, I tested several situations are normal

@blunderedbishop
Copy link

Happens to me when the file i want to work on is not on focus.

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

3 participants