Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Error on Python Version?
Post: RE: Error on Python Version?

Okay to put things in context, I am posting the code for the program, You can see where it fails. #!/usr/bin/env python # coding: utf-8 # https://opendatascience.com/intro-to-natural-language-proce...
ErnestTBass General Coding Help 6 3,513 Dec-09-2020, 04:02 PM
    Thread: Error on Python Version?
Post: RE: Error on Python Version?

I put the print statement that you gave me directly in the code. per SGD classifier i dati devono essere numerically encoded, not dict from sklearn.linear_model import SGDClassifier clf = SGDClassif...
ErnestTBass General Coding Help 6 3,513 Dec-09-2020, 01:44 PM
    Thread: Error on Python Version?
Post: RE: Error on Python Version?

Okay, I am sure that you are right. In my case in seems that X_train and y_train (or both) are numbers. How did they become dict? That error just makes no sense. It seems that somehow they went from ...
ErnestTBass General Coding Help 6 3,513 Dec-08-2020, 09:44 PM
    Thread: Error on Python Version?
Post: Error on Python Version?

#per SGD classifier i dati devono essere numerically encoded, not dict from sklearn.linear_model import SGDClassifier clf = SGDClassifier() clf.fit(X_train, y_train) train_score = clf.score(X_train, y...
ErnestTBass General Coding Help 6 3,513 Dec-08-2020, 07:05 PM
    Thread: ModuleNotFoundError: No module named 'fcntl'
Post: RE: ModuleNotFoundError: No module named 'fcntl'

Oaky, thank you. I will switch OS's to Ubuntu. Respectfully, ErnestTBass
ErnestTBass General Coding Help 2 20,179 Dec-05-2020, 02:39 PM
    Thread: ModuleNotFoundError: No module named 'fcntl'
Post: ModuleNotFoundError: No module named 'fcntl'

I installed bpython quite easily no problem. However whenever i try to run it anything I get this error. C:\Users\Newport_j\Downloads>bpython --V Traceback (most recent call last): File "c:\user...
ErnestTBass General Coding Help 2 20,179 Dec-04-2020, 07:32 PM
    Thread: bython on full screen editor
Post: bython on full screen editor

Can be bpython be used with a full screen editor like gedit? I know this editor very well and I think some python code would benefit from using it and bython to debug. The bpython literature is very ...
ErnestTBass General Coding Help 1 2,070 Dec-02-2020, 03:17 PM
    Thread: no module named finbert found
Post: RE: no module named finbert found

I am not using Anaconda, but I will try what you said. Thanks for your help. Please understand, that although I use python everyday, there are still some basic errors that I occasionally trip over. ...
ErnestTBass General Coding Help 4 4,594 Nov-30-2020, 09:18 PM
    Thread: no module named finbert found
Post: RE: no module named finbert found

I think that I see the issue. I am just not sure what to do to fix it. In the Github directory for this project there is a finbert directory and inside that directory is fibert.py, plus other files ...
ErnestTBass General Coding Help 4 4,594 Nov-30-2020, 08:05 PM
    Thread: no module named finbert found
Post: no module named finbert found

The following code generates a error: [/code] from pathlib import Path import sys sys.path.append('..') import argparse import shutil import os import logging from textblob import TextBlob from pyto...
ErnestTBass General Coding Help 4 4,594 Nov-30-2020, 07:33 PM
    Thread: Unfamiliar error
Post: Unfamiliar error

I get the following warning when I try to run a conda env create -f environment.ymlError:Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one o...
ErnestTBass General Coding Help 1 2,554 Nov-24-2020, 02:34 PM
    Thread: How to get outdated files?
Post: RE: How to get outdated files?

Thanks I will give it a try.I always use the command pip install or conda install In this however, I used the command pip install -requirements.txt. Thanks again. Respectfully, ErnestTBass
ErnestTBass General Coding Help 2 1,718 Nov-18-2020, 01:24 PM
    Thread: How to get outdated files?
Post: How to get outdated files?

Below is a listing of a requirements.txt file for some software python code that I am trying to run. absl-py==0.7.0 astor==0.7.1 editdistance==0.5.2 gast==0.2.2 grpcio==1.18.0 h5py==2.9.0 Keras-Appli...
ErnestTBass General Coding Help 2 1,718 Nov-17-2020, 06:13 PM
    Thread: Error in code tensorflow is installed
Post: RE: Error in code tensorflow is installed

I installed tensorflow and keras on my Windows 10 Pro system months ago. I was a little surprised because I know that I used my keras environment before. When I read the initial error it said I must ...
ErnestTBass General Coding Help 5 6,501 Nov-04-2020, 02:09 PM
    Thread: Error in code tensorflow is installed
Post: Error in code tensorflow is installed

The following code on Windows 10 creates the error shown. import math import numpy as np import pandas as pd import os import yfinance as yf import matplotlib.pyplot as plt import matplotlib.gridsp...
ErnestTBass General Coding Help 5 6,501 Nov-03-2020, 03:58 PM
    Thread: Installing keras in Python 2.7 environment
Post: RE: Installing keras in Python 2.7 environment

Now will this also install tensorflow. I know that tensorflow and keras travel together. Thanks for your help! Respectfully, ErnestTBass
ErnestTBass General Coding Help 3 5,443 Nov-01-2020, 12:37 PM
    Thread: Installing keras in Python 2.7 environment
Post: Installing keras in Python 2.7 environment

I have an virtual environment with python 2.7 installed. I know that I should not be using Python 2.7, but the source code that I found (I did not write it) is in python 2.7. I would like to install ...
ErnestTBass General Coding Help 3 5,443 Oct-31-2020, 04:51 PM
    Thread: ntlk error shown
Post: ntlk error shown

In the following code snippet: # Instantiate the sentiment intensity analyzer vader = SentimentIntensityAnalyzer() # Set column names columns = ['ticker', 'date', 'time', 'headline'] # Convert the ...
ErnestTBass General Coding Help 2 4,672 Oct-29-2020, 06:39 PM
    Thread: Running Python 2.7 program
Post: Running Python 2.7 program

I am trying to run the following snippet of code. It is python 2.7 and it is in Windows 10 Professional' import pandas as pd # data manipulation library import numpy as np # numerical computation ...
ErnestTBass General Coding Help 2 2,776 Oct-21-2020, 03:56 AM
    Thread: Cannot find module 'torch'
Post: RE: Cannot find module 'torch'

Here i my path for my Windows 10 Pro install.  C:\Users\Newport_j\anaconda3\condabin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C...
ErnestTBass General Coding Help 6 3,623 Oct-13-2020, 05:33 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020