windows

Windows Curses Adding Weird Spacing

Windows Curses Adding Weird Spacing Question: I have some python code that uses curses to continuously print "Test Bot." And allowing me to send messages at the same time now its printing "Test Bot." fine but when I try to enter "Test User." there is some weird spacing before it Here’s the code: import curses, …

Total answers: 1

How to get the files inside a directory link with python

How to get the files inside a directory link with python Question: This is probably super easy, but after an hour of trying, I haven’t been able to find it. From a specific folder inside a database called /Database/Images/, I manually created a folder link with Windows and placed it at, /Tests/Images. With that done, …

Total answers: 1

Problem installing a Python program from GitHub

Problem installing a Python program from GitHub Question: I am trying to install the MQTT simulator. I have python v3.3.10 installed in my computer. I followed this video between 1:48 and 5.43, so now I have a folder in my desktop called python_project, inside of which there is a folder called venv. I have downloaded …

Total answers: 1

How to use subprocess.run with correct path on windows?

How to use subprocess.run with correct path on windows? Question: On windows 10 using python 3.10.10 I am trying to run a windows executable, but there is some issue with the path to the folder of the executable. I am trying to run the following code path = r"C:/Program Files (x86)/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin" result = subprocess.run(command, cwd=path) …

Total answers: 1

Displacement vibration sensor using nidaqmx and python

Displacement vibration sensor using nidaqmx and python Question: I’m trying to make a program in python using tkinter. The user should be able to use a displacement vibration sensor or transducer. There are mainly two kinds of displacement sensors used for vibration analysis, the eddy probes, and accelerometers with double integration. The current notation to …

Total answers: 1

After installing windows_curse, it shows ImportError: cannot import name 'resizeterm' from 'curses'

After installing windows_curse, it shows ImportError: cannot import name 'resizeterm' from 'curses' Question: I am testing pv3d and have downloaded packages already. In testing, I’ve downloaded it using pip install windows_curses, but it displayed ImportError: cannot import name ‘resizeterm’ from ‘curses’ when I was running from curses import resizeterm, what should I do to solve …

Total answers: 1

Qt for python not working: Spyder not launching and matplotlib unable to plot

Qt for python not working: Spyder not launching and matplotlib unable to plot Question: I am running Windows. I have Anaconda and several environments there, I use Spyder, and also Visual studio Code. After updating packages (many, I cannot really tell which ones), spyder cannot be launched anymore. I get a window error with the …

Total answers: 1

Can't lauch spyder on new envs

Can't lauch spyder on new envs Question: When i lauch spyder on another env than "base" i get this error : fromIccProfile: failed minimal tag size sanity C:Usersesto5anaconda3envsPIPlibsite-packagesparamikotransport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated "class": algorithms.Blowfish, Traceback (most recent call last): File "C:Usersesto5anaconda3envsPIPScriptsspyder-script.py", line 10, in <module> sys.exit(main()) File "C:Usersesto5anaconda3envsPIPlibsite-packagesspyderappstart.py", line 252, in main mainwindow.main(options, args) …

Total answers: 1

Python subprocess: How can I pass a text file as input?

Python subprocess: How can I pass a text file as input? Question: I am in charge of updating some old code with Python. I was originally given a batch file to run it in windows as follows: copy .datarandomdata.txt tape20 copy .InputPROGM.INP . progm_64.exe < PROGM.INP > PROGM.OUT The goal is to not use the …

Total answers: 1