How to scrape eBay fields like condition, size, model, year, etc.?
I'm a very new coder, and I'm using Collab and Python. I'm trying to scrape eBay for information on products, primarily sneakers. I want to scrape the fields on the listings and need the code to return...
View ArticleMSAL No response after I depoly my streamlit login page to Azure APP service
I wrote a login page using streamlit and MSAL, because I want to authenticate through microsoft Entra ID. Everything work fine when I ran the script on my local machine. I was able to get redirect to a...
View ArticleHow to fix this KeyError while training my model?
I wrote a code that will fine-tine my QnA model using huggingface. The code will import questions and answers from a json file and then fine tune a HF Question-Answer model with the data from the json...
View Article"py" not recognized yet "python" is in Powershell [closed]
I am currently attempting to build a solution in Visual Studio that calls upon "py" to run. It does not recognize py and throws an error.In Powershell,"python" works."py" does not work.In Command...
View Article"No Windows Console found. Are you running cmd.exe?"
All I did was copy and pasted some example code from PyInquirer into my IDE and it doesn't work and I am confused as to why.THE CODE: from __future__ import print_function, unicode_literalsfrom...
View ArticleError.__init__() got an unexpected keyword argument 'trainable' when try to...
I've trained a NER model and save it as .keras file, when I try to load the model, it pops up this errorTypeError: <class 'modeling.NERModel'> could not be deserialized properly. Please ensure...
View Articlecan I get EXACTLY 60 fps in my pygame game?
Ok, I've been testing a game I've made, and everything is fine! everything works as it should, except that... there is an animation synchronized with music, this animation runs at 30 fps, so I have a...
View ArticleHow can I read an Excel file using Python Selenium and insert it into my...
I created a script to insert data from an Excel file into my web form via Selenium Python but I keep getting an error.I've tried several options but this is the only one that works best at the...
View ArticleHow to have multiple python multi-threading save to a variable
Im working on doing some image processing on a very large image 25 088 pixels by 36 864 pixels big. since the image is very large i do the image processing by 256x256 pixel 'tiles'. I noticed that on...
View Articlemysql.connector.errors.ProgrammingError: 1064 (42000) on python
My code:cursor = cnx.cursor()xlsx = pd.read_excel('online_retail.xlsx')for index, row in xlsx.iterrows(): values = [row['Invoice'], row['StockCode'], row['Description'], row['Quantity'],...
View ArticleAn error that i dont know how to fix, im a beginner and im new to thi
I'm doing the python mega course on udemy, and I get an errorI get an error even though i did exactly what the instructor did. It is supposed to show all your todo items when you type "show" but it...
View ArticleAbout changing longitude array from 0 - 360 to -180 to 180 with Python xarray
I am a matlab user trying to use Python more for my computations recently. I am using xarray and would like to change my longitude array from 0 - 360 to -180 to 180 of a geophysical field. But when I...
View ArticlePip install not working with visual studio code
I am attempting to install the "pygame" module. I can get it working and run the aliens example code in the terminal but not in my own python files.I am using visual studio code. I have installed...
View Articlethe token is not being validated to return information
The /login route gives me the token, but when I go to the /userinfo route and send the token it gives me an invalid tokendef auth(): cursor = conexao.cursor() if verifica(): token = jwt.encode({'nome':...
View Articleinstall postgresql extension before pytest set up database for django
I need to install citext extension to my postgresql database for django project. For the project itself it went smoothly and works great via migrations, but my pytest is configured with option...
View ArticleNeed help in refactoring query as Grid db doesn't support with clause CTE
I am working on a project where I need to use the "WITH" clause to create CTE's in my queries. This works well in SQL Server, but I found out that GridDB does not support the "WITH" clause.I tried...
View ArticleWhy is my State not being passed correctly in my LangGraph workflow?
I have a simple series of nodes that are chained together with conditional edges. The first two are shown here:def email_router(state: TypedDict) -> None: node_results, state = get_emails(state) if...
View ArticleHow link code at runtime (Just in time compilation technique)?
I'm thinking about best way to create python baseline JIT compiler. The target - create linear code without jumps between opcode instructions in main interpreter loop. Is there any library which...
View Articlehuggingface optimum circular dependency issue
I have a fresh virtual env where I am trying to exec an onnx model like so:# Load Locally Saved ONNX Model and use for inferencefrom transformers import AutoTokenizerfrom optimum.onnxruntime import...
View ArticleHow to get the distribution name of an imported package in Python3.10+
I have multiple distributions that each provide a Python package of the same name (because they have the same API and same functionality, just different implementations). I want to be able to report...
View Article