The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 4,221β€…    Votes:  2β€…
Tag : python  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1206912
Title: Why does a Python program I write in Windows not work in Linux?
ID: /2020/01/30/Why-does-a-Python-program-I-write-in-Windows-not-work-in-Linux_
Created: January 30, 2020
Upload: April 8, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


As mentioned in other answer try running in Python interpreter before compiling.

It is likely some code will have to be changed. For example if your original program contains:

INPUT_FNAME='\Documents\python_datain\today.csv

It would have to be change to:

INPUT_FNAME='~/Documents/python_datain/today.csv'

If it’s low level python and does such things as moving mouse on screen, closing popup browser windows and adjusting screen brightness and color temperature many changes will be needed with added calls to xdotool, xrandr and possibly wmctrl.

⇧ Why are so many Linux kernels still being updated? Laptop selectively will/will not wake up from suspend on Ubuntu 18.04.3  β‡©