Google-cloud-sdk install failing with in invalid syntax - google-cloud-sdk

/home/sohail//google-cloud-sdk/install.sh
Welcome to the Google Cloud SDK!
Traceback (most recent call last):
File "/home/sohail//google-cloud-sdk/bin/bootstrapping/install.py", line 27, in
from googlecloudsdk import gcloud_main
File "/home/sohail//google-cloud-sdk/lib/googlecloudsdk/gcloud_main.py", line 37, in
from googlecloudsdk.command_lib.util.apis import yaml_command_translator
File "/home/sohail//google-cloud-sdk/lib/googlecloudsdk/command_lib/util/apis/yaml_command_translator.py", line 241
if self.spec.async:
^
SyntaxError: invalid syntax
Script execution failed!
Exiting with status 1.

Related

I install pyaudio many times But not working? ERROR: Cannot uninstall 'PyAudio'

ModuleNotFoundError: No module named 'pyaudio'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\Omkar_Bhatuse\Downloads\VoiceBot\Voice_bot.py", line 15, in
with sr.Microphone() as source:
File "C:\Users\Omkar_Bhatuse\Downloads\VoiceBot\venv\lib\site-packages\speech_recognition_init_.py", line 79, in init
self.pyaudio_module = self.get_pyaudio()
File "C:\Users\Omkar_Bhatuse\Downloads\VoiceBot\venv\lib\site-packages\speech_recognition_init_.py", line 110, in get_pyaudio
raise AttributeError("Could not find PyAudio; check installation")
AttributeError: Could not find PyAudio; check installation
(venv) PS C:\Users\Omkar_Bhatuse\Downloads\VoiceBot>
install it using command prompt then try to use the package from the site-packages folder in the python interrupter

Failed to run bcc-tools profiler

I am attempting to run the bcc tool's "profile.py", and ran into the following error:
./bcc/tools/profile.py
Sampling at 49 Hertz of all threads by user + kernel stack... Hit Ctrl-C to end.
In file included from <built-in>:1:
././include/linux/kconfig.h:5:10: fatal error: 'generated/autoconf.h' file not found
#include <generated/autoconf.h>
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Traceback (most recent call last):
File "./bcc/tools/profile.py", line 265, in <module>
b = BPF(text=bpf_text)
File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 325, in __init__
raise Exception("Failed to compile BPF text")
The linux headers are found under the normal location of /lib/modules. This is running under kernel version 4.19.88.
Any pointer will be appreciated.

why runtime error happen? After import Mecab

what is problem?
I use python3 windows10 environment is Anaconda
m=MeCab.Tagger("-Ochasen")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\a.sakata\Anaconda3\lib\site-packages\MeCab.py", line 253, in __init__
_MeCab.Tagger_swiginit(self, _MeCab.new_Tagger(*args))
RuntimeError
Your dicrc probably doesn't include the chasen format. This causes the Mecab C lib to die with an error, which results in the runtime error in Python.
I get the same error, and if I run mecab on the command line I get this output:
$ mecab -Ochasen
writer.cpp(63) [!tmp.empty()] unkown format type [chasen]
If you don't get an error on the command line the cause might be something else.

pandas import issue with pyscripter

I have pyscripter version 3.2.2.0 x86 running python 3.6.3
When I want to import pandas in a py module(i.e. import pandas as pd),
I end up with an exception : invalid syntax
Traceback (most recent call last):
File "<string>", line 424, in run_nodebug
File "<module1>", line 13, in <module>
File "D:\Users\Jean\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pandas\__init__.py", line 13, in <module>
__import__(dependency)
File "D:\Users\Jean\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytz\__init__.py", line 19, in <module>
from pytz.lazy import LazyDict, LazyList, LazySet
File "D:\Users\Jean\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytz\lazy.py", line 3, in <module>
from UserDict import DictMixin
File "D:/Users/Jean\Desktop/Kodi Python Development/PythonPourDebutants/App/Lib\UserDict.py", line 134
raise TypeError, "pop expected at most 2 arguments, got "\
^
SyntaxError: invalid syntax
but when I import in command line, everything is ok !
why is it so ?
thanks for your answers !

Unable to import xlrd module Python 3.60

Good day,
I get the following error when importing xlrd. Does any one get this?
import xlrd
Error:
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
import xlrd
File "C:\Users\irwin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\xlrd\__init__.py", line 1187
print "EXTERNSHEET(b7-):"
^
SyntaxError: invalid syntax