Encountered a problem trying to run gcutil listinstances --filter="name eq foo" (for example...)
I get the following error:
RuntimeError: CommandError: Unknown argument: "eq", "foo"
This follows the examples found in the official usage tips.
Seems as if 'eq' and 'foo' get parsed as independent arguments for gcutil...
Does this result from a bug in gcutil or the way I use it?
Thanks.
Looks like an installation issue. Did you try reinstalling Google Cloud SDK?
Related
I'm trying to quantize a seq2seq model (M2M100) using optimum library provided by Huggingface. As per this guide, I'm trying to quantize the encoder and decoder one by one but that requires me to overwrite the model name. Following the documentation in the guide, I used the code:
encoder_quantizer = ORTQuantizer.from_pretrained(model_dir, file_name="encoder_model.onnx")
This code is throwing the following error:
TypeError: from_pretrained() got an unexpected keyword argument 'file_name'
I tried examining ORTQuantizer.from_pretrained and got the following:
<function optimum.onnxruntime.quantization.ORTQuantizer.from_pretrained(model_name_or_path: Union[str, os.PathLike], feature: str, opset: Optional[int] = None) -> 'ORTQuantizer'>
Clearly, from_pretrained here doesn't have a file_name parameter as has been indicated in the guide. Can someone please help me debug this error? Thanks!
Posting the solution I found while exploring optimum GitHub repo. The problem is that installing optimum via pip is downloading v1.3 which did not have the fix for quantizing seq2seq models. Instead install the package directly from GitHub using the command below. It worked fine afterwards.
python -m pip install git+https://github.com/huggingface/optimum.git
I'm trying to run a local klocwork scan on my code base, but I keep failing.
My steps:
kwinject make
kwbuildproject --url https://hostname:8080/project -tables-directory KW_Tables kwinject.out
kwconan run --tables-directory KW_Tables --url https://hostname:8080/project --json
Note: the real hostname is not shown in the pasted commands here.
The last command (kwconan) always fails with the following error:
"Error: Cannot proceed: Cannot validate tables"
I tried to look online but I failed to find any useful documentation.
Do you have any idea?
reviewing the build.log present in /KW_Tables may help.
if it doesn't help please reach out Klocwork support. They may share the correct parameters to be passed.
When I run the pact test, I get the following error.
An error occurred while loading ./spec/mailers/mailing_spec.rb.
Failure/Error:
mock_service :core_service do
port "3003"
end
ArgumentError:
Malformed version number string
Any ideas around this issue?
Thanks in advance.
Can you please raise an issue in the pact-ruby and include all the relevant versions, and the steps to recreate the issue, preferably with an executable code example.
I am trying to run sonarqube analysis but I am getting the error
"a required argument is missing: /key:[Sonarqube project key]"
C:\Sonarqube\sonarqube-6.7\sonarqube-6.7\bin\sonar-scanner-msbuild-4.0.2.892\SonarQube.Scanner.MSBuild.exe begin /key: {projectkey} /name:{projectname} /version:{1.0}
I have used the following url
I have tried using the "" in Key and Name but still get the same error
can anyone suggest how to do this?
There's a typo in the command line: the space between /key: and {projectkey}. This is what produces this error message.
So, I have been trying to build flannel (https://github.com/coreos/flannel) with gccgo. Here is the error I am getting while building:
$ ./build
Building flanneld...
# github.com/coreos/flannel/pkg/ip
gopath/src/github.com/coreos/flannel/pkg/ip/tun.go:57:37: error: reference to undefined identifier ‘syscall.TUNSETIFF’
err = ioctl(int(tun.Fd()), syscall.TUNSETIFF, uintptr(unsafe.Pointer(&ifr)))
^
I am using gccgo-5 and gcc-5. Can anyone please help me figure out what exactly is the issue here? TIA
So, I found the answer. The problem was that gccgo didn't define TUNSETIFF for my arch. I defined the value accordingly and I was able to make it work. Thanks #JimB