Quantcast
Browsing all 14126 articles
Browse latest View live

Is there a way to install python tkinter on manjaro linux?

I'm using manjaro linux, on VS Code when i try to pip install the tkinter module it keeps saying × This environment is externally managed╰─> To install Python packages system-wide, try 'pacman...

View Article


PySerial - carriage return (\r) not working as expected

I'm trying to communicate with a board via serial (rs232) port using PySerial.The board is a Renesas rl78 and below is my sample code. (Basically what I'm trying here is to execute some pre-defined...

View Article


Odoo 16 / custom website : Pagination problem

I paginated the search result. For the first, query set gives me perfect result , but the pagination set all pages, and I get all data from database by clicking on any page number.Here is my code:This...

View Article

Overriding method in subclass with a parameter type hint that is a subclass...

I have the following structure of a parent class and a child class which inherits from parent. The constructor of the parent takes a parameter of type ParentType, and the constructor of the child class...

View Article

How to convert a list to a comma separated string?

Using a for loop I get the data:58738121385139B9135A4251EF02B631B53C383I'm trying to get this data into one line separated by commas usinga = ', '.join(b);but I get a comma after every character...

View Article


Merging two dataframes based on dates that are overlapped using python

I have two dataframes, one that designates one characteristic and another that designates another characteristic, I wanted to join them, but in such a way that the result would be dependent of the...

View Article

Python: becomes slow after long time running of data analysis

I'm using Python to analyze a large dataset which is distributed in several files with different sizes. The analysis is like a database search, that I loaded the database and kept it in memory, then...

View Article

Unable to fetch the data using column name from pandas dataframe after...

I have created a pandas dataframe from an API endpoint. I have used the following to convert to a df.df = pd.json_normalize(js.loads(js.dumps(key_value))This however does create df as required but the...

View Article


Connecting chatbot with slack

I am currently working on a chatbot project for live customer support. I have developed the chatbot from scratch. The main aim is that the message sending in the chatbot must be displayed on the slack...

View Article


Apache Beam - AttributeError: Error trying to access nonexistent attribute...

**I want to ingest data into bigquery using following code and it is giving me following errors**I am very new to apache beam so help me to get better understanding.File "C:\Users\Stranger\OneDrive -...

View Article

Image may be NSFW.
Clik here to view.

reconstruction of image shows either black either square borders

I have trained two models (forward and backward).(The input to the models are images of type uint8, so I am dividing by 255)After predicting on each model, I receive two arrays:forward =...

View Article

How to convert AudioClassification model ced-tiny to android?

How to convert AudioClassification model ced-tiny and it's CedFeatureExtractor to android tensorflow lite or Pytorch Mobile and use it in java?ced-tiny: https://huggingface.co/mispeech/ced-tiny

View Article

How to hide fields in order_line based on some value of their parent...

Is there any way to hide some fields in purchase order line based on some conditions/value of their parent (order_id). I've tried this way:<field name="price_subtotal" attrs="{'invisible':...

View Article


Replacing values from a given column with the modified values from a...

I need to update the values of a column (X) in correspondance with certain values ('v') of another column Y with values from another column (Z) times some numbers and then cast the obtained column to...

View Article

automatic resizing of table in wx

When using wx.grid for creating table with wxpython, how can I automatically extend the number of rows and columns in the table once the user resizes the frame? If I create 5*5 table(grid) to fit on my...

View Article


How to loop a random number of times in jax with jit compilation?

I am using jax in python, and I want to loop over some code for a random number of times. This is part of a function which is jit compiled later. I have a small example below which should explain what...

View Article

How can I extract the last word from each row of a pyramid?

My function decode() needs to read the text from a .txt file, arrange the number-word pairs in numerical order in the shape of a triangle, and return a string of the last words on each row.I have...

View Article


selenium.common.exceptions.InvalidArgumentException: Message: invalid...

I have a list of URLs in a .txt file that I would like to run using selenium.Lets say that the file name is b.txt in it contains 2 urls (precisely formatted as below):...

View Article

Getting user profile picture using Aiogram from forwarded message

The problem is when i use get_user_profile_photos in bot if it's regular message it's return values but when it's forwarded messages it's return nothing.user_id =...

View Article

im working on a django project as a total beginner . block content end block...

here is my directoryworkspacebase.html :frontpage.html :output im getting :enter image description herei tryed removing spaces within block tags ..but nothing works , the raw django code is displayed...

View Article
Browsing all 14126 articles
Browse latest View live