@AlainGyger,
Thanks for sharing the details.
We apologize for the exception you are experiencing while using both Aspose.Words for Python via .NET and Aspose.BarCode for Python via .NET in your environment. We require thorough evaluation of the issue. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): BARCODEPYTHONNET-91
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
I’m going to step back and see if there’s a different way to solve my problem. I’m currently using Words to convert DOCX to PDF and it’s working without issue.
I’ve recently started using QR codes in my DOCX files and am now getting “Error! Bar code generator is not set” in my PDFs where the QR code is supposed to be.
The solution that was suggested was to use barcode-for-python-via-net.
Was that suggestion wrong? Am I able to work with QR codes using Words alone? Is there a different way to do this?
Thank you,
Alain
@AlainGyger,
Yes, you need to use Aspose.BarCode for Python via .NET library (which is a set of barcode generation and reading APIs to be integrated in Python applications) to generate QR codes.
Aspose.Words for Python via .NET is primarily a Word processing API (read, write, render, etc.) and may not do QR code manipulation. However, I will move your thread to the Aspose.Total category, where one of our colleagues from the Aspose.Words team will check your original issue and may provide appropriate details and guidance. @alexey.noskov FYI.
I ran that command, after uninstalling and purging the cache.
I’m now getting a different error:
AttributeError: module ‘aspose.pydrawing’ has no attribute ‘_C_APITV1_Color’
The above exception was the direct cause of the following exception:
ImportError: can’t import capsule ‘aspose.pydrawing._C_APITV1_Color’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/Users/Library/PycharmProjects/Program/main.py”, line 850, in
import aspose.words as aw
ImportError: One or more errors occurred while loading the module ‘aspose.words’ (-1009)
Alain
@AlainGyger It looks like the problem occurs because different versions of wrapper have been used to produce Aspose.Words and Aspose.BarCode 25.8 versions. Could you please try uninstalling both packages and and install only Aspose.Words? Does the problem still occur in this case on your side. Also, you can try uninstalling both packages and installing lower versions of them. For example try installing 25.7 versions of both packages.
I needed to go to version 25.7 for both Words and Barcode to work.
Does Barcodes support generating QR codes from a mailmerge word document that contains “DISPLAYBARCODE” code?
Thanks,
Alain
@AlainGyger To render barcodes upon rendering document to Fixed Page formats, like PDF, XPS, etc., it is required to implement IBarcodeGenerator. Unfortunately, implementing IBarcodeGenerator interface is not supported in Aspose.Words for Python yet. We have opened WORDSPYTHON-114 issue for this.
Hi @alexey.noskov,
Thanks for the update. Do you know how long implementing IBarcodeGenerator will take … I have a tight deadline for a project that requires QR codes to be generated?
Thanks,
Alain
@AlainGyger I am afraid currently we cannot provide you any estimates. The issue is currently in the queue for analysis. We will keep you informed and let you know once the issue is resolved or we have more information for you.
@AlainGyger
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSPYTHON-114
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Hi @alexey.noskov ,
May I get an update on ticket WORDSPYTHON-114?
Thanks,
Alain
@AlainGyger I am afraid there are no news regarding the issue. It is in the queue for analysis.
@AlainGyger,
Please note, for Aspose.BarCode for Python via .NET, aspose.pyreflection module will be updated in the upcoming Aspose.BarCode for Python via .NET v25.11 release which is due in the last week of November (this month) or in December (next month).
@amjad.sahi ,
That’s excellent to hear! Thank you for the update.
Alain
@AlainGyger,
You are welcome. Please stay tuned and keep an eye out for the upcoming release.
@alexey.noskov May I get an update on ticket WORDSPYTHON-114?
@AlainGyger Unfortunately, the issue is not resolve yet. I have asked our development team for an update. We will keep you updated and let you know once it is resolved or we have more information for you.
@alexey.noskov May I get an update on ticket WORDSPYTHON-114?
@AlainGyger Most likely, the issue will be resolved in the next 26.1 version of Aspose.Words for Python. We have already made the required changes in the main .NET code of Aspose.Words.
That’s excellent, thank you for the update!
1 Like