Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
moving python project to aws ec2
#1
I've got a python project that runs from a cron job.
It runs fine on the local machine, and I need it to run on an AWS EC2.
I copy it to the EC2 and run from the command line to test.

It throws this:
Error:
>Traceback (most recent call last): > File "BTCfeels.py", line 2, in <module> > from tweetfeels import TweetFeels > File "/home/john/anaconda3/lib/python3.5/site-packages/tweetfeels/__init__.py", line 1, in <module> > from .tweetdata import TweetData, TweetBin > File "/home/john/anaconda3/lib/python3.5/site-packages/tweetfeels/tweetdata.py", line 152 > df = df.groupby(pd.Grouper(freq=f'{int(binsize/second)}S')).size() > ^ >SyntaxError: invalid syntax
I tried to use the pip freeze method:

> pip freeze > requirements.txt
> then
> pip install -r requirements.txt

That throws this error:
Error:
> ERROR: Could not find a version that satisfies the requirement anaconda-project==0.8.0 (from -r requirements.txt (line 4)) (from versions: 0.8.1, 0.8.2) ERROR: No matching distribution found for anaconda-project==0.8.0 (from -r requirements.txt (line 4))
I just need to be able to run code that works on one ubuntu16.04 on another ubuntu16.04.

Thanks for any help.
Reply


Messages In This Thread
moving python project to aws ec2 - by gemstoneartist - May-05-2019, 04:35 PM
RE: moving python project to aws ec2 - by snippsat - May-05-2019, 05:10 PM
RE: moving python project to aws ec2 - by Skaperen - May-05-2019, 11:53 PM

Forum Jump:

User Panel Messages

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