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 ...
Discy Latest Questions
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 ...
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- ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...