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

failed to load librasterise.so, 'NoneType' object has no attribute 'rasterise' #100

Open
huangfaan opened this issue Mar 26, 2021 · 2 comments

Comments

@huangfaan
Copy link

run the 'square_test.py', have a problem:

WARNING: failed to load librasterise.so; rasterisation functions will be unavailable:
/home/nd/PycharmProjects/dirt-master/dirt/librasterise.so: cannot open shared object file: No such file or directory

AttributeError: 'NoneType' object has no attribute 'rasterise'

who can help me to answer?

@pmh47
Copy link
Owner

pmh47 commented Mar 26, 2021

This means that the install/build did not work correctly. I see you posted lots of comments on other issues, but it is not clear what is current status. Did you manage to install with pip, and fix the problem with EGL? Or did you check out dirt repo separately and build with cmake?

@chenw191
Copy link

chenw191 commented Apr 5, 2021

I solved it by changing cmake version to 3.10.
https://cmake.org/cmake/help/git-stage/policy/CMP0104.html
It seems that cmake 3.18 introduced something new and causes this error.

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