Category : amazon-ec2

I have ec2 instance with ubuntu v20.04 and it has python v3.8.10 and pysftp 0.2.9. I have generate .pem file from .ppk file using below command puttygen sftp_server.ppk -O private-openssh -o sftp_server.pem I am able to connect successfully to sftp server using command line- sftp -o "IdentityFile=sftp_server.ppk" [email protected]_address sftp -o "IdentityFile=sftp_server.pem" [email protected]_address #Output of above ..

Read more

I have two python processes, process1 and process2. They interface in such a way: p1_output = process1_output() p2_output = process2_output(p1_output) update_process1(p2_output) process1 and process2 have different hardware requirements, leading to a situation where process1 and process2 will be run in different EC2 instances. I was wondering what the best way to handle making function calls ..

Read more

i use django-crontab library in mac m1 bigsur # settings.py INSTALLED_APPS = [ ‘django_crontab’ ] CRONJOBS = [ (‘*/5 * * * *’, ‘diagnoses.croncode.ChangeRegisterView’) ] # croncode.py def ChangeRegisterView(): and i used python manage.py crontab add It was installed in a virtual environment. and It works well in a local environment. however it’s not working ..

Read more

I am trying to create an ansible playbook to install docker & docker-compose on the host server, stop and start the AWS EC2 instance and then restart docker. Everything goes well until I try to stop the instance, then this happens: TASK [docker_setup : Gather facts] ****************************************************************************************************************************************** [DEPRECATION WARNING]: The ‘ec2_instance_facts’ module has been renamed ..

Read more

I’m trying to make a streamlit app working with primer3 and the python file works fine on my PC. However I’m having trouble installing primer3-py on my ec2 server running Linux system. The command that I run is: python3 setup.py build_ext –inplace It gets an error like this: primer3/src/primerdesign_py.c:30:13: fatal error: Python.h: No such file ..

Read more