We have an aspose cad license for the product
Aspose.CAD for Python via .NET
And I’m trying to use this license via the python library
import aspose.cad as cad
license = cad.License()
license.set_license(license_path)
but I get the following error:
RuntimeError: Proxy error(InvalidOperationException): The license is not valid for this product.
This seems strange as the license should be valid for the python sdk?
@revantk
It appears you are facing a licensing issue with the Aspose.CAD for Python via .NET SDK. The error message indicates that the license you are using is not valid for the product you are trying to access.
Cause: This issue typically arises when the license is either for a different product, the license path is incorrect, or the license file is corrupted.
Solution: Here are the steps to troubleshoot and resolve this issue:
-
Verify License Type: Ensure that the license you have is specifically for “Aspose.CAD for Python via .NET”. If the license is for a different product or platform, it will not work.
-
Check License Path: Confirm that the license_path
you are providing in your code is correct and points to the actual license file.
-
License File Format: Ensure that the license file is in the correct format and not corrupted. You can open it in a text editor to verify its contents.
-
Correct Usage: Make sure you are calling the set_license
method correctly. This method should be invoked before any other operations on the Aspose.CAD library.
-
Contact Support: If the above steps do not resolve the issue, reach out to Aspose support with your license details and the error message for further assistance.
Next Steps: Implement the troubleshooting steps outlined above. Here’s a minimal code snippet for setting the license:
import aspose.cad as cad
license = cad.License()
license.set_license("path/to/your/license.lic")
Make sure to replace "path/to/your/license.lic"
with the actual path to your license file.
If you have any further questions or need additional assistance, please let me know!
@revantk,
Hi,
please follow this example and send us your license file privately for investigation.