OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

After turning a python file into a .exe file the barcode module stops working

  • Thread starter Thread starter Fredrik
  • Start date Start date
F

Fredrik

Guest
After turning a python file into a .exe file the barcode module is no longer able to save an image file of a barcode.

for example this:

Code:
from barcode import Code39
from barcode.writer import ImageWriter

myImage = Code39("0007", writer=ImageWriter(), add_checksum=False)
myImage.save("myImage.png")

Will work as a .py file but no longer as a .exe file.
<p>After turning a python file into a .exe file the barcode module is no longer able to save an image file of a barcode.</p>
<p>for example this:</p>
<pre><code>from barcode import Code39
from barcode.writer import ImageWriter

myImage = Code39("0007", writer=ImageWriter(), add_checksum=False)
myImage.save("myImage.png")

</code></pre>
<p>Will work as a .py file but no longer as a .exe file.</p>
 

Latest posts

A
Replies
0
Views
1
AgencyAnalytics
A
S
Replies
0
Views
1
Stacker Media
S
C
Replies
0
Views
1
CC.Talent
C
Top