You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm trying to run your code to try and generate the CSV file with the necessary data for later on. I've been trying to resolve the issues with one of the modules that are required in both main.py and GetTwitchData.py : import Credentials as cr.
I've tried many methods to get it to work. I tried reinstalling and removing older python versions to prevent any problems with them. I installed the other necessary modules such as requests & pandas and pip doesn't seems to give much issue to installing credentials as well. I've tried running it through the command prompt as well and through PyCharm and I do still get an error.
File "FILE_LOCATION\GetTwitchData.py", line 5, in <module> import Credentials as cr ModuleNotFoundError: No module named 'Credentials'
I thought there wasn't supposed to be a capital for Credentials, so I tried import credentials as cr, which changed the type of problem. Instead I get errors like this:
File "FILE_LOCATION\GetTwitchData.py", line 16, in GetTopStreams Headers = {'Client-ID': cr.clientID, 'Authorization': "Bearer " + cr.clientSecret} AttributeError: module 'credentials' has no attribute 'clientID'
At this point, I'm sure that it is Credentials and not all lowercase. In this case, I'm not sure what to do now. Pip doesn't have that package and PyCharm still highlights it as non-existant.
Could you shed some light on this? This might be something on my end though I'm not so sure.
The text was updated successfully, but these errors were encountered:
Hi, thanks for reaching out. Sorry you had to go through so much trouble for something that is such a silly issue. The Twitch API needs two credentials: a "client ID" and a "client secret". You will need to get your own versions of these credentials in order to use the API and my script. In order to not make my credentials public I put them in a separate python script called "Credentials" and imported that, while putting it in the gitignore for the project so it would not get published. The same thing goes for the path to working directory in "main.py" (I just didnt want to make my personal file paths public).
Alright. I got it to work now and the issue is solved, thanks. The next thing for me is to understand how to work Gephi (importing is fine, just the analysis and actually seeing the data properly), the Data Processing file seems straightforward enough. I might make a pull request sometime for some additions on the documentation but tbh I just wanted to see Forsen on a graph similar to the one you made. Getting banned kinda got in the way of that. Thanks for all the help and the code.
Hello. I'm trying to run your code to try and generate the CSV file with the necessary data for later on. I've been trying to resolve the issues with one of the modules that are required in both
main.py
andGetTwitchData.py
:import Credentials as cr
.I've tried many methods to get it to work. I tried reinstalling and removing older python versions to prevent any problems with them. I installed the other necessary modules such as
requests
&pandas
and pip doesn't seems to give much issue to installingcredentials
as well. I've tried running it through the command prompt as well and through PyCharm and I do still get an error.File "FILE_LOCATION\GetTwitchData.py", line 5, in <module>
import Credentials as cr
ModuleNotFoundError: No module named 'Credentials'
I thought there wasn't supposed to be a capital for
Credentials
, so I triedimport credentials as cr
, which changed the type of problem. Instead I get errors like this:File "FILE_LOCATION\GetTwitchData.py", line 16, in GetTopStreams
Headers = {'Client-ID': cr.clientID, 'Authorization': "Bearer " + cr.clientSecret}
AttributeError: module 'credentials' has no attribute 'clientID'
At this point, I'm sure that it is
Credentials
and not all lowercase. In this case, I'm not sure what to do now. Pip doesn't have that package and PyCharm still highlights it as non-existant.Could you shed some light on this? This might be something on my end though I'm not so sure.
The text was updated successfully, but these errors were encountered: