Categories
Mastering Development System & Network

getting invalid_scope: Invalid OAuth scope error here is my email ramyakneni@gmail.com

when I try to create any resouce using ansible … getting the following error message … An exception occurred during task execution. To see the full traceback, use -vvv. The error was: google.auth.exceptions.RefreshError: (‘invalid_scope: Invalid OAuth scope or ID token audience provided.’, u'{“error”:”invalid_scope”,”error_description”:”Invalid OAuth scope or ID token audience provided.”}’) fatal: [localhost]: FAILED! => {“changed”: […]

Categories
Mastering Development

Python vestigial parameter and uncallable function

import numpy as np from scipy.optimize import fsolve from scipy.integrate import quad import matplotlib.pyplot as plt Rgas = 8.31446261815324 #Pa*m**3/mol*K def Peng_Robinson_EOS(P,V,T,Tc,Pc,ω): a = (1+(0.37464+1.54226*ω-0.26992*ω**2)*(1-(T/Tc)**(1/2)))**2*Rgas**2*Tc**2/Pc #Pa*m**3 b = 0.07780 * Rgas*Tc/Pc return P + a/((V+(1-np.sqrt(2))*b)*(V+(1+np.sqrt(2)))) – Rgas*T/(V-b) def PR_Psat(T,Tc,Pc,ω,V,Pguess = 100000): def integral_diff (Pguess,T,Tc,Pc,ω,V): def Psat_integrand (V,Pguess,T,Tc,Pc,ω): integrand1 = fsolve(Peng_Robinson_EOS(Pguess,V,T,Tc,Pc,ω),Pguess) integrand2 = Pguess integrand = […]

Categories
Mastering Development

Import TensorFlow not working ‘could not find dll ‘

When I installed TensorFlow using pip. It worked but when I run the code: import tensorflow as tf It showed me the error Traceback (most recent call last): File “c:\Users\User\Desktop\sanu\A programming\python\Python Progams\comparing\balance.py”, line 9, in <module> import tensorflow as tf File “C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\__init__.py”, line 101, in <module> from tensorflow_core import * File “C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\__init__.py”, line 40, in […]

Categories
Mastering Development

import tensorflow not working ‘could not find dll ‘

when i installed tensorflow using pip. It worked but when I run the code import tensorflow as tf It showed me the error Traceback (most recent call last): File “c:\Users\User\Desktop\sanu\A programming\python\Python Progams\comparing\balance.py”, line 9, in <module> import tensorflow as tf File “C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\__init__.py”, line 101, in <module> from tensorflow_core import * File “C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\__init__.py”, line 40, in […]

Categories
Development System & Network

FreeIPA Installation Failing During CA Restart

I’m trying to set up a simple vagrant box for testing with FreeIPA. I’m using the CentOS 7 image, and installing minimal extra things to the box, and using a very simple FreeIPA definition to start with. I’ve tried doing it using simple shell commands, and I’ve also tried using ansible-freeipa. In both cases, I […]

Categories
Development

Can’t import tensorflow, OSError: [WinError 193] %1 is not a valid Win32 application

I’m trying to install TensorFlow for python (3.7) using anaconda. I’ve installed the Cuda 10.2 and the matching cndd and installed it in a virtual environment: pip install tensorflow==2.1.0 The command ran without any errors, but when i try to import it in python I get: Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 […]

Categories
Development System & Network

FreeIPA Installation Failing During CA Restart

I’m trying to set up a simple vagrant box for testing with FreeIPA. I’m using the CentOS 7 image, and installing minimal extra things to the box, and using a very simple FreeIPA definition to start with. I’ve tried doing it using simple shell commands, and I’ve also tried using ansible-freeipa. In both cases, I […]

Categories
Development System & Network

FreeIPA Installation Failing During CA Restart

I’m trying to set up a simple vagrant box for testing with FreeIPA. I’m using the CentOS 7 image, and installing minimal extra things to the box, and using a very simple FreeIPA definition to start with. I’ve tried doing it using simple shell commands, and I’ve also tried using ansible-freeipa. In both cases, I […]

Categories
Development

Application notebook launch may have produced errors in anacond

Traceback (most recent call last): File “C:\Users\Avadesh Yadav\Anaconda3\Scripts\jupyter-notebook-script.py”, line 6, in from notebook.notebookapp import main File “C:\Users\Avadesh Yadav\AppData\Roaming\Python\Python37\site-packages\notebook\notebookapp.py”, line 47, in from zmq.eventloop import ioloop File “C:\Users\Avadesh Yadav\AppData\Roaming\Python\Python37\site-packages\zmq__init__.py”, line 47, in from zmq import backend File “C:\Users\Avadesh Yadav\AppData\Roaming\Python\Python37\site-packages\zmq\backend__init__.py”, line 40, in reraise(*exc_info) File “C:\Users\Avadesh Yadav\AppData\Roaming\Python\Python37\site-packages\zmq\utils\sixcerpt.py”, line 34, in reraise raise value File “C:\Users\Avadesh Yadav\AppData\Roaming\Python\Python37\site-packages\zmq\backend__init__.py”, line […]

Categories
Development

Launching Rstudio AMI from snapshot fails

I have a snapshot of a previous volume that I was running Rstudio from on AWS. I would like to start a new instance using this snapshot but I cant seem to get it to work. These are the steps I have taken. Started the configuration for a new instance using ami-0e9e5245fffe34a3e which is from […]