After pip install aspose-tasks, run the script that aspose web page provide. I got the error message as following: Traceback (most recent call last): File “/home/sdo/文件/python/AsposeTask/task.py”, line 1, in import aspose.tasks as tsk File “”, line 1027, in _find_and_load File “”, line 1006, in _find_and_load_unlocked File “”, line 672, in _load_unlocked File “”, line 640, in _load_backward_compatible KeyError: ‘aspose.tasks’,
import aspose.tasks as tsk
# Open existing project
prj = tsk.Project("HelloProject.mpp")
# Save to PDF
prj.save("output.pdf", tsk.saving.SaveFileFormat.PDF)
@AnsonHuang ,
looks like your Python Interpreter cannot locate or access the installed package.
The issue can occur when you have several Python installation on the machine.
You can check the folder where the package is located using ‘pip show aspose-tasks’.
Please ensure that your Python Interpreter \ IDE uses this folder.
Many thanks for your reply. For my developing machine, installed anaconda for the python virtual environment. It would be this kind of problem. I will try another way for the virtual environment.
I got another error message as following:" RuntimeError: Proxy error(TasksRenderingException): Cannot find fallback font ‘Generic Sans Serif’. Please check that the system font folders or font folders specified in FontSettings contain True Type font files."
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.