METAL NER wiki page and an error from the config files params

Hi,
I am unable to find the Wiki page which had the METAL NER details. Is it moved to any other location ?
While training the NER model, I get this error:
[error] (run-main-0) java.lang.RuntimeException: ERROR: parameter mtl.numberOfTasks must be defined!
[error] java.lang.RuntimeException: ERROR: parameter mtl.numberOfTasks must be defined!
I am using the default the config file - "org/clulab/metal-en-ner.conf" and the numberOfTasks is set to 1.
Thanks.

Yes, it’s here:
http://clulab.github.io/processors/
It may be that Metal does not find your config file. Try to put it
under main/src/main/resources/org/clulab/, and call use
org/clulab/ in the cmd line.
On June 28, 2020 at 1:06:06 AM, Vikas Yadav<EMAIL_ADDRESS>wrote:
Hi,
I am unable to find the Wiki page which had the METAL NER details. Is it
moved to any other location ?
While training the NER model, I get this error:
[error] (run-main-0) java.lang.RuntimeException: ERROR: parameter
mtl.numberOfTasks must be defined!
[error] java.lang.RuntimeException: ERROR: parameter mtl.numberOfTasks must
be defined!
I am using the default the config file - "org/clulab/metal-en-ner.conf" and
the numberOfTasks is set to 1.
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/clulab/processors/issues/403, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAI75TUJ6LURHW2RKSW2XZTRY32W3ANCNFSM4OKNGGQA
.


[Bug]: dill is not working well with python3.8

What happened?
I am running a simple beam pipeline on a local flink cluster, however, I am seeing this if I tried to
ReadFromKafka()

