python

  1. L

    Using Scrapy to collect comments from internet by keywords

    Hello! Today when ChatGPT is widely used is web scraping tools like scrapy still necessary? I learn Scrapy and It is interesting to me: If I can use Scrapy to collect comments of our customers from internet by keyword (for one week, for example)? It is my daily job routine. Thank you!
  2. tinfoil-hat

    Compiling Pytorch - Installing Stable Diffusion on Debian Bookworm with AMD Card and ROCm

    Hi there, I have an advanced Question. I want to install stable Diffusion on Debian Bookworm. I am trying to replicate this on my system: https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/9591 Clone ROCm via Docker sudo docker pull rocm/composable_kernel:ck_ub20.04_rocm5.7...
  3. N

    PDF To Data - Python help!!

    Hi. I'm making a medical chatbot called prodoc. I use just basic codes for that. I need to insert many medical PDFs and get data from those. So, once users ask a question, it will provide the answer. I'm a beginner for python & programming. Can anyone guide me, please? (I can't afford much). I...
  4. N

    I need your Urgent help for running Tkinter on IOS (Urgent⚡)

    Hi. I'm a beginner programmer. I'm only 16. I was selected for a competition called YCS. I have to present my app to them (Not Online; I have to go there and show it). I Made the app using Tkinter. So, I'm unable to transport my desktop PC there. I have an Apple iPad 10th Gen, I can use it. But...
  5. B

    What goes on behind the scenes when a window is rendered?

    What goes on behind the scenes when I render any window. Is it possible to somehow capture all the frames into a buffer programmatically? I am trying to build a basic window sharing program but want to learn more about how a window is rendered and it's possible to somehow capture all the frames...
  6. L

    Installing python library's

    I would like to make a webscraper in python but it won't even let me install a library, as you can see i typed the right command (i think its the right one (: ). but when i try to run my python it won't do it because it says that the library isn't installed. Does anyone know what is wrong and a...
  7. D

    Why memory RSS is low but throughput is high

    I'm working on a NUMA-related benchmark and got an issue troubling me for a week. I use numactl to pin a metrics multiplication workload to use node0's CPU and node1's memory like this: However, I observe tons of memory access still goes to node0 (throughput is high), either using pcm or...
  8. berserk

    Terminal problem when i try to use script

  9. Tolkem

    Turn your Python script into a command-line application

    Hi, everyone! Hope you're all having a nice life! :) So, I just bumped into this while checking my feed https://opensource.com/article/22/7/bootstrap-python-command-line-application and thought I'd share here. An excerpt:
  10. avanturismo

    Python on Linux - Install/uninstall/reinstall

    Dear Linux community I'm trying to uninstall previously installed python3 after uninstall process I'm checking in terminal for python version (in case its not uninstalled) ```$ python3 --version``` Please see screen attached I'm not sure if its properly uninstalled what does it means on the...
  11. D

    Make the Web Great Again

    Because of the browser wars, a small number of companies attempting to monopolize the web, personal websites becoming a dying trend, social media addiction, spyware, and numerous other issues affecting the modern web, I've occasionally been thinking about how we could remove all of them and...
  12. digitaltrails

    Seasons greetings from under the process tree

    Earlier in the year I wrote a Python script to monitor for run-away processes. It includes a GUI overview of process activity with lots of blinking dots (I fancied some blinking lights). I've recently added an option for a more festive layout. There is a video of the blinking lights at...
  13. cloudytechi147

    Python sub process script works on my Windows but not on my Linux

    I write a simple script to check the subprocess module and I tested it on both Windows and Linux. The script works fine on Windows but not on Linux. The interpreter in python is used in 3 versions on both. import subprocess host = input("Enter a host to ping: ") p1 = subprocess.Popen(["ping"...
  14. S

    Error while trying to install 'pymongo' libary

    I tried to run my code on Linux and get this error: ModuleNotFoundError: No module named 'pymongo' then I install with these commands : and still, get an error I've tried to search this error - specific on 'pynomgo' and couldn't find anything. I'd be happy if anyone can help me here...
  15. C

    Help with Virtualenv

    Hello, sorry I am new to linux. The issue I am running into is with installing virtualenv. I am using windows (ubuntu) for reference. First I tried this which does not work for windows or the version I have (im not sure) $ virtualenv venvCommand 'virtualenv' not found, but can be installed...
  16. C

    Errors when attempting to unpack python-pkg-resources_44.1.1-1_all.deb

    I am running a kai linux 2020.1 64 bit VM. when I run sudo apt upgrade I get the following errors: Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back: php-common...
  17. S

    Totally confused

    Hello I'm brand new to Linux. I have an old Windows laptop I use for data logging. I have a python program running on it as a data logger and soon to control some Arduino controller boards. I hate windows and it's trying to crash. I'd like to change it to Linux, but after reading several pages...
  18. C

    Send screen via socket problem for systemd (I think)

    server.py import socket import cv2 import struct import numpy as np from PIL import ImageGrab from time import sleep import pickle con = socket.socket(socket.AF_INET, socket.SOCK_STREAM) con.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1) con.bind(("localhost",3344)) con.listen(1) while...
  19. JohnnyRobot

    Python Script Spawned by Cron or Systemd doesn't write files..?

    Hi all, I'm not really sure where this question should go. I'm not even sure if it's a Linux issue or a Python issue. I've written a Raspberry Pi application (Ubuntu Mate) that's essentially a timed camera. Every 30 seconds, it snaps an image and writes it to disk. When I start the...
  20. M

    Lubuntu Installation Issues

    Tried to install Linux mint on a wiped hard drive with a Lenovo X130E I thought it was an issue with my bootable flash drive. Decided to try lubuntu (same laptop) got most of the way through installing and got thi error message Boost.Python error in job "bootloader". Command 'grub-install...
Top