Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automate main.py run through tweets written #12

Open
1 of 4 tasks
kaustav202 opened this issue Oct 3, 2022 · 9 comments
Open
1 of 4 tasks

automate main.py run through tweets written #12

kaustav202 opened this issue Oct 3, 2022 · 9 comments
Assignees

Comments

@kaustav202
Copy link
Owner

  • I'm submitting a ...

    • bug report
    • feature request
    • change/modification
    • design issue
  • What is the current behavior?

  • What is the expected behavior?

We are currently having two independent steps in running the application

  • run the stream.py to start generating tweets / statuses in tweets.json file fetched from the twitter API
  • once a significant number of tweets are accumulated, run the main.py file

We need to move towards a single entry point, ensuring that the main module is started automatically.

How it can be tackled :

  • count the number of tweets written explicitly and trigger a main file run once a certain no. is reached.
  • keep monitoring the tweets.json file written for no. of lines written (since each status/tweet is written in new line ) using a continuous loop until the desired number is reached then exit and let it continue with execution of the main file

Or if there are better alternatives then please suggest

@rexdivakar
Copy link

Hey @kaustav202 kindly assign this issue to me i would love to add this feature

@kaustav202
Copy link
Owner Author

sure.. you can start working on it. all the best

@rexdivakar
Copy link

from PIL import Image

ModuleNotFoundError: No module named 'PIL'

Has the dependency issues been fixed properly ?

@kaustav202
Copy link
Owner Author

from PIL import Image

ModuleNotFoundError: No module named 'PIL'

Has the dependency issues been fixed properly ?

No module has that import.. can you tag that line

@rexdivakar
Copy link

rexdivakar commented Oct 8, 2022

image

Yes i have installed all the dependencies and i tried it with another machine too same issue, guess we are missing some import !!

@kaustav202
Copy link
Owner Author

image

Yes i have installed all the dependencies and i tried it with another machine too same issue, guess we are missing some import !!

There seems to be an issue with your matplotlib installation @rexdivakar.. PIL is a sub-dependency and typically should be installed along with matplotlib

@kaustav202
Copy link
Owner Author

You can try to change the version of matplotlib.. update it. If that doesn't work sync your fork and clone it again

@om-khandwala
Copy link

hey can I work on this issue

@kaustav202 kaustav202 added the EASY label Dec 8, 2022
@kaustav202
Copy link
Owner Author

hey can I work on this issue

sure..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants