Category "python-3.x"

ValueError: Ran into a $end where it wasn't expected - RPLY Parsing

I'm trying to create a parser for a basic interpreted language. When I run my program I get the following error: ValueError: Ran into a $end where it wasn't exp

How to allow extraction of all files even the ones with same name?

I'm struggling with unzip process with this code: I have two separated .zip files and each has the same file name and file type, but when I execute this code on

Messenger bot send a message every 5th message

I am making a simple bot for messenger on python using fbmq, that handles quick questions. I made bot to send a message when users text to my Facebook page ou

ModuleNotFoundError: No module named 'tensorflow.python.eager' when loading Sequential model

When attempting to import Sequential from keras.models, I get the error shown below. I have already uninstalled and reinstalled tensorflow through PIP, but am n

How to fix missing double quotes issue when parsing JSON data?

I am running a piece of code in Python3 where I am consuming JSON data from the source. I don't have control over the source. While reading the json data I am g

With the Python-Binance API, my limit order is only partially filled

I'm using Python 3.9 and the Python - Binance API, version python-binance==1.0.15. In their test environment, I'm placing buy orders like so order=self._get_au

I get "Release of profile requested but WebEnginePage still not deleted. Expect troubles !" even after calling app.exec()

I have a python code like below import sys from PyQt5 import QtWidgets, QtWebEngineWidgets from PyQt5.QtNetwork import QNetworkCookie from PyQt5.QtCore import Q

How to add Screen Manager to my KIVYMD code, but not in kv file only class method

I'm new here, I have a small problem in kivymd. Is there anyone here who would be able to help me? this is my main.py file from kivymd.app import MDApp from k

Encountering Fatal Python error when I try to use pip in command prompt

I am a new programmer who is trying to follow this tutorial about pip. In the tutorial, you are asked to go into command prompt and type 'pip'. You are supposed

Setting Up a Python Virtual Environment with Hydrogen in Atom

I'm in the middle of switching from VS Code to Atom and I'm trying to set up a virtual environment for my python project. It was pretty easy to do in VS Code, I

Challenge value not responding when connecting to request URL using python

I am trying to connect to my request URL in slack but it does not respond with the challenge value like it is supposed to. This has never been an issue before a

How to Ignore errors in Dataframe to_sql method

I am using Pandas DataFrame.to_SQL() to insert data from dataframe to table. Nothing gets loaded if even a single record has loading issues, for example: if a i

Utilising Cython with Pyinstaller

I am trying to build a program in python using Cython and PyInstaller. Before starting, I built this test program. However, the two modules aren't working toget

AttributeError: 'int' object has no attribute 'split' for pandas

AttributeError: 'int' object has no attribute 'split' Data is : print(df) Content Page no 0 My name is mark 3 1 My name is jeff

Use Python plotly chart in PHP

I have created a pie graph with Python plotly library fig = go.Figure(data=[go.Pie(labels=data["x"], values=data['value'])]) fig = dcc.Graph(id='pie_graph', fi

Python 3 Jump Tables

I am trying to figure out how to create a basic jump table, so I can better understand different ways of creating menus in Python 3.5.6. Here is what I have so

after i print a list, it just despeared

In the following code, first create a list collection in the loadDataSet () function, and then use the map function to convert it into a set D ,after that,it ca

Why is 'NoneType' object not iterable in HackerRank, but not PyCharm?

Using Python 3.x, I'm trying to round up students grades given a teacher's weird way of grading. Basically, if the student grade is below 38, do nothing. If the

How to use the second parent class methods which is inheriting from an interface in python?

I am trying to implement an interface and this interface is taken by two concrete classes say class First and class Second, I have another class that takes thes

enabling pylint_django plugin in vscode, pylint stop working

That's my user settings in vscode { "python.pythonPath": "/Users/cristiano/miniconda3/envs/django-rest-2/bin/python", "python.linting.pylintEnabled": true,