Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use of the openpyxl library
#1
Hello, I work in a Windows environment and use the openpyxl library to read and manipulate Excel files.
When installing the application on a new server, I notice that this library completely blocks the app's startup: at launch, after a few moments, I am presented with the DOS shell prompt again without any error message.
To isolate the problem, I wrote the following code that shows the same behavior: when encountering the "import openpyxl" instruction, the app stops and returns to the system prompt. I would like to receive suggestions. Thank you.
Would you like me to offer some advice on troubleshooting this issue with openpyxl?

import logging
logging.basicConfig(level=logging.DEBUG)
print("Before import")
try:
    import openpyxl
    logging.debug("Ok")
except Exception as e:
    logging.error(f"Error during openpyxl import: {e}")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PyInstaller, how to create library folder instead of library.zip file ? harun2525 2 5,791 May-06-2017, 11:29 AM
Last Post: harun2525

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020