1
Python and Java API / Can't work in headless anymore
« on: November 07, 2023, 06:54:38 PM »
Hello!
I've started working again on my automatic headless processing after a few months, but it seems nothing works anymore. When trying to open and save a document, I have several errors such as "saving disabled" and "no license found". However, the path to AGISOFT_license is set in the environment variables, and the GUI says my Professional license is indeed activated. True, recently I have made some tests with newer versions of Metashape, but I have reinstalled 1.8.4 since. Also, I have moved my script folder from C:/ to F:/, but I'm not sure why this should be a problem. Also, my Python interpreter is 3.8.
At last, inside VScode, I've tried Metashape.License.activate('key') but I have this error
How can I fix this and set everything back as it used to work?
EDIT : I think I found the problem : I had to reinstall the proper Python wheel, because the wheel for 2.0 was still up. I'm leaving this here anyway in case someone else encounters the problem!
Thank you
I've started working again on my automatic headless processing after a few months, but it seems nothing works anymore. When trying to open and save a document, I have several errors such as "saving disabled" and "no license found". However, the path to AGISOFT_license is set in the environment variables, and the GUI says my Professional license is indeed activated. True, recently I have made some tests with newer versions of Metashape, but I have reinstalled 1.8.4 since. Also, I have moved my script folder from C:/ to F:/, but I'm not sure why this should be a problem. Also, my Python interpreter is 3.8.
At last, inside VScode, I've tried Metashape.License.activate('key') but I have this error
Code: [Select]
+ CategoryInfo : ObjectNotFound: (Metashape.License.activate:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
How can I fix this and set everything back as it used to work?
EDIT : I think I found the problem : I had to reinstall the proper Python wheel, because the wheel for 2.0 was still up. I'm leaving this here anyway in case someone else encounters the problem!
Thank you