Skip to content

Failure to install Sybase package on Windows 10 / Python 3.6

I’m looking to connect to a Sybase db in PyCharm. I’m getting the following errors when installing from available packages and the terminal: Has anyone succesfully installed on Win10? Peter Answer I had the same challenge. I resolved it by using a trial version of the Devart ODBC Driver for ASE av…

Remove timezone (+01:00) from DateTime

I would like to delete the timezone from my dateTime object. Currently i have: 2019-02-21 15:31:37+01:00 Expected output: 2019-02-21 15:31:37 The code I have converts it to: 2019-02-21 14:31:37. Answer In the first line, the parameter utc=True is not necessary as it converts the input to UTC (subtracting one …

Why is this tkinter program freezing?

I’m having an issue with my GUI freezing, and I don’t know why. The run method is not releasing the lock. Demo program Problem Spam-clicking the progress bar freezes the program. Attempts at debugging I used mttkinter by adding import mttkinter to the import statements and the problem persists. Th…

Subprocess call with exit status 128

Essentially, I am trying to use a subprocess call to checkout a git commit at a specific sha hash. However, I keep getting the error subprocess.CalledProcessError: Command ‘[‘git’, ‘checkout’, ’62bbce43e’]’ returned non-zero exit status 128. This is my code belo…