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

Error running lensfunpy 1.15.0 #55

Open
SergeantGamer opened this issue Nov 13, 2024 · 2 comments
Open

Error running lensfunpy 1.15.0 #55

SergeantGamer opened this issue Nov 13, 2024 · 2 comments

Comments

@SergeantGamer
Copy link

SergeantGamer commented Nov 13, 2024

mod.initialize(focal_length, aperture, distance, pixel_format=img.dtype, flags=lensfunpy.ModifyFlags.VIGNETTING | lensfunpy.ModifyFlags.TCA)
File "lensfunpy\_lensfun.pyx", line 855, in lensfunpy._lensfun.Modifier.initialize
KeyError: dtype('uint8')

@SergeantGamer
Copy link
Author

I'm not sure if this is because I have updated modules, I had to use command 'pip install "numpy<2.0.0" --force-reinstall' to downgrade numpy after getting the error '[numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject'. I can't see any documentation in 'dev-requirements.txt' about what version each module is capable to run this program with.

@lukvmil
Copy link

lukvmil commented Jan 19, 2025

that worked for me. I had to downgrade to version 1.26.4. Version should be specified in package requirements

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