Skip to content

Tag: linux

Python can’t read the environment variable

I used Ubuntu16.04 When I use sudo python3 into the interactive shell it can’t read the SECRET_KEY I set it in the /etc/profile.d/project.sh project.sh After reloading it but in vain. I also set in the ~/.profile But still got the error. How do I fixed it? [EDIT] It can work in sudo -E python3 But the f…

Showing a dynamic plane

I have written a Python program that continuously returns 4 changing Cartesian coordinates that align to form a square plane that can be at any given orientation; yaw, pitch, or roll. What is the best way to go about displaying the constantly updating plane in 3D space? Note: This is being done on a Linux mac…

Python & MS Word: Convert .doc to .docx?

I found several questions that were similar to mine, but none of the answers came close to what I need. Specifications: I’m working with Python 3 and do not have MS Word. My programming machine is running OS X and cloud machine is linux/ubuntu too. I’m using python-docx to extract values from a .d…