with multiple topics, and then it will shows this error.  but if I only do with single topic, then things is fine.  Looking up on google, it seems like could be related to an issue with dill package, where they fixed the issue in a later version (3.3.0). https://github.com/uqfoundation/dill/issues/318
However, currently beam is having a very narrow version requirement and thus I'm unable to bump dill package. Any idea how I can work around this issue ?  Thanks!
taskmanager_1            | Traceback (most recent call last):
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 287, in _execute
taskmanager_1            |     response = task()
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 360, in <lambda>
taskmanager_1            |     lambda: self.create_worker().do_instruction(request), request)
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 596, in do_instruction
taskmanager_1            |     return getattr(self, request_type)(
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 627, in process_bundle
taskmanager_1            |     bundle_processor = self.bundle_processor_cache.get(
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 459, in get
taskmanager_1            |     processor = bundle_processor.BundleProcessor(
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 871, in __init__
taskmanager_1            |     self.ops = self.create_execution_tree(self.process_bundle_descriptor)
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 924, in create_execution_tree
taskmanager_1            |     return collections.OrderedDict([(
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 927, in <listcomp>
taskmanager_1            |     get_operation(transform_id))) for transform_id in sorted(
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 814, in wrapper
taskmanager_1            |     result = cache[args] = func(*args)
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 906, in get_operation
taskmanager_1            |     transform_consumers = {
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <dictcomp>
taskmanager_1            |     tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <listcomp>
taskmanager_1            |     tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 814, in wrapper
taskmanager_1            |     result = cache[args] = func(*args)
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 906, in get_operation
taskmanager_1            |     transform_consumers = {
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <dictcomp>
taskmanager_1            |     tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <listcomp>
taskmanager_1            |     tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 814, in wrapper
taskmanager_1            |     result = cache[args] = func(*args)
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 911, in get_operation
taskmanager_1            |     return transform_factory.create_operation(
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 1206, in create_operation
taskmanager_1            |     return creator(self, transform_id, transform_proto, payload, consumers)
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 1553, in create_par_do
taskmanager_1            |     return _create_pardo_operation(
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 1596, in _create_pardo_operation
taskmanager_1            |     dofn_data = pickler.loads(serialized_fn)
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/internal/pickler.py", line 51, in loads
taskmanager_1            |     return desired_pickle_lib.loads(
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/apache_beam/internal/dill_pickler.py", line 289, in loads
taskmanager_1            |     return dill.loads(s)
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 275, in loads
taskmanager_1            |     return load(file, ignore, **kwds)
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 270, in load
taskmanager_1            |     return Unpickler(file, ignore=ignore, **kwds).load()
taskmanager_1            |   File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 472, in load
taskmanager_1            |     obj = StockUnpickler.load(self)
taskmanager_1            | TypeError: an integer is required (got type bytes)

Issue Priority
Priority: 3 (minor)
Issue Components

[X] Component: Python SDK
[ ] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[ ] Component: IO connector
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Spark Runner
[X] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

Are you using custom containers? If yes, make sure local and custom container have same python version

Also dill versions must match.

I'm having basically the same issue also using Python 3.8 and Apache Beam 2.44.0, but in my case, I'm using Dataflow for running the beam pipeline. Also, I got to the same place than @lydian about the solution being to upgrade dill to 0.3.3 (https://github.com/uqfoundation/dill/issues/318) but it cannot be manually set since apache-beam 2.44.0 requires dill<0.3.2,>=<IP_ADDRESS>, but you have dill 0.3.3 which is incompatible
Previously I was using Python 3.7 with Apache Beam 2.36.0 and it was working fine but I need to upgrade the Python version so I went ahead and also updated the Apache Beam version to the latest one.
I saw that you guys already had updated the dill version on the PR https://github.com/apache/beam/pull/17669 but then it was rolled back with this other one https://github.com/apache/beam/pull/21898 because there were some tests failing. Is there any ETA on when that dill version will be upgraded back again?
I cannot downgrade the Python version to make it work, is there any other workaround for avoiding this error?
Error message from worker: Traceback (most recent call last):
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/internal/dill_pickler.py", line 285, in loads
    return dill.loads(s)
  File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 275, in loads
    return load(file, ignore, **kwds)
  File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 270, in load
    return Unpickler(file, ignore=ignore, **kwds).load()
  File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 472, in load
    obj = StockUnpickler.load(self)
TypeError: an integer is required (got type bytes)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 287, in _execute
    response = task()
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 360, in <lambda>
    lambda: self.create_worker().do_instruction(request), request)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 596, in do_instruction
    return getattr(self, request_type)(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 627, in process_bundle
    bundle_processor = self.bundle_processor_cache.get(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 459, in get
    processor = bundle_processor.BundleProcessor(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 871, in __init__
    self.ops = self.create_execution_tree(self.process_bundle_descriptor)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 924, in create_execution_tree
    return collections.OrderedDict([(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 927, in <listcomp>
    get_operation(transform_id))) for transform_id in sorted(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 814, in wrapper
    result = cache[args] = func(*args)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 906, in get_operation
    transform_consumers = {
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <dictcomp>
    tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <listcomp>
    tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 814, in wrapper
    result = cache[args] = func(*args)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 906, in get_operation
    transform_consumers = {
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <dictcomp>
    tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <listcomp>
    tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 814, in wrapper
    result = cache[args] = func(*args)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 906, in get_operation
    transform_consumers = {
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <dictcomp>
    tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <listcomp>
    tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 814, in wrapper
    result = cache[args] = func(*args)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 911, in get_operation
    return transform_factory.create_operation(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 1206, in create_operation
    return creator(self, transform_id, transform_proto, payload, consumers)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 1463, in create_split_and_size_restrictions
    return _create_sdf_operation(SplitAndSizeRestrictions, *args)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 1525, in _create_sdf_operation
    dofn_data = pickler.loads(parameter.do_fn.payload)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/internal/pickler.py", line 51, in loads
    return desired_pickle_lib.loads(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/internal/dill_pickler.py", line 289, in loads
    return dill.loads(s)
  File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 275, in loads
    return load(file, ignore, **kwds)
  File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 270, in load
    return Unpickler(file, ignore=ignore, **kwds).load()
  File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 472, in load
    obj = StockUnpickler.load(self)
TypeError: an integer is required (got type bytes)

I'm having basically the same issue also using Python 3.8 and Apache Beam 2.44.0, but in my case, I'm using Dataflow for running the beam pipeline. Also, I got to the same place than @lydian about the solution being to upgrade dill to 0.3.3 (https://github.com/uqfoundation/dill/issues/318) but it cannot be manually set since apache-beam 2.44.0 requires dill<0.3.2,>=<IP_ADDRESS>, but you have dill 0.3.3 which is incompatible
Previously I was using Python 3.7 with Apache Beam 2.36.0 and it was working fine but I need to upgrade the Python version so I went ahead and also updated the Apache Beam version to the latest one.
I saw that you guys already had updated the dill version on the PR https://github.com/apache/beam/pull/17669 but then it was rolled back with this other one https://github.com/apache/beam/pull/21898 because there were some tests failing. Is there any ETA on when that dill version will be upgraded back again?
I cannot downgrade the Python version to make it work, is there any other workaround for avoiding this error?
Error message from worker: Traceback (most recent call last):
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/internal/dill_pickler.py", line 285, in loads
    return dill.loads(s)
  File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 275, in loads
    return load(file, ignore, **kwds)
  File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 270, in load
    return Unpickler(file, ignore=ignore, **kwds).load()
  File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 472, in load
    obj = StockUnpickler.load(self)
TypeError: an integer is required (got type bytes)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 287, in _execute
    response = task()
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 360, in <lambda>
    lambda: self.create_worker().do_instruction(request), request)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 596, in do_instruction
    return getattr(self, request_type)(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 627, in process_bundle
    bundle_processor = self.bundle_processor_cache.get(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/sdk_worker.py", line 459, in get
    processor = bundle_processor.BundleProcessor(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 871, in __init__
    self.ops = self.create_execution_tree(self.process_bundle_descriptor)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 924, in create_execution_tree
    return collections.OrderedDict([(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 927, in <listcomp>
    get_operation(transform_id))) for transform_id in sorted(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 814, in wrapper
    result = cache[args] = func(*args)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 906, in get_operation
    transform_consumers = {
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <dictcomp>
    tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <listcomp>
    tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 814, in wrapper
    result = cache[args] = func(*args)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 906, in get_operation
    transform_consumers = {
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <dictcomp>
    tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <listcomp>
    tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 814, in wrapper
    result = cache[args] = func(*args)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 906, in get_operation
    transform_consumers = {
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <dictcomp>
    tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 907, in <listcomp>
    tag: [get_operation(op) for op in pcoll_consumers[pcoll_id]]
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 814, in wrapper
    result = cache[args] = func(*args)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 911, in get_operation
    return transform_factory.create_operation(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 1206, in create_operation
    return creator(self, transform_id, transform_proto, payload, consumers)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 1463, in create_split_and_size_restrictions
    return _create_sdf_operation(SplitAndSizeRestrictions, *args)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 1525, in _create_sdf_operation
    dofn_data = pickler.loads(parameter.do_fn.payload)
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/internal/pickler.py", line 51, in loads
    return desired_pickle_lib.loads(
  File "/opt/apache/beam-venv/beam-venv-worker-sdk-0-0/lib/python3.8/site-packages/apache_beam/internal/dill_pickler.py", line 289, in loads
    return dill.loads(s)
  File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 275, in loads
    return load(file, ignore, **kwds)
  File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 270, in load
    return Unpickler(file, ignore=ignore, **kwds).load()
  File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 472, in load
    obj = StockUnpickler.load(self)
TypeError: an integer is required (got type bytes)

Have y'all tried using Beam with CloudPickle pickler? See: https://github.com/apache/beam/blob/30178227c630bc502caa0833534b987a6c5b3677/sdks/python/apache_beam/options/pipeline_options.py#L1247


bug(COMPONENT): Misnamed property for snackbar theme

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
In the node modules/@angular/material folder, the file _index.scss has a forward rule for the material UI snackbar with a misnamed property:
@forward './snack-bar/snack-bar-theme' as snack-bar-* show snack-bar-theme, snack-bar-color,   snack-bar-typography, snack-bar-density, snack-bar-base, bar-overrides;
The last property, "bar-overrides", should probably be "snackbar-overrides" like all the other properties
Reproduction
StackBlitz link:
Steps to reproduce:

Open the file in the @angular/material node modules folder
Find the forward rule for snackbar

Expected Behavior
Expect the property to be named snackbar-bar-overrides like the other properties.
Actual Behavior
The property is named "bar-overrides"
Environment

Angular:
CDK/Material:
Browser(s):
Operating System (e.g. Windows, macOS, Ubuntu):

Thanks, this will be fixed in #29180 29180


Set padding between bar and label

As user I would want to manage the padding between the progress bar and the labels, could be possible with the current design?

It's not currently possible. Is the default padding not good for you?

Not at all, I mean, the widget its really customizable, i love it. But the margin between the circular indicator and the text its really small, if you set a low font size (10,9,8...) the circular thumb seems that overlaps the text.

Lines 621-624 of audio_video_progress_bar.dart
  final labelDy = (isLabelBelow) ? barHeight : 0.0;
    final leftLabelOffset = Offset(0, labelDy);
    final leftTimeLabel = _leftTimeLabel();
    leftTimeLabel.paint(canvas, leftLabelOffset);

Maybe the solution is to add a new parameter to  _RenderProgressBar constructor, maybe called labelPadding

  final labelDy = (isLabelBelow) ? max(barHeight, labelPadding)  : 0.0;
    final leftLabelOffset = Offset(0, labelDy);
    final leftTimeLabel = _leftTimeLabel();
    leftTimeLabel.paint(canvas, leftLabelOffset);

I added a timeLabelPadding parameter to the widget. (This matched the naming of the other timeLabel... parameters a little more than labelPadding.)
Check it out and let me know if it works for you. Version 0.6.1.

Works perfect for me, thanks a lot :)

Great! You're welcome


Support SSR (fix #15)

Hi,
This will add support for server-side rendering :)

Thanks for your work. I'm a Nuxt fan : )


FIX: Advance to next variable if type_info is missing

This prevents an infinite loop if the type info for the current type is missing.
The modified unit test demonstrates the issue.
fixes #18

@DanielT Another option to this fix would be returning the variable without type info, but advancing nonetheless. But then one would need to handle the missing type info at a different place. Not sure what is preferable. That change would look like this:
diff --git a/src/dwarf/iter.rs b/src/dwarf/iter.rs
index 6d0ec36..e914f5e 100644
--- a/src/dwarf/iter.rs
+++ b/src/dwarf/iter.rs
@@ -196,6 +196,7 @@ impl<'a> Iterator for VariablesIterator<'a> {
                     self.type_iter = Some(TypeInfoIter::new(ti));
                 } else {
                     self.type_iter = None;
+                    self.current_var = self.var_iter.next();
                 }
                 Some((varname.to_string(), typeinfo, *address))
             } else {
@@ -288,6 +289,14 @@ fn test_varinfo_iter() {
             typeref: 1,
         },
     );
+    variables.insert(
+        "var_d_wo_type_info".to_string(),
+        VarInfo {
+            address: 4,
+            typeref: 404, // some number with no correspondence in the types hash map
+        },
+    );
+
     let mut types = HashMap::<usize, TypeInfo>::new();
     let mut structmembers: HashMap<String, (TypeInfo, u64)> = HashMap::new();
     structmembers.insert("member_1".to_string(), (TypeInfo::Uint8, 0));
@@ -309,5 +318,5 @@ fn test_varinfo_iter() {
     for item in iter {
         println!("{}", item.0);
     }
-    assert_eq!(VariablesIterator::new(&debugdata).count(), 5);
+    assert_eq!(VariablesIterator::new(&debugdata).count(), 6);
 }

Thanks for the fix!
I prefer the second approach, where variables without typeinfo are still returned by the iterator.
Later on I intend to extend the insert code to handle variables without types. After all we do have addresses for them, so pretending such variables have some simple type (char?) and creating a measurement/characteristic is already useful.

I prefer the second approach, where variables without typeinfo are still returned by the iterator.

Here you are. The PR is updated.

Thanks!


Huge build time increase for .NETCoreApp,Version v1.1

I've updated my ASP.NET Core application to .NET Core 1.1 and ASP.NET Core 1.1 runtime packages. Using 1.0 building took ~5 seconds. After the update it's ~40 seconds.
When I set "preserveCompilationContext": false in the project.json, the build time goes down to ~1 sec.
My application is rather large and pulls in a fair amount of dependencies. It does not repro with a new project.

Guess I found it. I had left an older version of the .NET Core CLI in my global.json:
{
  "projects": [ "src", "test" ],
  "sdk": {
    "version": "1.0.0-preview2-003131"
  }
}

The build runs successful, it's just terribly slow. Removing the sdk element fixed it.

Perhaps a warning from the CLI that the SDK version in global.json and the .NET Core version of the application do not match.

What is the latest (for v1.1) SDK Version?

I just removed it. But the latest version is 1.0.0-preview2-1-003177.

I'm seeing a similar issue (build time went from a couple of seconds in 1.0 to more than a minute in 1.1) but I don't reference any SDK version in the global.json. Where else could this come from and how can I troubleshoot?
The project I build relies on libraries running .NET Standard 1.6, if that matters. Their compilation time is unchanged from before.

I also have a massive slowdown of build time after upgrading to 1.1.0.
Changing the framework to 1.1.0 and leaving all packages at 1.0.0 keeps building time low, but upgrading all packages in the nuget packet manager (or manually) will increase build time to >20 seconds.
I have the same issue with a brand new "blank" asp.net core template for a web application.

@henkmollema I had the same problem. I've reduced the build time from 30 seconds to 3 seconds by updating the sdk version in global.json.
A warning from the CLI would help in this scenario.

I updated sdk version in global.json to "1.0.0-preview2-1-003177" and build time reduced from 56 seconds to 2 seconds!
Thank you.

As a VS 2015 user it took me a bit to find the correct SDK to download. In case it helps someone else here is the link to the archived 003177 SDK: https://github.com/dotnet/core/blob/master/release-notes/download-archives/1.1-preview2.1-download.md

I'm a VS 2015 user as well and recently began working on a project that had the following global.json file:
    "projects": [ "src", "test" ],
    "sdk": {
        "version": "1.0.0-preview2-003131"
    }
}

I was getting untolerable ~1min build times. I had downloaded SDK 1.0.1, but I was unable to edit the global.json to use that version.
I followed @daveronson 's suggestion above, downloaded the appropriate SDK and changed by global.json to read as follows, which resolved my build time issue.
    "projects": [ "src", "test" ],
    "sdk": {
      "version": "1.0.0-preview2-1-003177"
    }
}

Could anyone please explain why I couldn't use "version":"1.0.1" even though it was installed? I'm pretty new to the dotnetcore world.

I'm having this same problem, the only issue is that my project is using the csproj format. There's no global.json file anymore, so the workarounds above don't work.


wasmtime: use hydraPlatforms instead of doCheck

Given that the restriction to run tests are related to the Hydra infrastrucutre and limitations on the virtualized environment, use hydraPlatforms instead of doCheck to skip tests only on Hydra.
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Closing this; I want to first check if doCheck can be used with stdenv inspecting CPU features, and use that instead.


feat(cli): mainfile argument

Currently, main.jsonnet is a starting point to jsonnet compilation.  Sometimes, I would like to have many starting points in an environment (for partial sync/diff). For example, I manage addons with tanka. Because these addons have many resources, some operations like diff/apply is not fast.
$tk diff -h
differences between the configuration and the cluster

Usage:
  tk diff <path> [flags]

Flags:
   --diff-strategy string   force the diff-strategy to use. Automatically chosen if not set.
  -e, --extCode stringArray    Inject any Jsonnet from the outside (Format: key=<code>)
      --extVar stringArray     Inject a string from the outside (Format: key=value)
  -h, --help                   help for diff
  -m, --mainfile string        entrypoint into the evaluation (default "main.jsonnet")
  -s, --summarize              quick summary of the differences, hides file contents
  -t, --target strings         only use the specified objects (Format: <type>/<name>)

$ls
certs.jsonnet    config.libsonnet ingress.jsonnet  main.jsonnet     spec.json
cluster.jsonnet  datadog.jsonnet  logging.jsonnet  service.jsonnet
$tk apply -m cluster.jsonnet .

Hi! Thanks a lot for your contribution!
Because this touches design decisions, we can't merge this immediately without further discussion.
Some (internal) design drafts for new features also include inferring meaning from the entrypoints file name. These are options, not strong ideas, but this would block them off.
Until this is decided, we probably need to hold this PR.

Luckily there are other ways to solve your problem. Because Jsonnet features lazy evaluation, you can use extVars / TLAs to evaluate only subsets of your codebase, like so:
// main.jsonnet
{
  foo: { /* ... */ },
  bar: { /* ... */ },
}[std.extVar("target")]

Invoked as so:
$ tk show --extVar=target=foo

Downside, you always need to pass the extVar from now. A bit more sophisticated with top level arguments:
local helper(env) = function(target=null) if target == null then env else env[target];

helper({
  foo: "foo",
  bar: "bar",
})

helper in this case returns a function that has a single target argument. Using jsonnet -A target=foo you can set this. The TLA functionality is not yet exposed in Tanka, but there is nothing stopping us from doing so.

Thanks for your kind feedback!
I understand the meaning of  main.jsonnet. :-)   I have already considered using extVars but, there is no way to use both of with extVars and without extVars. It means that I can't use both of tk apply .  and  tk apply --extVar 'target=logging'  in the same environment (Is it right?)
What do you think about using labels filter(maybe -l or  -t k=v)?  Like -t, If I have some labels for grouping, I can do it for partial apply or diff.  The current format of target filter (-t) is only <type>/<name> and names are not always same in a partial group.

It means that I can't use both of tk apply .  and  tk apply --extVar 'target=logging' in the same environment (Is it right?)

Jsonnet does not allow checking for presence of extVars by design. This is a design decision intended to discourage hidden options in random places in the code. Jsonnet supports optional TLAs (they're explicitly declared at the top level and passed explicitly, so surprising behavior is much less likely).

What do you think about using labels filter(maybe -l or -t k=v)? Like -t, If I have some labels for grouping, I can do it for partial apply or diff. The current format of target filter (-t) is only / and names are not always same in a partial group.

Any kind of filtering in Tanka happens after evaluating the Jsonnet, because we can't predict where exactly in the jsonnet output k8s are located.
As you seem to be up for performance, you need to instruct the Jsonnet compiler to not evaluate everything.

Jsonnet does not allow checking for presence of extVars by design. This is decision was intended to discourage hidden options in random places in the code. Tanka could make a different decision here and emulate optional extvars, but I don't think it does.
Jsonnet supports optional TLAs (they're explicitly declared at the top level and passed explicitly, so surprising behavior is much less likely).

Precisely.
Currently, your main.jsonnet returns an object. You could change this so it returns a function, which takes arguments. Using a feature called TLA (Top Level Arguments) you can set those arguments from the command line. Function arguments can have default values, so the workflow stays intact:
local env = {
  foo: "foo",
  bar: "bar",
};

function(target=null) if target == null then env else env[target]

The top level function checks whether it received target from the command line. If so, only that is evaluated. If not, all is evaluated.
Keep in mind Tanka does not support TLA yet. We can do so by the next release

TLA support was added in #340. This allows to solve the original problem, running only parts of the config while keeping the tk show . workflow intact.
Can we consider this resolved @anarcher?

Yes, I will use it (TLA) for partial works.  I close this PR :-) Thanks a lot! :-D


Update Issue - 38443420

default description
URL tested: http://ci.bsstag.com/welcome
Open URL on Browserstack

Property
Value

Browser
Chrome 77.0

Operating System
Windows 8.1

Resolution
1024x612

Screenshot Attached
Screenshot URL

Click here to reproduce the issue on Browserstack

Updated Screenshot Attached


Nuget binary packages do not respect conditional rules from paket.dependencies file

Description
Nuget binaries do not respect conditional rules from the paket.dependencies file, in at least one scenario. This prevents us from using the Vsxmd package with Paket, which allows a windows dev machine to generate markdown from xml comments automatically on build. Our Linux build machine cannot run exe files, and because the conditional rules do not work, we cannot disable this in release mode, and therefore this package cannot be used with Paket.
See https://github.com/fsprojects/Paket/issues/197 and https://github.com/fsprojects/Paket/issues/1026 for related features.
Repro steps
In a new project, edit paket.dependencies, and include the following:
nuget Vsxmd condition:DEBUG
In paket.references, include: Vsxmd
Expected behavior
foo.fsproj file should contain:
<Import Project="..\..\packages\scripting\Vsxmd\build\Vsxmd.targets" Condition="'$(DEBUG)' == 'True' And Exists('..\..\packages\scripting\Vsxmd\build\Vsxmd.targets')" Label="Paket" />
Actual behavior
foo.fsproj file contains:
<Import Project="..\..\packages\scripting\Vsxmd\build\Vsxmd.targets" Condition="Exists('..\..\packages\scripting\Vsxmd\build\Vsxmd.targets')" Label="Paket" />
Known workarounds
None

Also related:
https://github.com/fsprojects/Paket/issues/2263#issuecomment-296197739
https://github.com/fsprojects/Paket/pull/2286
https://github.com/fsprojects/Paket/issues/2283
https://github.com/fsprojects/Paket/pull/2272
https://github.com/fsprojects/Paket/pull/2234
https://github.com/fsprojects/Paket/issues/2227
maybe we should add some tests in this area ...

/cc @0x53A


Refactor full join iterator to allow access to build tracker

Relates to #10240.  When looping over build partitions for each stream batch, a full outer join requires that we keep track of which rows in the build side partitions have been referenced across all stream batches.  After all the stream batches have been processed across all sub-partitions, the build-side row tracking data per partition can be used to perform the anti-join needed to finish results of the full outer join.
This refactors the full outer join iterator to have a sub-iterator that performs the left or right outer join and tracks the build side rows as it goes.  After it is done iterating, callers can release the tracking data.  This removes the need for a final batch concept in the abstract join iterator, but the abstract iterator does need to know whether it's safe to close the iterator early when hasNext returns false.

build

build


feat: Request Debug Header docs for Kong Gateway 3.5

Description
I added docs for the new request debug header to the Gateway docs based on the draft from Engineering. It explains how the feature works as well as provides and example configuration.

DOCU-3475
Testing instructions
Preview link: https://deploy-preview-6475--kongdocs.netlify.app/gateway/latest/production/debug-request/
Checklist

[x] Review label added
[x] PR pointed to correct branch (main for immediate publishing, or a release branch: e.g. release/gateway-3.2, release/deck-1.17)

@lena-larionova Made changes based on your feedback, if you don't mind reviewing again


메뉴 레이아웃 수정

Deploy preview for flynndev processing.
Built with commit b292d03f5f4cca482d317b8f7b9d2c9b0f801d68
https://app.netlify.com/sites/flynndev/deploys/5ae724acc9659236b00ba6ca


⚠ TorrentLeech has degraded performance

In d26de2d, TorrentLeech ($TL) experienced degraded performance:

HTTP code: 200
Response time: 4282 ms

Resolved: TorrentLeech performance has improved in a57b7e9 after 6 minutes.


PlantUML ASCII Art diagram integration?

I'd love to see integration with PlantUML's ASCII Art diagram output. :)
Reference: https://plantuml.com/ascii-art
Thank you for this nifty application! :) Cheers.

Hey! This is a really cool program, thanks for introducing me to it. I plan on having some sort of preprocessing mechanism for converting things like graphviz, ascii images, :emojis:, and stuff like this. For now though, you can probably just copy and paste the ascii stuff directly inside the slides 😄

Closing in favour of https://github.com/maaslalani/slides/issues/51


Move current integration tests to commons module

Possibly create new integration testsuite as well to test executing from CLI and integrating with WFLY

Working on this.

What about moving all integration tests into a new module, where they could live in separate packages (for CLI, basic API, ...)? We could reuse config files, utilities, etc.

Yes, the new testsuite should be a separate module. Initially I think only tests from prospero-cli/src/test/java/integration/ would live there, but we'll add more


IndexError: list index out of range

daops version: 0.5.0
Python version:
Operating System:

Description
Error seen on user request on production service.
See error 41 from 26.03 in this notebook:
https://nbviewer.jupyter.org/github/roocs/rooki/blob/master/notebooks/tests/test-c3s-cmip6-subset-errors-dkrz-2021-03-23.ipynb
What I Did
Run this request:
wf = ops.Subset(
        ops.Input(
            'tas', ['c3s-cmip6.ScenarioMIP.NIMS-KMA.KACE-1-0-G.ssp245.r1i1p1f1.Amon.tas.gr.v20191217']
        ),
        time="2021-01-01/2100-12-31",
        area="-10,30,35,70"
)
resp = wf.orchestrate()
resp.status

Get into this error:
Process error: list index out of range

  File "/usr/local/anaconda/envs/rook/lib/python3.7/site-packages/daops/utils/consolidate.py", line 42, in consolidate
    ds = open_xr_dataset(dset)
  File "/usr/local/anaconda/envs/rook/lib/python3.7/site-packages/roocs_utils/xarray_utils/xarray_utils.py", line 33, in open_xr_dataset
    return xr.open_dataset(dset[0], use_cftime=True)
IndexError: list index out of range

This runs for me without a problem.
I get IndexError: list index out of range when I try to run tests with non-existent data, as the lines
https://github.com/roocs/roocs-utils/blob/e5f220519578b45b882f87c8348ee0bd8d707f3d/roocs_utils/project_utils.py#L146-L147
don't find any files.
So it seems as though the data is missing somewhere.

@cehbrecht - it seems we have the files on our file system for this:
DSID=c3s-cmip6.ScenarioMIP.NIMS-KMA.KACE-1-0-G.ssp245.r1i1p1f1.Amon.tas.gr.v20191217

$ ls /badc/cmip6/data/CMIP6/ScenarioMIP/NIMS-KMA/KACE-1-0-G/ssp245/r1i1p1f1/Amon/tas/gr/v20191217/*.nc

/badc/cmip6/data/CMIP6/ScenarioMIP/NIMS-KMA/KACE-1-0-G/ssp245/r1i1p1f1/Amon/tas/gr/v20191217/tas_Amon_KACE-1-0-G_ssp245_r1i1p1f1_gr_201501-210012.nc

Please can you check that you have the same file on the DKRZ file system.

Yes, it works also now on DKRZ side. Both in catalog and file-system.
Maybe it was a temporary failure on the file-system? Or permission changes?
I'm closing this.


ImportError on "DispatcherMiddleware" with werkzeug 1.0.1

Running any voltron command returns this error.
Traceback (most recent call last):
  File "/home/user/.local/bin/voltron", line 5, in <module>
    from voltron import main
  File "/home/user/.local/lib/python3.8/site-packages/voltron/__init__.py", line 6, in <module>
    from .main import main
  File "/home/user/.local/lib/python3.8/site-packages/voltron/main.py", line 9, in <module>
    from .view import *
  File "/home/user/.local/lib/python3.8/site-packages/voltron/view.py", line 25, in <module>
    from .core import Client
  File "/home/user/.local/lib/python3.8/site-packages/voltron/core.py", line 18, in <module>
    from werkzeug.wsgi import DispatcherMiddleware, SharedDataMiddleware
ImportError: cannot import name 'DispatcherMiddleware' from 'werkzeug.wsgi' (/home/user/.local/lib/python3.8/site-packages/werkzeug/wsgi.py)

This is caused by DispatcherMiddleware moving to werkzeug.middleware.dispatcher.DispatcherMiddleware.

Fixed issue by installing from github; manual install docs and pypi package are both outdated though.


SILEO ERRORS !!!!!!

I installed sileo with pogo from TrollStore after jailbreak

help

iphone 8 plus

Bro i installed trollstore from here https://github.com/opa334/TrollStore

You need a mac or linux

Or you can just download the ipa and signed with AltStore form windows or mac and it will work

I installed sileo with pogo from TrollStore after jailbreak

How did you make wifi work? I couldn't make it.


NTR: tRNA 5-carboxymethoxyuridine methyltransferase activity

As a child term for GO:0016300.  Proposed definition: Catalysis of the transfer of a methyl group from S-adenosylmethionine to a 5-carboxymethoxy-modified uridine residue in a tRNA molecule.  This is a new activity discovered in PMID 26681692.
Thanks,
Ingrid

Hi Ingrid,
Added GO:0097697 tRNA 5-carboxymethoxyuridine methyltransferase activity
Full ontology stanza below. Thanks,
Paola
id: GO:0097697
name: tRNA 5-carboxymethoxyuridine methyltransferase activity
namespace: molecular_function
def: "Catalysis of the transfer of a methyl group from S-adenosylmethionine to a 5-carboxymethoxy-modified uridine residue in a tRNA molecule." [GOC:imk, PMID:26681692]
is_a: GO:0016300 ! tRNA (uracil) methyltransferase activity


Build fail due to link error with pthreads

I have a computer with freshly installed Linux Mint 18 (based on Ubuntu 16.04), and have a linking issue when building OSPRay. I get the following error:
[ 16%] Linking CXX executable ../../../../../ospCvtParaViewTfcn ../../../../../libospray_common.so.1.0.0: undefined reference to `pthread_create' ../../../../../libospray_common.so.1.0.0: undefined reference to `pthread_attr_setstacksize' ../../../../../libospray_common.so.1.0.0: undefined reference to `pthread_setaffinity_np' ../../../../../libospray_common.so.1.0.0: undefined reference to `pthread_join' ../../../../../libospray_common.so.1.0.0: undefined reference to `pthread_cancel' collect2: error: ld returned 1 exit status builddir/apps/intel64/common/tfn_lib/CMakeFiles/ospCvtParaViewTfcn.dir/build.make:122: recipe for target 'ospCvtParaViewTfcn' failed make[2]: *** [ospCvtParaViewTfcn] Error 1 CMakeFiles/Makefile2:1124: recipe for target 'builddir/apps/intel64/common/tfn_lib/CMakeFiles/ospCvtParaViewTfcn.dir/all' failed make[1]: *** [builddir/apps/intel64/common/tfn_lib/CMakeFiles/ospCvtParaViewTfcn.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....
I run CMake with the following command:
cmake -DCMAKE_INSTALL_PREFIX=/opt/ospray/git-master/install -DOSPRAY_BUILD_MPI_DEVICE=On ../source
The issue can be fixed by inserting the flag "-lpthread" at the end of the linking command in the file "builddir/apps/intel64/common/tfn_lib/CMakeFiles/ospCvtParaViewTfcn.dir/linx.txt". I have tried setting the CMAKE_EXE_LINKER_FLAGS="-lpthread", but this insert the flag too early in the link instructions. When this issue is fixed, there is a similar one later on in the build process that is fixed in the same way.
I am not sure if this is a CMake issue or if it is a problem with the OSPRay CMake files. I have tried building OSPRay with both the standard CMake version 3.5.1 that comes with the distro and the most recent 3.6.1 downloaded from source. Both behave the same way.
I attach the output from cmake and make.
cmake.txt
make.txt

Hi, can you let us know if this is resolved on the latest devel? I think e2375c0f7f2d should have fixed the link issue.

I pulled last devel, deleted my build directory and tried again, but still same problem.

Please enable CMAKE_VERBOSE_MAKEFILE and have a look at / post the command line when linking libospray_common.so. This is how it looks like for me (I use icc, but this should not matter):
[2/3] : /opt/intel/compilers_and_libraries/linux/bin/intel64/icpc  -fPIC -Wall -fPIC -no-ansi-alias -std=c++11 -DNOMINMAX -static-intel -Wall -fPIC -no-ansi-alias -std=c++11 -DNOMINMAX -static-intel -DNDEBUG -O3 -g  -Wl,--exclude-libs=ALL -Wl,--exclude-libs=ALL -shared -Wl,-soname,libospray_common.so.0 -o libospray_common.so.1.0.1 builddir/ospcommon/intel64/CMakeFiles/ospray_common.dir/common.cpp.o builddir/ospcommon/intel64/CMakeFiles/ospray_common.dir/FileName.cpp.o builddir/ospcommon/intel64/CMakeFiles/ospray_common.dir/sysinfo.cpp.o builddir/ospcommon/intel64/CMakeFiles/ospray_common.dir/malloc.cpp.o builddir/ospcommon/intel64/CMakeFiles/ospray_common.dir/library.cpp.o builddir/ospcommon/intel64/CMakeFiles/ospray_common.dir/thread.cpp.o builddir/ospcommon/intel64/CMakeFiles/ospray_common.dir/vec.cpp.o  -lpthread -ldl -Wl,-rpath,:::::::::::::::::::::: && :

It contains -lpthread at the end, as it should be the case.

Pulled last devel today to be sure, and retried with CMAKE_VERBOSE_MAKEFILE:
[ 16%] Linking CXX executable ../../../ospCvtParaViewTfcn
cd /opt/ospray/git-master/build/apps/common/tfn_lib && /opt/cmake/3.6.1/install/bin/cmake -E cmake_link_script CMakeFiles/ospCvtParaViewTfcn.dir/link.txt --verbose=1
/usr/bin/c++    -fPIC -fno-strict-aliasing  -std=c++11 -Wno-narrowing -fPIC -fno-strict-aliasing  -std=c++11 -Wno-narrowing -DNDEBUG    -O3 -Wstrict-aliasing=1 -ffast-math    CMakeFiles/ospCvtParaViewTfcn.dir/convertParaViewTfcn.cpp.o CMakeFiles/ospCvtParaViewTfcn.dir/jsoncpp.cpp.o  -o ../../../ospCvtParaViewTfcn -rdynamic ../../../libospray_tfn.so.1.0.1 ../../../libospray_common.so.1.0.1 -ldl -Wl,-rpath,/opt/ospray/git-master/build:
../../../libospray_common.so.1.0.1: undefined reference to `pthread_create'
../../../libospray_common.so.1.0.1: undefined reference to `pthread_attr_setstacksize'
../../../libospray_common.so.1.0.1: undefined reference to `pthread_setaffinity_np'
../../../libospray_common.so.1.0.1: undefined reference to `pthread_join'
../../../libospray_common.so.1.0.1: undefined reference to `pthread_cancel'
collect2: error: ld returned 1 exit status
apps/common/tfn_lib/CMakeFiles/ospCvtParaViewTfcn.dir/build.make:125: recipe for target 'ospCvtParaViewTfcn' failed
make[2]: *** [ospCvtParaViewTfcn] Error 1
make[2]: Leaving directory '/opt/ospray/git-master/build'
CMakeFiles/Makefile2:1159: recipe for target 'apps/common/tfn_lib/CMakeFiles/ospCvtParaViewTfcn.dir/all' failed

So no -lpthread at all.

Could you try fully cleaning and recreating your build directory? It looks like libospray_common is still being linked in when it should no longer be linked with ospCvtParaViewTfcn as of e2375c0

Ok, you posted the line for ospCvtParaViewTfcn, but I guess -lpthread is also missing for libospray_common.so. It looks like a CMake issue (though CMake finds pthread it could also add it as /path/to/libpthread.so, depending on compiler / system).
Let's try to track this down. Can you please add
PRINT(CMAKE_THREAD_LIBS_INIT)

to ospcommon/CMakeLists.txt at line 19 (after FIND_PACKAGE(Threads REQUIRED)) and run cmake again to print the value of CMAKE_THREAD_LIBS_INIT?
PS: That ospCvtParaViewTfc is still linked against libospray_common is fine: CMake adds dependencies of dependencies automatically (libospray_tfn needs libospray_common).

Twinklebear: I did a rm -rf * in the build directory first in the first place, sorry I forgot to mention.
And CMAKE_THREAD_LIBS_INIT is empty... See below.
-- Found Threads: TRUE
CMAKE_THREAD_LIBS_INIT =

And for the reference, I'm still using CMake 3.6.1.

Ok. I found the problem. Du to another software piece (with some strange non-standard configuration scripts), I had set the CC-variable to 'mpicc'. Once i unset this, OSPRay builds nicely, both master and devel branches. CMAKE_THREAD_LIBS_INIT = -lpthread as it should.
I am really sorry I annoyed you with this. Thanks for your help.


DetachDisks fails: cannot detach disk in project ""

It looks like DetachDisks has been completely broken for a few months.
Symptom:
[Daisy] Validating workflow "shrink-image"
[shrink-image]: 2020-06-19T21:44:07Z Validating workflow
[shrink-image]: 2020-06-19T21:44:07Z Validating step "setup"
[shrink-image]: 2020-06-19T21:44:07Z Validating step "run"
[shrink-image]: 2020-06-19T21:44:08Z Validating step "wait-finished"
[shrink-image]: 2020-06-19T21:44:08Z Validating step "wait-vm-shutdown"
[shrink-image]: 2020-06-19T21:44:08Z Validating step "detach-disk"
[shrink-image]: 2020-06-19T21:44:08Z Error validating workflow: step "detach-disk" validation error: Multiple errors:
* cannot detach disk in project "" from instance in project "<redacted>": "output"
* cannot detach disk in zone "" from instance in zone "us-central1-a": "output"
[Daisy] Error validating workflow "shrink-image": step "detach-disk" validation error: Multiple errors:
* cannot detach disk in project "" from instance in project "<redacted>": "output"
* cannot detach disk in zone "" from instance in zone "us-central1-a": "output"

Last working version: c776c023bd4e2908d5194634e7740f66119ec011 (March 18)
First failing commit: d4328ccb0e8120965ccf35f087db7d7132ccbc6b (March 24)
The detach step is very straight forward:
    "detach-disk": {
      "DetachDisks": [
        {
          "DeviceName": "output",
          "Instance": "shrinker-vm"
        }
      ]
    },

Full workflow file attached: shrink_image.wf.json.txt

Looking into it

https://github.com/GoogleCloudPlatform/compute-image-tools/pull/1269 to fix it

It works fine from my side now, please verify, thanks!
@tilmangiese

Works as expected. Thank you!


Break Change: drop ast.Node API UnsafeArray() and UnsafeMap()

Reason: PR #464 changed the underlying storage of ast.Node, thus we can provide directly reference of it like UnsafeArray() and UnsafeMap(). For safety , we dropped these two API

Codecov Report

Merging #498 (336ed7c) into main (007f4ff) will increase coverage by 4.21%.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main     #498      +/-   ##
==========================================
+ Coverage   73.70%   77.92%   +4.21%
==========================================
  Files          58       65       +7
  Lines        8021    10585    +2564
==========================================
+ Hits         5912     8248    +2336
- Misses       1789     1980     +191
- Partials      320      357      +37

Files Changed
Coverage Δ

ast/node.go
79.73% <ø> (-0.35%)
:arrow_down:

... and 7 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


typeScript 下 echarts.registerMap，提示错误，怎么解决

Version
5.1.2
Steps to reproduce
import * as echarts from 'echarts/core';
import chinaMap from './china.json';
echarts.registerMap('china', chinaMap);
提示报错 类型“{ type: string; features: ({ type: string; properties: { id: string; size: string; name: string; cp: number[]; childNum: number; }; geometry: { type: string; coordinates: number[][][]; }; } | { type: string; properties: { ...; }; geometry: { ...; }; })[]; }”的参数不能赋给类型“MapInput | GeoJSONSourceInput”的参数。
不能将类型“{ type: string; features: ({ type: string; properties: { id: string; size: string; name: string; cp: number[]; childNum: number; }; geometry: { type: string; coordinates: number[][][]; }; } | { type: string; properties: { ...; }; geometry: { ...; }; })[]; }”分配给类型“GeoJSONCompressed”。
属性“type”的类型不兼容。
不能将类型“string”分配给类型“"FeatureCollection"”。
What is expected?
怎么才能不报错
What is actually happening?
希望知道引入什么类型会不报错

找一下对应的类型定义是哪里错了，然后提个 PR 吧

echarts.registerMap('china', (china) as any);
echarts.registerMap('world', (world) as any);
echarts.registerMap('USA',###  (usa) as any, {
Alaska: {
// 把阿拉斯加移到美国主大陆左下方
left: -143,
top: 50,
width: 15
},
Hawaii: {
left: -135,        // 夏威夷
top: 24,
width: 5
}
});
加  (usa) as any 可以解决这个bug

I think it's not a mistake of echarts.
According to the prompt, we can find the main problem is "The type "string" cannot be assigned to the type ""FeatureCollection""". After that we can jump to the type declaration in which file name called shared.d.ts whose path is echarts/types/dist/shared.d.ts
If you regist map by using GeoJSON,  the type were limited by GeoJSONFeatureCollection GeoJSONFeature and GeoJSONGeometry.
Inspect the data in own code was inferred to be string by typescript, but echarts declare it as a literal "FeatureCollection".
Solution:
Add as const assertions to the field which were defined as literal. For example:
{
  type: 'FeatureCollection' as const,
  features: [
    {
      id: '710000',
      type: 'Feature' as const,
      geometry: {
        type: 'MultiPolygon' as const,
        coordinates: [
          ......
        ],
        encodeOffsets: [
          ......
        ],
      },
      properties: { cp: [121.509062, 25.044332], name: '', childNum: 6 },
    },
  ]
}

请问这个问题解决了吗

请问这个问题解决了吗

https://github.com/apache/echarts/issues/15527#issuecomment-962399027

是否可以考虑导出类似 GeoJSONSourceInput SVGMapInput MapInput 这样的 interface / type 呢？

it's the year of 2023 and the code below saved my day
import { GeoJSONSourceInput } from 'echarts/types/src/coord/geo/geoTypes';

现在用不了了

@emeryao 现在这种方式用不了了，还有其他解决方案吗

@emeryao 现在这种方式用不了了，还有其他解决方案吗

I just tried in my project with the code above and code below

geoJson.ts

import { GeoJSON } from 'echarts/types/src/coord/geo/geoTypes';

export const geoJson: GeoJSON = {
    type: 'FeatureCollection',
    features: [
      // some geoJson
    ]
}

app.ts

import { geoJson } from './geojson';

echarts.use([CanvasRenderer, EffectScatterChart, LinesChart, TooltipComponent, GeoComponent]);
echarts.registerMap('map', geoJson);

both the codes works with<EMAIL_ADDRESS>and<EMAIL_ADDRESS>@volcano621

@emeryao When I open the webpage, I encounter the error Failed to resolve import "echarts/types/src/coord/geo/geoTypes" from "src\components\Overview\MapView.vue". Does the file exist? despite the absence of any  errors in my IDE .My code is here
import * as echarts from "echarts";
import { GeoJSON } from 'echarts/types/src/coord/geo/geoTypes';
import chinaJson  from "../../mock/index.json";

echarts.registerMap('china', (chinaJson) as GeoJSON);

oh the issue has been resolved now.
add "type"
import type { GeoJSON } from 'echarts/types/src/coord/geo/geoTypes';

oh the issue has been resolved now. add "type"
import type { GeoJSON } from 'echarts/types/src/coord/geo/geoTypes';

but in vue3+vite, have another error.
Error: The following dependencies are imported but could not be resolved:

  echarts/types/src/coord/geo/geoTypes (imported by E:/*/*/src/components/map-content/MapContent.vue?id=0)

Are they installed?
    at file:///E:/*/*/node_modules/.pnpm/vite@4.4.9_@types+node@20.6.5_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:45705:23
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async file:///E:/*/*/node_modules/.pnpm/vite@4.4.9_@types+node@20.6.5_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:45114:38

But it doesn't affect development, just looks annoying 😒😒😒
Who knows how to resolve it?

import type { GeoJSONSourceInput } from 'echarts/types/src/coord/geo/geoTypes';
echarts.registerMap('china', china as GeoJSONSourceInput);

try this


Transpile on prepublish

Transpile into vanilla js for package use. Don't use browserify dependency for more flexible.

https://github.com/jessy1092/react-semantify/commit/649453e165078bc4ec6e2b7ae70a3b665d5495bc


CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected

Hi all,
tl;dr
GPUs were not recognized, so I reinstalled CentOS.
I try to install AlphaFold on one of our workstations, but, as the title already says, the GPUs are not used.
The system is a workstation with 2 NVIDIA 2080 TIs and running centos:
$ cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)

Here is what I did so far:
I installed NCIDIA Container Toolkit and docker and set it up to run as a non-root user:
$ docker --version
Docker version 20.10.12, build e91ed57

And I can see the gpus:
$ docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
Thu Feb 24 10:17:05 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.54       Driver Version: 510.54       CUDA Version: 11.6     |

(output shortened)
Than I created a virtual environment for alphafold:
$ conda create -n alphafold
$ conda activate alphafold
$ conda install python=3.9.7

installed the requirements
$ python3 -m pip install -r docker/requirements.txt
and build the Docker image:
$ docker build -f docker/Dockerfile -t alphafold .
The databases were already downloaded and placed on /scratch/alphafold_db. I hardcoded this path in the run_docker.py file.
To test the alphafold installation, I downloaded a random sequence form Uniprot:
$ wget https://uniprot.org/uniprot/P62837.fasta
and run alphafold with this sequence
$ python3 docker/run_docker.py --fasta_paths=P62837.fasta --max_template_date=2022-01-01 --model_preset=monomer_ptm
and get the following issue:
I0224 11:35:36.788937<PHONE_NUMBER>59456 run_docker.py:247] 2022-02-24 10:35:36.788274: E external/org_tensorflow/tensorflow/stream_executor/cuda/cuda_driver.cc:271] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
I0224 11:35:36.789192<PHONE_NUMBER>59456 run_docker.py:247] I0224 10:35:36.788722<PHONE_NUMBER>22784 xla_bridge.py:212] Unable to initialize backend 'gpu': Failed precondition: No visible GPU devices.
I0224 11:35:36.789365<PHONE_NUMBER>59456 run_docker.py:247] I0224 10:35:36.788864<PHONE_NUMBER>22784 xla_bridge.py:212] Unable to initialize backend 'tpu': Invalid argument: TpuPlatform is not available.
I0224 11:35:36.789520<PHONE_NUMBER>59456 run_docker.py:247] W0224 10:35:36.788920<PHONE_NUMBER>22784 xla_bridge.py:215] No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)

(output reduced to the relevant part. Databases were mounted and JackHMMER started afterwards)
So it looks like tensorflow is not seeing the GPUs at all.
I remember, I had the same issue on another machine, but unfortunately I can't remember how I fixed it.
Thanks for your help.

I somehow break the system while figuring out, what the issue. Other software, like cryoSPARC, failed also, trying to use the GPUs. So I ended up reinstalling CentOS, and just installed the minimal software needed for alphafold (conda, docker, nvidia-drivers) and it now runs.
The reason, everything fails might be the /dev/nvidia* devices. The group was neither root nor my user, so I tried to chown it back to root. This might cause eventually the error on all software.
Nevertheless, I cannot give any additional information on this case, to it might be closed.
Sorry for the inconvenience.


[feature] Support for GitHub Attestation Store

We should consider adding support for storing results in GitHub's attestation store.
I think, we would need to create a predicate that matches what the attestation store expects, so it would be slightly different than the ones we create today. This might be ok, since we aren't supporting SLSA v1.0 much in our workflows yet, so we could do it at the same time.
Related #3668

@OpenWaygate So I guess you generating two attestations? one created by slsa-github-generator and one by the attest-build-provenance action?

yes, while the one created by slsa-github-generator will appear in release assets, the one created by attest-build-provenance will appear in https://github.com/username/projectname/attestations


Feature: Allow for using bearer token with secured SPARQL endpoints

Expected Behavior
In the coypu project, we need to fetch data from graphs which are in SPARQL endpoints secured with OAUTH2 (client credential flow).
Given an available token, which is provided via an environment variable (e.g. RDFUNIT_BEARER_TOKEN), the expected behaviour of this feature is, that rdfunit uses this token to provide authentication to the endpoint.
This is basically as easy as adding the following header to all HTTP requests to the SPARQL endpoint:
Authorization: Bearer ${RDFUNIT_BEARER_TOKEN}

Reference: https://www.rfc-editor.org/rfc/rfc6750#section-2
Actual Behavior
rdfunit is not able to use token based authentication on endpoints
Test Environment
Given the following cmemc config, you can fetch a token as follows with cmemc.
$ cat cmemc.ini
[pm.coypu.org]
CMEM_BASE_URI=https://pm.coypu.org/
OAUTH_GRANT_TYPE=client_credentials
OAUTH_CLIENT_ID=cmem-service-account
OAUTH_CLIENT_SECRET=...

$ cmemc --config-file cmemc.ini -c pm.coypu.org admin token
[token here]

# authenticated
$ curl -H "Authorization: Bearer $(cmemc --config-file cmemc.ini -c pm.coypu.org admin token)" https://pm.coypu.org/dataplatform/proxy/default/sparql -G --data-urlencode "query=SELECT ?noop WHERE {BIND ('output' AS ?noop)}"
[query result here]

# NOT authenticated
$ curl https://pm.coypu.org/dataplatform/proxy/default/sparql -G --data-urlencode "query=SELECT ?noop WHERE {BIND ('output' AS ?noop)}"
{"title":"Unauthorized","status":401,"detail":"Full authentication is required to access this resource"}%

Team
@Aklakan will implement this
@mgns @rpietzsch and @seebi are happy to test this and provide feedback
What this request is not about
This request is not about how this token fetched from an identity provider.
Assuming the token is available is ok.

Draft implementation of this feature in https://github.com/mgns/RDFUnit/tree/feature/bearerTokenSupport


Replacing cosine_similarity and maximal_marginal_relevance local methodwith the ones in langchain core.

Need to run isort linter. First install the test deps: pip install .[test], then run the linter isort ..


browser.get inside config.onPrepare breaks after upgrade to 2.0.0

As I said in #1962, our angular app is manually bootstrapped (mainly because of requireJS) but it never caused any issue with Protractor.
Here is the app_test.js (this is the real test, we are starting a new project, with just a Hello World directive for now, while building the app structure).
/* global browser, element, by */

describe('project', function() {
  'use strict';

  describe('startup', function() {
    it('should display "Hello World!"', function() {
      var title = element(by.tagName('h1'));

      expect(title.getText()).toEqual('Hello World!');
    });
  });
});

protractor.conf.js
exports.config = {
  seleniumAddress: 'http://<IP_ADDRESS>:4444/wd/hub',

  troubleshoot: true,

  specs: [
    '../e2e/**/*_test.js'
  ],

  multiCapabilities: [
    {'browserName': 'chrome'},
    {'browserName': 'firefox'}
  ],

  baseUrl: 'http://localhost:8000',

  onPrepare: function() {
    browser.driver.manage().window().maximize();
    browser.get('e2e/index.html');
  },

  jasmineNodeOpts: {
    isVerbose: true
  }
};

output
$ protractor protractor.conf.js
Starting Protractor (https://github.com/angular/protractor)
-------------------------------------------------------------------
DEBUG - Running with --troubleshoot
DEBUG - Protractor version: 2.0.0
DEBUG - Your base url for tests is http://localhost:8000
[launcher] Running 2 instances of WebDriver
F
------------------------------------
[chrome #1] PID: 12941
[chrome #1] Specs: /home/gilles/project/e2e/app_test.js
[chrome #1]
[chrome #1] Using the selenium server at http://<IP_ADDRESS>:4444/wd/hub
[chrome #1] DEBUG - WebDriver session successfully started with capabilities { caps_:
[chrome #1]    { platform: 'LINUX',
[chrome #1]      acceptSslCerts: true,
[chrome #1]      javascriptEnabled: true,
[chrome #1]      browserName: 'chrome',
[chrome #1]      chrome: { userDataDir: '/tmp/.com.google.Chrome.sgJvV0' },
[chrome #1]      rotatable: false,
[chrome #1]      locationContextEnabled: true,
[chrome #1]      mobileEmulationEnabled: false,
[chrome #1]      'webdriver.remote.sessionid': 'a09b3c2e-9314-47dc-9d84-a6c30bc854d4',
[chrome #1]      version: '41.0.2272.101',
[chrome #1]      takesHeapSnapshot: true,
[chrome #1]      cssSelectorsEnabled: true,
[chrome #1]      databaseEnabled: false,
[chrome #1]      handlesAlerts: true,
[chrome #1]      browserConnectionEnabled: false,
[chrome #1]      nativeEvents: true,
[chrome #1]      webStorageEnabled: true,
[chrome #1]      applicationCacheEnabled: false,
[chrome #1]      takesScreenshot: true } }
[chrome #1] project
[chrome #1]   startup
[chrome #1]     should display "Hello World!" - fail
[chrome #1]
[chrome #1]
[chrome #1] Failures:
[chrome #1]
[chrome #1]   1) project startup should display "Hello World!"
[chrome #1]    Message:
[chrome #1]      Error while waiting for Protractor to sync with the page: "angular could not be found on the window"
[chrome #1]    Stacktrace:
[chrome #1]      undefined
[chrome #1]
[chrome #1] Finished in 0.243 seconds
[chrome #1] 1 test, 1 assertion, 1 failure
[chrome #1]

(Same for firefox #2 so I don't think it would be relevant to add its output too).
I can see that the browser.driver.manage().window().maximize(); is being called but I think browser.get('e2e/index.html'); isn't.
The address bar contains data:, instead of http://localhost:8000/project/e2e/index.html.
If I move the browser.get() inside the test itself, it works and pass.
Please tell me if you need more info or if you want me to try ideas here :wink:

I have the same issue.

I can't reproduce this. Here's a config and test that I used to verify that browser.get gets called:
exports.config = {
  directConnect: true,

  capabilities: {
    'browserName': 'chrome'
  },

  framework: 'jasmine2',

  specs: ['example_spec.js'],

  onPrepare: function() {
    browser.driver.manage().window().maximize();
    browser.get('http://juliemr.github.io/protractor-demo');
  }
};

describe('site', function() {
  it('should do stuff', function() {
    expect(browser.getTitle()).toEqual('Super Calculator');
    expect(true).toBe(true);
  })

Can you modify this to get the same failure you're seeing?

directConnect does not affect the issue (same error with or without).
It works with framework: 'jasmine2'. Here's the output:
Starting Protractor (https://github.com/angular/protractor)
-------------------------------------------------------------------
DEBUG - Running with --troubleshoot
DEBUG - Protractor version: 2.0.0
DEBUG - Your base url for tests is http://localhost:8000
[launcher] Running 2 instances of WebDriver
.
------------------------------------
[chrome #1] PID: 26947
[chrome #1] Specs: /home/gilles/project/e2e/app_test.js
[chrome #1]
[chrome #1] Using the selenium server at http://<IP_ADDRESS>:4444/wd/hub
[chrome #1] DEBUG - WebDriver session successfully started with capabilities { caps_:
[chrome #1]    { platform: 'LINUX',
[chrome #1]      acceptSslCerts: true,
[chrome #1]      javascriptEnabled: true,
[chrome #1]      browserName: 'chrome',
[chrome #1]      chrome: { userDataDir: '/tmp/.com.google.Chrome.GgR1hJ' },
[chrome #1]      rotatable: false,
[chrome #1]      locationContextEnabled: true,
[chrome #1]      mobileEmulationEnabled: false,
[chrome #1]      'webdriver.remote.sessionid': '51c51a3e-6ba6-4165-9fe6-255ff76fcf6b',
[chrome #1]      version: '41.0.2272.101',
[chrome #1]      takesHeapSnapshot: true,
[chrome #1]      cssSelectorsEnabled: true,
[chrome #1]      databaseEnabled: false,
[chrome #1]      handlesAlerts: true,
[chrome #1]      browserConnectionEnabled: false,
[chrome #1]      nativeEvents: true,
[chrome #1]      webStorageEnabled: true,
[chrome #1]      applicationCacheEnabled: false,
[chrome #1]      takesScreenshot: true } }
[chrome #1] Started
[chrome #1] .
[chrome #1]
[chrome #1]
[chrome #1] 1 spec, 0 failures
[chrome #1] Finished in 4.207 seconds

(Same for firefox)
We were considering start using jasmine 2 for a while now. I think we are going to use it for new projects (beginning with this one) but it will take us some time for older projects since we have around one hundred of e2e tests using Protractor/Jasmine 1.
Could it be related to #1981 and #1885?

Ah yes, I can reproduce now, with my config above but with framework: 'jasmine'! Thank you. I think this is related to #1981. I'm pretty sure this is due to changes in WebDriverJS and how it handles scheduling to the control flow.
The easy fix is that onPrepare will force a wait for any promise returned within it to resolve. So, you can change to:
  onPrepare: function() {
    browser.driver.manage().window().maximize();
    return browser.get('http://juliemr.github.io/protractor-demo'); // Added return statement here
  }

and it will work again in both jasmine 1.3 and jasmine 2.
I'm adding a note about this to the changelog!

The "easy fix" works like a charm! :ok_hand: Thank you for your help. We have started migrating to jasmine 2, it is not as difficult as I expected it to be.
But it's good to know that our older projects will still benefit from an up-to-date Protractor version while waiting for the migration to be complete. :grinning:

@glepretre "It works with framework: 'jasmine2'"
It worked for me as well, thanks!

I have the same issues, but Im using 'mocha' as a framework, and I cant change it to jasmine since everything is written using mocha. any easy fix here too?

This should still work for you.

worked

Even I am getting the same error while trying to run protractor with Cucumber.
When I am running in my local machine it is working fine.
but when the test is triggered from Team-city on the deployed server I am getting the error.
I am using selenium 2.45 jar.
Please help.

I can't run my test cases if i changed the framwork from "jasmine" to "jasmine2" in the conf file
this issue doesn't recreate in my local machine only when I run it on Linux by Jenkins.
Can you please help me to enlarge the screensize to maximum (or to simulate a widescreen) ?
thanks.


Table Expected, got nil

When using the /postal postal# I get this error in the F8 SCRIPT ERROR" @nearest-postal/cl.lua8: bad argument #1 to 'for iterator' (table expected, got nil)
Any idea on how to fix that?

You probably don't have the postalFile set correctly in the fxmanifest.lua or you edited below the line where it says not to edit under.

Same here getting that same error, fxmanifest is set as oulsen_satmap_postals.json
which is the map we use which came with the postals already there, not touched anything below where it tells me not to but still showing teh same error

im getting this issue still


onShouldSortOver

I need a callback or a way (event.preventDefault()?) to determine if a SortableElement can be dragged to the position is being sorted.
It technically looks like a simple:
if ( !onShouldShortOver(...) )
    return ;

in the handler that determines the the element takes a new place.
Could this feature be implement or any hint to do a PR?

@ditiem Did you resolved this issue?

@Dragomir-Ivanov In short the answer is yes. But the project uses a complex testing system that did not work well in my local machine and I do not know why it does not pass the tests (even on a new fresh project). You can check the PR:
https://github.com/clauderic/react-sortable-hoc/pull/547
Main changes are on the first commit:
https://github.com/clauderic/react-sortable-hoc/pull/547/commits/b569fca02595c974c0c2032c40ceba6ad197c7d2
After I added this feature, I found myself adding another 5, and at the end I rewrote the core of the library. I dont remember the main reason, but I think it was that the algorithm used to detect on which position the row should be fails if a row height is greater than the 2 previous rows (or something like that).

@ditiem Thanks mate! In ditiem/react-sortable-hoc I see only this feature added. Did you pushed somewhere your further work, or it is proprietary?

@Dragomir-Ivanov I think this was the last branch before I started to refactor the whole thing.
https://github.com/ditiem/react-sortable-hoc/tree/create-helper
IMHO the whole project should be rewritten in TS, with unit testing and so on. It is not a complex task but it will take 5 days that I do not have now. This project i could share without any problem, as a gratitude to clauderic and/or the community.


Refine user interview and survey analysis per MC comments

Note - some nodes don't have too many data points. For example, NAIF only has one participant, so I may not have enough to say about NAIF. Similar situation for PPI.

Note - some nodes don't have too many data points. For example, NAIF only has one participant, so I may not have enough to say about NAIF. Similar situation for PPI.

@edwardbarraza I created tickets to track feedback for each of the nodes. for those nodes with minimal info specific to their node, maybe we can focus on survey data or heuristic analysis? also, for consolidating/organizing survey data, we may be able to get the project office to help out here if we need something like "organize the data by node" or some other specific criteria.

📆 November Status: on track

:calendar: december status: delayed due to increasing scope. will be closely monitored for potential impact on tasks towards end of build

:calendar: january status: on-track for end of January delivery. slides are done, they just need to be added to repository.

:calendar: january status: on-track for end of January delivery. slides are done, they just need to be added to repository.


[WIP] DocumenterCitations integration

This PR contains a basic skeleton, untested, for DocumenterCitation integration.
It looks like writers for documentercitation have to be implemented individually per backend, i.e., there is no independent fallback.

I have an updated version of this PR, which is still kind of broken, but less broken than this one here :) Where should I put it?

Opening a new PR would be great!  I haven't put much time into this one :D


Flakify and fix CI

already done and merged in staging https://github.com/smart-chain-fr/tokenomia/pull/79


Resolve merge conflicts with #10330

Forked @fee1-dead's fork in order to update and rebase the changes. Should resolve the conflicts that reared their ugly heads since #10330 was submitted.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.
Please see the contribution instructions for more information.

Added a couple of line comments to denote the changes made by @fee1-dead that are critical here.

:umbrella: The latest upstream changes (presumably #9992) made this pull request unmergeable. Please resolve the merge conflicts.

Thanks for the PR, but I'm going to be stepping down from the Cargo team so I'm going to un-assign myself from this. The Cargo team will help review this when they get a chance.

I'm going to close this as I don't really know what this is for or why it was submitted.


disable xdebug

As it seems to be quite the performance hit I would suggest to disable xdebug if there is not a specific reason why we need it.

Nice! I think it was added for code-coverage but we don't use that, so this is cool. Can you rebase this branch?

Sure, I thought I did, but apparently I messed it up.


Debug evaluation probably doesn't provide types

I have the following file:
import 'dart:developer';

main() {
  List<String> msgs = ["hello", "a", "b"];
  debugger();
  print(msgs.where((s) => s.contains("a")).toList());
  print(msgs);
}

Executing it with out/ReleaseX64/dart --enable-vm-service:54975 <file.dart> and going to http://<IP_ADDRESS>:54975/ it's stopped at :6:14 as it should. Going to the debugger and evaluating p msgs.where((s) => s.contains("a")).toList() gives me
Unhandled exception:
type '(dynamic) => dynamic' is not a subtype of type '(String) => bool' of 'test'
#0      Eval (org-dartlang-debug:synthetic_debug_expression:0:6)
#1      main (file:///usr/local/google/home/jensj/code/dart-sdk/sdk/mx.dart:6:14)
#2      _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:286:19)
#3      _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:169:12)

If I instead say p msgs.where((String s) => s.contains("a")).toList() or p msgs.where((s) => s.contains("a") as bool).toList() I get the expected
= _GrowableList (1) {  ⊟
[ 0 ] : 'a'
}

It seems like probably fasta isn't getting passed the correct types.
Update: Actually, running out/ReleaseX64/dart -DDFE_VERBOSE=true --enable-vm-service:54975 basically confirms that: DFE: request: [4, SendPort, 207040027, msgs.where((s) => s.contains("a")).toList(), [msgs], [], file:///<file.dart>, null, false, false, true].

Here we go:
https://github.com/dart-lang/sdk/blob/a502061c112a73879123301ec017fb06e02476e1/pkg/vm/lib/incremental_compiler.dart#L133-L142


1.16.5 Conflict with Extra Storage

#31 #29
Both of those issues are caused bu Extra Storage being present.
And also:

Requesters don't work and its impossible to change number of items being requested
Its impossible to put importers & exporters into fluid mode.

If Extra Storage is removed everything seems to work fine.

Still have this problem in 1.18

I tried commenting out the I/O bus of ExtraStorage. On the server, CableTiers only the requester and the disk manipulator are disabled, the requester cannot enter numbers, and the disk manipulator cannot change any buttons on the left, But their all work on client side

https://github.com/KuroPeach/ExtraStorage/blob/c268d13d51a3f8ca4ad0120cf77f42b82a27ebba/src/main/java/edivad/extrastorage/client/screen/custombutton/AdvancedCrafterModeSideButton.java#L24
https://github.com/KuroPeach/ExtraStorage/blob/c268d13d51a3f8ca4ad0120cf77f42b82a27ebba/src/main/java/edivad/extrastorage/client/screen/dataparameter/AdvancedCrafterTileDataParameterClientListener.java#L15
Guess it's a problem with the way the ExtraStorage redstone control button is written, On the server side, the redstone control buttons of Crafter bin disappear. The biggest conflict between you and his mods is the I/O bus, but the author closed the issues.
https://github.com/Edivad99/ExtraStorage/issues/57

Hmm thanks for the comments, I think I finally know how to fix it now

cabletiers-1.16.5-0.546.jar.zip
Do you have some free time? Can you try this bug with this file?

crash-2022-10-25_21.24.12-fml.txt
server and client all can't load

Oh wait, I didn't notice it was 1.16, I am currently playing 1.18

Can you build 1.18? I don't have the modpack for 1.16 on my computer and server.

cabletiers-1.16.5-0.546.jar.zip Do you have some free time? Can you try this bug with this file?

no problem. 👍

Oh wait I send you the wrong file, here is the right one and it's 1.18.2
cabletiers-1.18.2-0.55.jar.zip

Oh wait I sent you the wrong file, here is the right one and it's 1.18.2 cabletiers-1.18.2-0.55.jar.zip

Server Side Requester and Disk Manipulator Buttons do not work and are not logged, And the ExtraStorage redstone control buttons of Crafter disappear.

latest.log
I built a local server separately, this time there is logging, but the game behaves a bit strange, the problem is the same as before, but a new problem occurs, open the requester and the manipulator click the invalid button, the crafter will appear invalid redstone buttons, even two

I have the same problem with this mod and extra storage in 1.19. If someone know how to fix it....thank you

https://github.com/refinedmods/refinedstorage/issues/3449

Are there any updates on this issue? Would be great if my server could use these exporters.

In addition, whitelist/blacklist mode do not work for importers. When setting items in whitelist mode, it pulls everything EXCEPT those in the whitelist. Clicking to change it to blacklist doesn't change it, instead it turns on redstone mode - requires redstone.
See my filter here: https://imgur.com/a/SfgVcRh
When I put these in the filter, it leaves those in the box and pulls everything else out.

even atm8 1.19.2 version of the mod is having the same issues of not being able to switch redstone and whitelist/blacklist and also the fuzzy mode, plus it is not allowing any changes to stay.

This should be now fixed in 1.20.1. Unfortunately a backport isn't possible.


Too verbose logging in INFO level

Home Assistant (HA) is using this library and due to too verbose logging in INFO level the console is full of roombapy logs. Here is related issue in HA.
As I can see in roomba.py, most of log.info can be converted to log.debug, because these logs are not user-friendly and intended for developers.
@pschmitt I see you maintain roombapy package, so this issue is related to your fork too.

I fixed this issue in roombapy: 3026921d6c4cc59959c521513a15057004b25723

Great! Thank you.

@pschmitt so what about a PR to HA? As I understand you need to release a new version of roombapy and make a PR with version update in HA.


will rocm support centos 9 and rhel 9?

Hi @siyy123
Thanks for reaching out.
ROCm supports RHEL/CentOS 9 versions also in future as per the planned timelines.
Please stay tuned for updates via our documentation.
Thank you.

What is the planned timeline for adding ROCm support for RHEL 9?
It`s impossible to develop/adapt/optimize software to make use of my AMD hardware for my engineering projects.

Here it is finally, RHEL 9 support with ROCm 5.3 - thank you


Add PPG

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[x] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.

adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

/azp run automation - sdk

Can one of the admins verify this patch?

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/xizhamsft

/assign xizhamsft

/azp run automation - sdk

/assign @xizhamsft

/azp run automation - sdk

/openapi pipeline

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk


Files show  instead of contents

I've run into this problem on quite a few text files. Maybe it has something to do with character encoding? Using QL on a txt file will show two "?" characters followed by the first character in the file, and nothing else.

@prohtex I've pushed 1.5.1 with support for Catalina. Could you try this again? If you still have issues I would like a sample file to debug with.


how to compress iamge?

Could you tell me is there any way to compress image data that I got from wecam?

Of course there is. You can for example save it as JPEG (https://en.wikipedia.org/wiki/JPEG) using build-in Java ImageIO class.
You can save it directly into file:
BufferedImage image = webcam.getImage();
ImageIO.write(image, "JPG", new File("image.jpg"));

Or save it into byte[] array and store in memory:
BufferedImage image = webcam.getImage();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ImageIO.write(image, "JPG", baos);
byte[] data = baos.toByteArray();

It depends on what you would like to do with this compressed image later.
If you want to specify your own JPEG compression rate (instead of using default one from ImageIO), then you should take a look at this:
https://stackoverflow.com/questions/17108234/setting-jpg-compression-level-with-imageio-in-java

I hope I was able to answer your question. I'm closing this issue.

I still want to get the bufferedimage data but not byte[ ]data ,is that work if I change the byte[ ] data I got into bufferedimage data like this?
public BufferedImage getimageData(BufferedImage image) throws IOException {
BufferedImage Im;
BufferedImage im=null;
im = webcam.getImage();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ImageIO.write(im, "JPG", baos);
byte[] data = baos.toByteArray();
ByteArrayInputStream stream = new ByteArrayInputStream(data);
image  = ImageIO.read(stream);
return image;
}
and if I change the webcam size like this is that means the data I get will change their size like this automatically?
Webcam webcam ;
public WebcamNew (){
webcam = Webcam.getDefault();
webcam.setCustomViewSizes(new Dimension[] { new Dimension(1920, 1080) });

In regards to your questions:

Yes, you can convert BufferedImage into byte[] array and vice-versa, that is byte[] into ByfferedImage, but please note that these two images (the original one and a copy you made from byte[]) will not be the same. There will be very small differences in pixel data because you wrote is as JPEG, which is a lossy compression, and therefore some pixels data is lost forever.
In your code from above post you do not change webcam resolution. You just configure what non-standard resolutions are supported (in your case 1920x1080). To change webcam resolution you must call webcam.setViewSize(new Dimension(1920, 1080)).

Please read this:
https://github.com/sarxos/webcam-capture/raw/master/webcam-capture/src/etc/resources/webcam-capture-handbook.doc
It may be a little outdated, but still helpful.

I'm still wondering why would you want to convert BufferedImage into byte[] and then back to BufferedImage. These two images will be the same size (because they has the same resolution and the same color space) and you just waste your CPU cycles and memory to do that.

I want to compress my image data ,and in the end I want to get  an image date but not byte[ ] data .But I learned from internet that the image date can be compressed only if it changed into byte[ ].So I have no way but to do that .If there is any why can compress my image data directly ,I will not try that way . I hope you can  understand my word , as I am a Chanese and  poor in English.

My work is to get BufferedImage  image and ByteBuffer buf throw two ways . And I also need to compress the  BufferedImage  image  I got into a short one that less than 20000 Bytes. I have tried lots of way  buf all failed.this is what I wrote ,could you plese help me with it?
public class WebcamNew implements webcam_interfacenew{
 Webcam webcam ;
 public WebcamNew (){
 webcam = Webcam.getDefault();
webcam.setViewSize(new Dimension(120, 160));
}

public BufferedImage getimageData(BufferedImage image) throws IOException {
BufferedImage im=null;
im = webcam.getImage();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ImageIO.write(im, "JPG", baos);
byte[] data = baos.toByteArray();
ByteArrayInputStream stream = new ByteArrayInputStream(data);
image  = ImageIO.read(stream);
return image;
}
public ByteBuffer getbufData(ByteBuffer buf) {
buf = WebcamUtils.getImageByteBuffer(webcam, "JPG");
return buf;
}
}
thank you very very much!

Ok, @turboleee, please read this whole post and ask if you do not understand what I wrote.
To make it clear - the BufferedImage can be compressed only when you convert it to byte[] array. This newly created byte[] array will contain image data in compressed form.
When you convert it back from byte[] to BufferedImage, then result, that is new BufferedImage will be the same size as before (that is not compressed). If you need compressed image data then you have to convert it to byte[] array. There is no way to have compressed image in form of BufferedImage.
The byte[] array with compressed data can be converted to ByteBuffer. Method to convert byte[] into ByteBuffer:
byte[] bytes = ...
ByteBuffer buffer = ByteBuffer.wrap(bytes);

The only way to make BufferedImage consume less memory is to make it smaller, e.g. convert image with size 640x480 to image with size 320x240. Image size can be changed very easily:
// 640x480
BufferedImage original = webcam.getImage();
// 320x240
BufferedImage smaller = original.getScaledInstance(320, 240, Image.SCALE_SMOOTH);

If you need to calculate how much memory BufferedImage is consuming, the you can do that with this code:
BufferedImage bi = webcam.getImage();
int howManyBytes = bi.getWidth() * bi.getHeight() * 3;
System.out.println("This image consume "+ howManyBytes + " bytes of memory");

(for example, not compressed image with size 640x480 will consume 921600 bytes in memory)

Below is a code I wrote to compress image with any resolution into byte[] array with a maximum given size:
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;

import javax.imageio.IIOImage;
import javax.imageio.ImageIO;
import javax.imageio.ImageWriteParam;
import javax.imageio.ImageWriter;
import javax.imageio.plugins.jpeg.JPEGImageWriteParam;
import javax.imageio.stream.MemoryCacheImageOutputStream;

/**
 * This class will save {@link BufferedImage} into a byte array and compress it so the number of
 * compressed bytes is not higher than a given maximum level. It is not thread-safe.
 *
 * @author Bartosz Firyn (sarxos)
 */
public class AdaptiveSizeWriter {

	private final int max;
	private final ByteArrayOutputStream baos = new ByteArrayOutputStream();

	private float q = 1f; // 1f = 100% quality, at the beginning
	private int w = 0;
	private int h = 0;

	public AdaptiveSizeWriter(int size) {
		this.max = size;
	}

	public byte[] write(BufferedImage bi) {

		final int iw = bi.getWidth();
		final int ih = bi.getHeight();
		if (w != iw || h != ih) {
			w = iw;
			h = ih;
			q = 1f;
		}

		// loop and try to compress until compressed image bytes array is not longer than a given
		// maximum value, reduce quality by 25% in every step

		int size = 0;
		do {
			size = compress(bi, q);
			q *= 0.75;
		} while (size > max);

		return baos.toByteArray();
	}

	/**
	 * Compress {@link BufferedImage} with a given quality into byte array.
	 *
	 * @param bi the {@link BufferedImage} to compres into byte array
	 * @param quality the compressed image quality (1 = 100%, 0.5 = 50%, 0.1 = 10%, etc)
	 * @return The size of compressed data (number of bytes)
	 */
	private int compress(BufferedImage bi, float quality) {

		baos.reset();

		final JPEGImageWriteParam params = new JPEGImageWriteParam(null);
		params.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
		params.setCompressionQuality(quality);

		try (MemoryCacheImageOutputStream mcios = new MemoryCacheImageOutputStream(baos)) {
			final ImageWriter writer = ImageIO.getImageWritersByFormatName("jpg").next();
			writer.setOutput(mcios);
			writer.write(null, new IIOImage(bi, null, null), params);
		} catch (IOException e) {
			throw new IllegalStateException(e);
		}

		final int size = baos.size();

		System.out.printf("Quality %.2f, resolution %dx%d, bytes count = %d\n", quality, bi.getWidth(), bi.getHeight(), size);

		return size;
	}
}

How to use it:
import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

import com.github.sarxos.webcam.Webcam;

public class ExampleWebcam {

	public static void main(String[] args) throws IOException {

		final Dimension resolution = new Dimension(1280, 720); // HD720p
		final Webcam webcam = Webcam.getDefault();
		webcam.setCustomViewSizes(new Dimension[] { resolution });
		webcam.setViewSize(resolution);
		webcam.open();

		final BufferedImage bi = webcam.getImage();
		final AdaptiveSizeWriter writer = new AdaptiveSizeWriter(20000); // max number of bytes
		final byte[] data = writer.write(bi);

		try (FileOutputStream fos = new FileOutputStream(new File("example.jpg"))) {
			fos.write(data);
		}
	}
}

I tested it with two resolutions:

HD720p (1280x720), the image quality went down to 10% in 9 cycles,
VGA (640x480), the image quality went down to 56% in 3 cycles.

Result for HD720p - 1280x720 (9 cycles, 10% quality, 19706 bytes):

Result for VGA - 640x480 (3 cycles, 56% quality, 18678 bytes):

Thank you very much for answer me so particularly ! And I don't know how to express my appreciation to you.
About the question , I guess is that because when we use the byte[] ,we can compress the image batched , but for the image we can just compress the picture one by one ,so it has a lower compression?However my work is not output video ,  I just need  to get a compressed BufferedImage data , and others will use the data I got to do other things.
Anyway  I learned a lot from your help, than you very very much!


storage/kubernetes: Correct the OfflineSession object CRD definition

Fixes #1070
OfflineSession object should have the kind value as OfflineSessions instead of OfflineSession. Missed an 's' at the end

Tested that the kubernetes storage tests PASS