Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

ErrorCorner

ErrorCorner Logo ErrorCorner Logo

ErrorCorner Navigation

  • Home
  • Contact Us
  • About Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Contact Us
  • About Us
Home/Python

Discy Latest Questions

Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 8
Kenil Vasani
Asked: December 14, 2020In: Python

Python error ‘ ModuleNotFoundError:’

  • 8

I am getting this error Traceback (most recent call last): File "Exporter.py", line 3, in <module> import sys,getopt,got,datetime,codecs File "C:\Users\Rohil\Desktop\GetOldTweets-python-master\got\__init__.py", line 1, in <module> import models ModuleNotFoundError: No module named 'models' my directory tree is: C:\Users\Rohil\Desktop\GetOldTweets-python-master\got this contains 2 folders: manager and models and 1 __init__.py file with the ...

importerrorpython
  • 1 1 Answer
  • 13 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 8
Kenil Vasani
Asked: December 14, 2020In: Python

ValueError: could not convert string to float:

  • 8

I am following a this tutorial to write a Naive Bayes Classifier: http://machinelearningmastery.com/naive-bayes-classifier-scratch-python/ I keep getting this error: dataset[i] = [float(x) for x in dataset[i]] ValueError: could not convert string to float: Here is the part of my code where ...

csvmachine-learningpythonscikit-learn
  • 1 1 Answer
  • 9 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 2
Kenil Vasani
Asked: December 14, 2020In: Python

Python error: FileNotFoundError: [Errno 2] No such file or directory

  • 2

I am trying to open the file from folder and read it but it’s not locating it. I am using Python3 Here is my code: import os import glob prefix_path = "C:/Users/mpotd/Documents/GitHub/Python-Sample- ...

filepythonpython-3.x
  • 1 1 Answer
  • 13 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 3
Kenil Vasani
Asked: December 14, 2020In: macos, Python

ImportError: No module named scapy.all

  • 3

I’m running macOS Sierra and Python 2.7. In my terminal I’ve installed scapy with: pip install scapy Requirement already satisfied: scapy in /usr/local/lib/python2.7/site-packages But running this: from scapy.all import * for pkt in sniff(iface='en0'): print pkt Gives me this: python test.py Traceback (most recent call ...

macospythonscapy
  • 1 1 Answer
  • 12 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 8
Kenil Vasani
Asked: December 14, 2020In: Python

Python: urllib.error.HTTPError: HTTP Error 404: Not Found

  • 8

I wrote a script to find spelling mistakes in SO questions’ titles. I used it for about a month.This was working fine. But now, when I try to run it, I am getting this. Traceback (most recent call last): File ...

pythonpython-3.xurllib
  • 1 1 Answer
  • 10 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 5
Kenil Vasani
Asked: December 14, 2020In: Python

TypeError: can only concatenate str (not “float”) to str

  • 5

I’m trying to make a program that compares the density of a certain mass and volume to a list of densities of compounds, and return the type of compound I am analyzing. This is the part of the code that is ...

python
  • 1 1 Answer
  • 11 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 4
Kenil Vasani
Asked: December 14, 2020In: Python

How to fix “ValueError: Expected 2D array, got 1D array instead” in sklearn/python?

  • 4

I there. I just started with the machine learning with a simple example to try and learn. So, I want to classify the files in my disk based on the file type by making use of a classifier. The code ...

arraysnumpypythonscikit-learn
  • 1 1 Answer
  • 11 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 4
Kenil Vasani
Asked: December 14, 2020In: Python

Error (-215) size.width>0 && size.height>0 occurred when attempting to display an image using OpenCV

  • 4

I am trying to run a simple program that reads an image from OpenCV. However, I am getting this error: error: ......\modules\highgui\src\window.cpp:281: error: (-215) size.width>0 && size.height>0 in function cv::imshow Any idea what this error means? Here is my code: from matplotlib import pyplot ...

opencvpython
  • 1 1 Answer
  • 10 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 0
Kenil Vasani
Asked: December 14, 2020In: Python

ValueError: invalid literal for int() with base 10: ‘196.41’

  • 0

I don’t understand why it works with different scenarios, but not with this one. Basically, some gentleman helped me out HERE with improving my code to scrape weather, which works perfectly. I then tried to do the same to ...

beautifulsoupdata-sciencepythonvalueerrorweb-scraping
  • 1 1 Answer
  • 9 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 2
Kenil Vasani
Asked: December 14, 2020In: Python

ModuleNotFoundError: No module named ‘utils’

  • 2

I’m trying to run the object_detection API in Tensorflow using my webcam as an input. The error says: “from utils import label_map_util ModuleNotFoundError: No module named ‘utils'” Which relates to the lines: from utils import label_map_util from utils import visualization_utils as vis_util I’ve ...

opencvpythontensorflow
  • 1 1 Answer
  • 11 Views
Answer
1 2 … 37

Sidebar

Ask A Question
  • Popular
  • Kenil Vasani

    SyntaxError: invalid syntax to repo init in the AOSP code

    • 5 Answers
  • Kenil Vasani

    xlrd.biffh.XLRDError: Excel xlsx file; not supported

    • 3 Answers
  • Kenil Vasani

    Homebrew fails on MacOS Big Sur

    • 3 Answers
  • Kenil Vasani

    runtimeError: package fails to pass a sanity check for numpy ...

    • 3 Answers
  • Kenil Vasani

    ERROR: torch has an invalid wheel, .dist-info directory not found

    • 2 Answers

Explore

  • Most Answered
  • Most Visited
  • Most Voted
  • Random

© 2020-2021 ErrorCorner. All Rights Reserved
by ErrorCorner.com