-
Notifications
You must be signed in to change notification settings - Fork 29
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
NameError: name 'copy' is not defined #2
Comments
Hi @adenant, Thank you for flagging this bug. You are doing it right, the problem is in the pyrsgis module and will be fixed in the next version. Till then could you please manually fix this on your system? Here's how:
Hope this works. Let me know if it does not. |
Thanks for the response. I fixed the issue, and the code for the first part ran. However, when I started the second part, there were no image chips found in the imagechip folder, is it an issue with the pyrgis as well? |
@adenant Please read the Medium blog carefully. If you use this function, there won't be any image chips in the folder. Image chips will be generated if you use the QGIS plugin. If you use this, it will directly load the chips as array and store in the 'features' variable. |
Hi,
Thank you for the tutorial. I tried to replicate the procedure, but when I ran the script for image chipping, I experienced the following error: "NameError: name 'copy' is not defined" (Image capture attached). I'm using Python 3.9.7. Do you know what causing the problem might be? Thank you.
The text was updated successfully, but these errors were encountered: