"Error: Authenticate refresh error: invalid_grant" on get_public_data

Hi @ssadams11
I'm getting the error "Error: Authenticate refresh error: invalid_grant" when using get_public_data node.
This is the node configuration.
I've changed the LAT/LON data and I've hidden the creds field
Since I'm trying to get public data (I  don't have my own weather station) what info should I fill in the creds field?
I've used my Netatmo thermostat data (username/password and mac address) to create the creds with the ClientID and Client Secret generated from https://dev.netatmo.com/

What else can I check?
Thanks

I haven't updated this in years as I no longer have any Netatmo devices.  Its quite possible that Netatmo has change/upgraded their authentication procedures.
Feel free to fork.  Its actually takes very little code to create your own node types in Node-RED.
Regards,
Sam

On Mar 2, 2020, at 6:04 AM, woody4165<EMAIL_ADDRESS>wrote:
Hi
I'm getting the error "Error: Authenticate refresh error: invalid_grant" when using get_public_data node.
This is the node configuration.
I've changed the LAT/LON data and I've hidden the creds field
Since I'm trying to get public data (I don't have my own weather station) what info should I fill in the creds field?
I've used my Netatmo thermostat data (username/password and mac address) to create the creds with the ClientID and Client Secret generated from https://dev.netatmo.com/ https://dev.netatmo.com/
https://user-images.githubusercontent.com/6501444/75670410-f6878c80-5c7c-11ea-89ce-7721a939ec3e.png
What else can I check?
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/ssadams11/node-red-contrib-netatmo/issues/16?email_source=notifications&email_token=ABHWUWVX3ETCNS4VCKYNMRTRFOHFJA5CNFSM4K7R4OXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IRU7MGA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHWUWUIXJKTRSKOUY3MCLLRFOHFJANCNFSM4K7R4OXA.

ok, thanks


Template main.yml workflow to enable feedback from tooling repo

Dependabot runs over in blakeNaccarato/tooling. When a pull request is merged over there, I want the updated dependency to show up as a commit on this repo. That can be done by writing an update job into main.yml that needs all the other jobs in main.yml to succeed. Then, update will propagate changes back to blakeNaccarato/copier-python/template. This automates that section of the "loop" between the two repos.
The other end of the "loop", updating blakeNaccarato/tooling whenever the template changes, is less automatable. The questions/answers might change so the automation would be fragile. There is currently no way to not run a job if a certain file changes.
The update job shouldn't leak into my other projects, so it should be protected behind Jinja conditionals. That conditional could be tied to the gitignore_dependencies question which should probably be generalized to are_we_in_tooling or something.
Once this automation is established, it should become easier to maintain tooling, as bumped Dependencies will come as new commits.

This is no longer necessary as all updates are either automatically handled here or manually propagated from blakeNaccarato/tooling.


Use the icon resource path with query as id

In this way the same icon can be added multiple times with different properties (example: when using tools like svg-transform-loader)

Based on: https://github.com/karify/external-svg-sprite-loader/pull/48

@witem can you test and let me know?

Ok, I'll test it this week.

@witem do you have any news for me?

Hi, no. After I install new version I can't start webpack. I start receive errors with loader and I don't have time to understand this.

There is a breaking change in the new version. Check the release notes here: https://github.com/karify/external-svg-sprite-loader/releases.

@bensampaio Thanks. I check and your fix is works

Thanks, I'll merge this then :)

I released version 4.0.1 with this change


Green screen

Hi,
I try to install again as you made lot of improvement.
The script break my arduno 64mp cam. But nevermind I reinstall from scratch and try to install manually.
I have a green screen when using the application. Is there anything to do to use the arduno_64mp?
Regards.

Script updates all packages, it is likely to break the Arducam installations by simple system updates. There are some complaints about this in Arducam forum currently.
Please go to localist:8000 and check the config tab backends. Change backend from simulation to picam2.

Well, did it but now I have no preview. I don't know how to troubleshoot the issue.

this gives the last 100 lines console log from service:
journalctl --unit=imageserver.service -n 100 --no-pager
also in imageserver/log there should be logfiles (the one without a number is the most current one, if any number suffixes exist).
and if the service is working regular, there are messages logged in the webfrontend http://HOSTNAME:8000/#/admin/status

also good to start directly from console to see whats going on.
Stop service if installed:
systemctl --user stop imageserver
and in directory imageserver start
python start.py

Here is what I get from the console start:
`
INFO:     Started server process [1899]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
Exception during process_requests()
Traceback (most recent call last):
File "/home/yaz/.local/lib/python3.9/site-packages/picamera2/previews/null_pre                                                                                view.py", line 85, in handle_request
picam2.process_requests(self)
File "/home/yaz/.local/lib/python3.9/site-packages/picamera2/picamera2.py", li                                                                                ne 1104, in process_requests
self.pre_callback(req)
File "/home/yaz/apps/photobooth-imageserver/src/ImageServerPicam2.py", line 20                                                                                0, in _pre_callback_overlay
if settings.debugging.picam2_stats_overlay:
AttributeError: 'ConfigSettings' object has no attribute 'debugging'
Exception in thread Thread-8:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "/home/yaz/.local/lib/python3.9/site-packages/picamera2/previews/null_pre                                                                                view.py", line 29, in thread_func
callback(picam2)
File "/home/yaz/.local/lib/python3.9/site-packages/picamera2/previews/null_pre                                                                                view.py", line 85, in handle_request
picam2.process_requests(self)
File "/home/yaz/.local/lib/python3.9/site-packages/picamera2/picamera2.py", li                                                                                ne 1104, in process_requests
self.pre_callback(req)
File "/home/yaz/apps/photobooth-imageserver/src/ImageServerPicam2.py", line 20                                                                                0, in _pre_callback_overlay
if settings.debugging.picam2_stats_overlay:
AttributeError: 'ConfigSettings' object has no attribute 'debugging'
2023-02-24 16:44:30,473 [INFO] main subscribe() L138  Client connected Addre                                                                                ss(host='IP', port=57539)
2023-02-24 16:44:30,474 [DEBUG] main add_subscriptions() L98   add subscript                                                                                ion for publishSSE
INFO:     IP:57539 - "GET /eventstream HTTP/1.1" 200 OK
2023-02-24 16:44:34,461 [WARNING] src.ImageServerPicam2AddonCustomAutofocus stat                                                                                sThread() L131  imageserver did not deliver frames, aborting cycle (should occur                                                                                only if service stopped!)
2023-02-24 16:44:34,463 [DEBUG] src.ImageServerPicam2AddonCustomAutofocus statsT                                                                                hread() L184  autofocus run finished, sharpnessList=[]
`

updated the main branch.
please try
git pull
to update and check console again.

Hi, very strange. i get it working. Then I made a change in the front-end web page,,reload service and now I am back to the same situation even after reboot.

What is the log from console after stopping the service like above again?

Could be an illegal setting, there is no proper validation yet

2023-02-24 21:29:55,928 [INFO] __main__ <module>() L323  Welcome to qPhotobooth 2023-02-24 21:29:55,929 [INFO] __main__ <module>() L324  platform.system=Linux 2023-02-24 21:29:55,930 [INFO] __main__ <module>() L325  platform.release=5.15.84-v8+ 2023-02-24 21:29:55,931 [INFO] __main__ <module>() L326  platform.machine=aarch64 2023-02-24 21:29:55,932 [INFO] __main__ <module>() L327  platform.python_version=3.9.2 2023-02-24 21:29:55,932 [INFO] __main__ <module>() L328  hostname=raspberrypi 2023-02-24 21:29:55,933 [INFO] __main__ <module>() L329  psutil.cpu_count logical=4 2023-02-24 21:29:55,936 [INFO] __main__ <module>() L330  psutil.cpu_count cores=4 2023-02-24 21:29:55,938 [INFO] __main__ <module>() L331  psutil.disk_partitions=[sdiskpart(device='/dev/sda2', mountpoint='/', fstype='ext4', opts='rw,noatime', maxfile=255, maxpath=4096), sdiskpart(device='/dev/sda1', mountpoint='/boot', fstype='vfat', opts='rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro', maxfile=1530, maxpath=4096)] 2023-02-24 21:29:55,939 [INFO] __main__ <module>() L333  psutil.disk_usage /=sdiskusage(total=491968536576, used=4897472512, free=467021656064, percent=1.0) 2023-02-24 21:29:55,941 [INFO] __main__ <module>() L336  psutil.net_if_addrs={'lo': [snicaddr(family=<AddressFamily.AF_INET: 2>, address='<IP_ADDRESS>', netmask='<IP_ADDRESS>', broadcast=None, ptp=None), snicaddr(family=<AddressFamily.AF_INET6: 10>, address='::1', netmask='ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', broadcast=None, ptp=None), snicaddr(family=<AddressFamily.AF_PACKET: 17>, address='00:00:00:00:00:00', netmask=None, broadcast=None, ptp=None)], 'wlan0': [snicaddr(family=<AddressFamily.AF_INET: 2>, address='<IP_ADDRESS>', netmask='<IP_ADDRESS>', broadcast='<IP_ADDRESS>', ptp=None), snicaddr(family=<AddressFamily.AF_INET6: 10>, address='fdfc:9f65:b816:f837:fdf5:b06f:41ab:ae68', netmask='ffff:ffff:ffff:ffff::', broadcast=None, ptp=None), snicaddr(family=<AddressFamily.AF_INET6: 10>, address='fe80::d72d:3373:1af7:498b%wlan0', netmask='ffff:ffff:ffff:ffff::', broadcast=None, ptp=None), snicaddr(family=<AddressFamily.AF_PACKET: 17>, address='dc:a6:32:54:6a:b9', netmask=None, broadcast='ff:ff:ff:ff:ff:ff', ptp=None)], 'eth0': [snicaddr(family=<AddressFamily.AF_PACKET: 17>, address='dc:a6:32:54:6a:b8', netmask=None, broadcast='ff:ff:ff:ff:ff:ff', ptp=None)]} 2023-02-24 21:29:55,942 [INFO] __main__ <module>() L337  psutil.virtual_memory=svmem(total=3977621504, available=3531653120, percent=11.2, used=331317248, free=2889871360, active=176803840, inactive=743796736, buffers=44142592, cached=712290304, shared=35577856, slab=89845760) 2023-02-24 21:29:55,943 [INFO] __main__ <module>() L339  __debug__=True 2023-02-24 21:29:55,944 [INFO] src.WledService __init__() L31   WledService disabled [0:15:42.187588512] [1908]  INFO Camera camera_manager.cpp:299 libcamera v0.0.0+4186-d1dc0373 [0:15:42.191468897] [1909]  WARN CameraSensorProperties camera_sensor_properties.cpp:205 No static properties available for 'arducam_64mp' [0:15:42.191520526] [1909]  WARN CameraSensorProperties camera_sensor_properties.cpp:207 Please consider updating the camera sensor properties database [0:15:42.214083296] [1909]  WARN RPI raspberrypi.cpp:1308 Mismatch between Unicam and CamHelper for embedded data usage! [0:15:42.215041222] [1909]  INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/arducam_64mp@1a to Unicam device /dev/media2 and ISP device /dev/media3 2023-02-24 21:29:56,170 [DEBUG] src.ImageServerPicam2 _onPreviewMode() L163  change to preview mode [0:15:42.238910263] [1908]  INFO Camera camera.cpp:1028 configuring streams: (0) 2312x1736-XBGR8888 (1) 1280x720-YUV420 [0:15:42.239636452] [1909]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/arducam_64mp@1a - Selected sensor format: 2312x1736-SBGGR10_1X10 - Selected unicam format: 2312x1736-pBAA 2023-02-24 21:29:56,196 [INFO] src.ImageServerPicam2 __init__() L71   camera_config: {'use_case': 'video', 'transform': <libcamera.Transform 'identity'>, 'colour_space': <libcamera.ColorSpace 'sYCC'>, 'buffer_count': 2, 'queue': True, 'main': {'format': 'XBGR8888', 'size': (2312, 1736), 'stride': 9280, 'framesize': 16110080}, 'lores': {'format': 'YUV420', 'size': (1280, 720), 'stride': 1280, 'framesize': 1382400}, 'raw': None, 'controls': {'NoiseReductionMode': <NoiseReductionModeEnum.Fast: 1>, 'FrameDurationLimits': (33333, 33333)}, 'display': 'lores', 'encode': 'lores'} 2023-02-24 21:29:56,197 [INFO] src.ImageServerPicam2 __init__() L72   camera_controls: {'Sharpness': (0.0, 16.0, 1.0), 'AwbEnable': (False, True, None), 'Brightness': (-1.0, 1.0, 0.0), 'AfWindows': (libcamera.Rectangle(0, 0, 0, 0), libcamera.Rectangle(65535, 65535, 65535, 65535), libcamera.Rectangle(0, 0, 0, 0)), 'AeExposureMode': (0, 3, 0), 'AfSpeed': (0, 1, 0), 'AfTrigger': (0, 1, 0), 'AeConstraintMode': (0, 3, 0), 'AfMode': (0, 2, 0), 'ExposureTime': (131, 122583595, None), 'AfPause': (0, 2, 0), 'NoiseReductionMode': (0, 4, 0), 'AeEnable': (False, True, None), 'FrameDurationLimits': (33333, 122583654, None), 'ColourCorrectionMatrix': (-16.0, 16.0, None), 'ScalerCrop': (libcamera.Rectangle(0, 0, 256, 256), libcamera.Rectangle(0, 0, 9248, 6944), None), 'ExposureValue': (-8.0, 8.0, 0.0), 'AwbMode': (0, 7, 0), 'AfMetering': (0, 1, 0), 'AnalogueGain': (1.0, 10.079999923706055, None), 'ColourGains': (0.0, 32.0, None), 'Contrast': (0.0, 32.0, 1.0), 'AeMeteringMode': (0, 3, 0), 'Saturation': (0.0, 32.0, 1.0), 'LensPosition': (0.0, 32.0, 1.0), 'AfRange': (0, 2, 0)} 2023-02-24 21:29:56,198 [INFO] src.ImageServerPicam2 __init__() L73   controls: <Controls: {'NoiseReductionMode': <NoiseReductionModeEnum.Fast: 1>, 'FrameDurationLimits': (33333, 33333)}> 2023-02-24 21:29:56,199 [INFO] src.ImageServerPicam2 setAeExposureMode() L181  setAeExposureMode, try to set to 1 2023-02-24 21:29:56,200 [INFO] src.ImageServerPicam2 setAeExposureMode() L189  current picam2.controls.get_libcamera_controls(): {libcamera.ControlId(39, NoiseReductionMode, ControlType.Integer32): <NoiseReductionModeEnum.Fast: 1>, libcamera.ControlId(25, FrameDurationLimits, ControlType.Integer64): (33333, 33333), libcamera.ControlId(5, AeExposureMode, ControlType.Integer32): 1} [0:15:42.267660743] [1908] ERROR Camera camera.cpp:526 Camera in Configured state trying acquire() requiring state Available Camera __init__ sequence did not complete. Traceback (most recent call last):   File "/home/yaz/.local/lib/python3.9/site-packages/picamera2/picamera2.py", line 242, in __init__     self._open_camera()   File "/home/yaz/.local/lib/python3.9/site-packages/picamera2/picamera2.py", line 439, in _open_camera     raise RuntimeError(f"camera.acquire() returned unexpected code: {acq_code}") RuntimeError: camera.acquire() returned unexpected code: -16 During handling of the above exception, another exception occurred: Traceback (most recent call last):   File "/home/yaz/apps/photobooth-imageserver/start.py", line 344, in <module>     imageServers = ImageServers(ee)   File "/home/yaz/apps/photobooth-imageserver/src/ImageServers.py", line 30, in __init__     self.secondaryBackend = clsSecondary(ee, True)   File "/home/yaz/apps/photobooth-imageserver/src/ImageServerPicam2.py", line 34, in __init__     self._picam2 = Picamera2()   File "/home/yaz/.local/lib/python3.9/site-packages/picamera2/picamera2.py", line 249, in __init__     raise RuntimeError("Camera __init__ sequence did not complete.") RuntimeError: Camera __init__ sequence did not complete. 2023-02-24 21:30:03,200 [WARNING] src.ImageServerPicam2AddonCustomAutofocus statsThread() L131  imageserver did not deliver frames, aborting cycle (should occur only if service stopped!) 2023-02-24 21:30:03,203 [DEBUG] src.ImageServerPicam2AddonCustomAutofocus statsThread() L184  autofocus run finished, sharpnessList=[]

Seems you set the picam backend as main and secondary. You can use picam only once as main backend. There is no benefit using it two times.

Remove LIVE_BACKEND key from config.json in config dir again.

Done it! It solved the issue.
I can play to get everything running. Thank also for the 3d model: all printed and assembled ;)

Oh nice, would love if you post some images and / describe differences and highlights. You saw the wled integration for ring light integration?

Yes I have implemented the wled. It is connected directly to the pi. I will probably need to buy an esp32. I will send you some pictures later ;)

https://kno.wled.ge/ esp32 or esp8266 would work.
Think this issue can be closed now :)


fix(helm): fix tests if tmp directory is on another block device

Addresses: #1472
Notes

Added linkOrCopy function... which is meant to try to link a file. If the link fails a copy is attempted.
Added copyFile function... which is just intended to make clear what the copy function is composed of for readability.

This change is

I'll do some manual testing on an Ubuntu box. Code LGTM.

Manually tested on Ubuntu 16.04 with a temp folder on a different device than $GOPATH, and all worked as expected.


fix(oauth2): don't strip URL path

Allow the OAuth2 module to handle supported URLs:

All OAuth endpoints require secure HTTP (HTTPS). For standard OAuth 2.0 authorization flows, these host domains are supported unless otherwise specified.
login.salesforce.com
A My Domain URL, such as https://MyCompany.my.salesforce.com
An Experience Cloud site URL, such as https://MyDomainName.my.site.com
A custom URL
For sandboxes, use test.salesforce.com or the My Domain login URL for the sandbox, such as MyDomainName--SandboxName.sandbox.my.salesforce.com.

https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_endpoints.htm&type=5
before
A community URL like https://innovation-momentum-8840-dev-ed.scratch.my.salesforce.com/AppCentral would get the pathname (/AppCentral) trimmed.
after
URL pathname is kept, jsforce handles possible trialing slash.
@W-17041779@

This looks pretty good, except if you have a pathname that ends in a /. You end up with something like this with two //:
https://innovation-momentum-8840-dev-ed.scratch.my.salesforce.com/foobar//services/oauth2/authorize


Modal background color

Why background: rgba(0, 0, 0, .5) option is set? It overrides original Bootstrap background, where color can be changed.

The existing code that utilizes am-fade works currently (on bootstrap 3.2.0 at least), whereas the angular-strap docs offer a user-entered transition solution. The transition solution doesn't set a color and as such, "would" use boots modal background color, and also has the opacity set to .5, so perfect, but... motion's .modal-backdrop.am-fade selector is more specific and as such overrides, and not only that, but  overrides black/opacity .5, which coupled with the transition to opacity .5 yields an overall opacity of .25, so ends up being too light at as well.
I favor the idea of adding the transition code to all of motion's animation .less files, then whatever the option.backdropAnimation is set to, it will yield the correct results without user entering code. I tried the transition code from the docs, but the am-fade animation code was messing it up, so needs to be animation code instead. Just put a PR in for it.


[Feature Request]: Improve Docusaurus UI

Feature Description
Improve Docusaurus UI
https://docs.stirlingpdf.com/
https://github.com/Stirling-Tools/Stirling-Tools.github.io/tree/main
Why is this feature valuable?
No response
Suggested Implementation
No response
Additional Information
No response
No Duplicate of the Feature

[X] I have verified that there are no existing features requests similar to my request.

hey, what do you mean by improve?

I believe the docs website could do with tweaks
It doesn't look highly polished or well designed

Can't really say any exact things I just think it needs changes 😂


infer  error when use my model

@kaonashi-tyc
i trained my model use

python font2img.py --src_font=simsun.ttf --dst_font=钟齐山文丰手写体.ttf --charset=top_3000_simplified.txt --sample_count=3000 --sample_dir=dir3 --label=0 --filter=1 --shuffle=1

python package.py --dir=dir3 --save_dir=save_dir3 --split_ratio=0.1

python train.py --experiment_dir=experiment --experiment_id=0 --batch_size=50 --lr=0.001 --epoch=100 --sample_steps=60 --schedule=20 --L1_penalty=100 --Lconst_penalty=15

in the experiment/checkpoint/experiment_0_batch_50 dir , why it has  "checkpoint" ,"unet.model-4500.data-00000-of-00001","unet.model-4500.index", "unet.model-4500.meta", "unet.model-5000.data-00000-of-00001", "unet.model-5000.index", "unet.model-5000.meta", "unet.model-5500.data-00000-of-00001", "unet.model-5500.index", "unet.model-5500.meta", 10 files?
I download your model ,it only has 4 files.
Is there any error in my train? My tensorflow is 1.3.0
(训练结果怎么有那么多文件？我下载的您的模型里面只有四个文件)
另一个问题：
我在使用自己训练的模型进行infer时，出现以下错误：
python infer.py --model_dir=font3 --batch_size=50 --source_obj=save_dir1/train.obj --embedding_ids=0 --save_dir=save_dir1
2017-10-13 08:27:21.597033: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.597060: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.597065: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.597069: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.597074: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.870330: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 0 with properties:
name: GeForce GTX 1080 Ti
major: 6 minor: 1 memoryClockRate (GHz) 1.582
pciBusID 0000:02:00.0
Total memory: 10.91GiB
Free memory: 10.39GiB
2017-10-13 08:27:21.870368: I tensorflow/core/common_runtime/gpu/gpu_device.cc:976] DMA: 0
2017-10-13 08:27:21.870376: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 0:   Y
2017-10-13 08:27:21.870386: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:02:00.0)
unpickled total 9 examples
examples -> 9
2017-10-13 08:27:23.749874: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
2017-10-13 08:27:23.750613: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
Traceback (most recent call last):
File "infer.py", line 67, in
tf.app.run()
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "infer.py", line 47, in main
save_dir=args.save_dir)
File "/home/customer/zi2zi-master/model/unet.py", line 360, in infer
self.restore_model(saver, model_dir)
File "/home/customer/zi2zi-master/model/unet.py", line 305, in restore_model
saver.restore(self.sess, ckpt.model_checkpoint_path)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1560, in restore
{self.saver_def.filename_tensor_name: save_path})
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 895, in run
run_metadata_ptr)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1124, in _run
feed_dict_tensor, options, run_metadata)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1321, in _do_run
options, run_metadata)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1340, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
Caused by op u'save/Assign_6', defined at:
File "infer.py", line 67, in
tf.app.run()
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "infer.py", line 47, in main
save_dir=args.save_dir)
File "/home/customer/zi2zi-master/model/unet.py", line 359, in infer
saver = tf.train.Saver(var_list=self.retrieve_generator_vars())
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1140, in init
self.build()
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1172, in build
filename=self._filename)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 688, in build
restore_sequentially, reshape)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 419, in _AddRestoreOps
assign_ops.append(saveable.restore(tensors, shapes))
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 155, in restore
self.op.get_shape().is_fully_defined())
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/state_ops.py", line 274, in assign
validate_shape=validate_shape)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/gen_state_ops.py", line 43, in assign
use_locking=use_locking, name=name)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
op_def=op_def)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2630, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1204, in init
self._traceback = self._graph._extract_stack()  # pylint: disable=protected-access
InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
这是tensorflow的版本问题吗？但是我在使用您的模型进行infer时是没有这种错误的。

Have you ever solved this problem? How you did this?

@wmonica
yes, I have soveled it. Because there are some errors in my training model, so it cant't infer success.
the error is lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
in train.py line  20, "parser.add_argument('--embedding_num', dest='embedding_num', type=int, default=40,  help="number for distinct embeddings") " ;   embedding_num=40, so I change  zi2zi-master/model/unet.py  line 27, embedding_num=40.
and then train my model , my model can infer successfully.

Thank you very much for your letter.
My errors are:
InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [6,1,1,128] rhs shape= [40,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
I have trained my own model for 6 classes. There is a little difference between our error information.  How you obtained [1,1,1,128], I need to change this value.
Xueping Wang
<EMAIL_ADDRESS>From: xsmxsm
Date: 2017-11-08 08:49
To: kaonashi-tyc/zi2zi
CC: wmonica; Mention
Subject: Re: [kaonashi-tyc/zi2zi] infer error when use my model (#34)
@wmonica
yes, I have soveled it. Because there are some errors in my training model, so it cant't infer success.
the error is lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
in train.py line 20, "parser.add_argument('--embedding_num', dest='embedding_num', type=int, default=40, help="number for distinct embeddings") " ; embedding_num=40, so I change zi2zi-master/model/unet.py line 27, embedding_num=40.
and then train my model , my model can infer successfully.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Thank you for your help.
From: xsmxsm
Date: 2017-11-08 09:07
To: kaonashi-tyc/zi2zi
CC: wmonica; Mention
Subject: Re: [kaonashi-tyc/zi2zi] infer error when use my model (#34)
@wmonica
you have to change lhs shape=rhs shape,then the error can sovel.
maybe you should change your embedding_num=40(or other number), same in train.py and unet.py
you should try it, because I am not very sure it may sovel your problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@xsmxsm Thank you for your help.

I got an error:
"infer.py: error: unrecognized arguments: ./result/train.obj"
What is the problem?

@kaonashi-tyc
i trained my model use

python font2img.py --src_font=simsun.ttf --dst_font=钟齐山文丰手写体.ttf --charset=top_3000_simplified.txt --sample_count=3000 --sample_dir=dir3 --label=0 --filter=1 --shuffle=1
python package.py --dir=dir3 --save_dir=save_dir3 --split_ratio=0.1
python train.py --experiment_dir=experiment --experiment_id=0 --batch_size=50 --lr=0.001 --epoch=100 --sample_steps=60 --schedule=20 --L1_penalty=100 --Lconst_penalty=15

in the experiment/checkpoint/experiment_0_batch_50 dir , why it has "checkpoint" ,"unet.model-4500.data-00000-of-00001","unet.model-4500.index", "unet.model-4500.meta", "unet.model-5000.data-00000-of-00001", "unet.model-5000.index", "unet.model-5000.meta", "unet.model-5500.data-00000-of-00001", "unet.model-5500.index", "unet.model-5500.meta", 10 files?
I download your model ,it only has 4 files.
Is there any error in my train? My tensorflow is 1.3.0
(训练结果怎么有那么多文件？我下载的您的模型里面只有四个文件)
另一个问题：
我在使用自己训练的模型进行infer时，出现以下错误：
python infer.py --model_dir=font3 --batch_size=50 --source_obj=save_dir1/train.obj --embedding_ids=0 --save_dir=save_dir1
2017-10-13 08:27:21.597033: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.597060: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.597065: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.597069: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.597074: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.870330: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 0 with properties:
name: GeForce GTX 1080 Ti
major: 6 minor: 1 memoryClockRate (GHz) 1.582
pciBusID 0000:02:00.0
Total memory: 10.91GiB
Free memory: 10.39GiB
2017-10-13 08:27:21.870368: I tensorflow/core/common_runtime/gpu/gpu_device.cc:976] DMA: 0
2017-10-13 08:27:21.870376: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 0: Y
2017-10-13 08:27:21.870386: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:02:00.0)
unpickled total 9 examples
examples -> 9
2017-10-13 08:27:23.749874: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
2017-10-13 08:27:23.750613: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
Traceback (most recent call last):
File "infer.py", line 67, in
tf.app.run()
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "infer.py", line 47, in main
save_dir=args.save_dir)
File "/home/customer/zi2zi-master/model/unet.py", line 360, in infer
self.restore_model(saver, model_dir)
File "/home/customer/zi2zi-master/model/unet.py", line 305, in restore_model
saver.restore(self.sess, ckpt.model_checkpoint_path)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1560, in restore
{self.saver_def.filename_tensor_name: save_path})
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 895, in run
run_metadata_ptr)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1124, in _run
feed_dict_tensor, options, run_metadata)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1321, in _do_run
options, run_metadata)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1340, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
Caused by op u'save/Assign_6', defined at:
File "infer.py", line 67, in
tf.app.run()
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "infer.py", line 47, in main
save_dir=args.save_dir)
File "/home/customer/zi2zi-master/model/unet.py", line 359, in infer
saver = tf.train.Saver(var_list=self.retrieve_generator_vars())
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1140, in init
self.build()
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1172, in build
filename=self._filename)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 688, in build
restore_sequentially, reshape)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 419, in _AddRestoreOps
assign_ops.append(saveable.restore(tensors, shapes))
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 155, in restore
self.op.get_shape().is_fully_defined())
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/state_ops.py", line 274, in assign
validate_shape=validate_shape)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/gen_state_ops.py", line 43, in assign
use_locking=use_locking, name=name)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
op_def=op_def)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2630, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1204, in init
self._traceback = self._graph._extract_stack() # pylint: disable=protected-access
InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
这是tensorflow的版本问题吗？但是我在使用您的模型进行infer时是没有这种错误的。
请问再进行Python infer.py 时 其中的source_obj参数应该是什么？图片吗？

@kaonashi-tyc
i trained my model use

python font2img.py --src_font=simsun.ttf --dst_font=钟齐山文丰手写体.ttf --charset=top_3000_simplified.txt --sample_count=3000 --sample_dir=dir3 --label=0 --filter=1 --shuffle=1
python package.py --dir=dir3 --save_dir=save_dir3 --split_ratio=0.1
python train.py --experiment_dir=experiment --experiment_id=0 --batch_size=50 --lr=0.001 --epoch=100 --sample_steps=60 --schedule=20 --L1_penalty=100 --Lconst_penalty=15

in the experiment/checkpoint/experiment_0_batch_50 dir , why it has "checkpoint" ,"unet.model-4500.data-00000-of-00001","unet.model-4500.index", "unet.model-4500.meta", "unet.model-5000.data-00000-of-00001", "unet.model-5000.index", "unet.model-5000.meta", "unet.model-5500.data-00000-of-00001", "unet.model-5500.index", "unet.model-5500.meta", 10 files?
I download your model ,it only has 4 files.
Is there any error in my train? My tensorflow is 1.3.0
(训练结果怎么有那么多文件？我下载的您的模型里面只有四个文件)
另一个问题：
我在使用自己训练的模型进行infer时，出现以下错误：
python infer.py --model_dir=font3 --batch_size=50 --source_obj=save_dir1/train.obj --embedding_ids=0 --save_dir=save_dir1
2017-10-13 08:27:21.597033: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.597060: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.597065: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.597069: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.597074: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
2017-10-13 08:27:21.870330: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 0 with properties:
name: GeForce GTX 1080 Ti
major: 6 minor: 1 memoryClockRate (GHz) 1.582
pciBusID 0000:02:00.0
Total memory: 10.91GiB
Free memory: 10.39GiB
2017-10-13 08:27:21.870368: I tensorflow/core/common_runtime/gpu/gpu_device.cc:976] DMA: 0
2017-10-13 08:27:21.870376: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 0: Y
2017-10-13 08:27:21.870386: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:02:00.0)
unpickled total 9 examples
examples -> 9
2017-10-13 08:27:23.749874: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
2017-10-13 08:27:23.750613: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
Traceback (most recent call last):
File "infer.py", line 67, in
tf.app.run()
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "infer.py", line 47, in main
save_dir=args.save_dir)
File "/home/customer/zi2zi-master/model/unet.py", line 360, in infer
self.restore_model(saver, model_dir)
File "/home/customer/zi2zi-master/model/unet.py", line 305, in restore_model
saver.restore(self.sess, ckpt.model_checkpoint_path)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1560, in restore
{self.saver_def.filename_tensor_name: save_path})
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 895, in run
run_metadata_ptr)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1124, in _run
feed_dict_tensor, options, run_metadata)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1321, in _do_run
options, run_metadata)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1340, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
Caused by op u'save/Assign_6', defined at:
File "infer.py", line 67, in
tf.app.run()
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "infer.py", line 47, in main
save_dir=args.save_dir)
File "/home/customer/zi2zi-master/model/unet.py", line 359, in infer
saver = tf.train.Saver(var_list=self.retrieve_generator_vars())
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1140, in init
self.build()
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1172, in build
filename=self._filename)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 688, in build
restore_sequentially, reshape)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 419, in _AddRestoreOps
assign_ops.append(saveable.restore(tensors, shapes))
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 155, in restore
self.op.get_shape().is_fully_defined())
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/state_ops.py", line 274, in assign
validate_shape=validate_shape)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/gen_state_ops.py", line 43, in assign
use_locking=use_locking, name=name)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
op_def=op_def)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2630, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/opt/software/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1204, in init
self._traceback = self._graph._extract_stack() # pylint: disable=protected-access
InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [40,1,1,128] rhs shape= [1,1,1,128]
[[Node: save/Assign_6 = Assign[T=DT_FLOAT, _class=["loc:@embedding/E"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](embedding/E, save/RestoreV2_6/_189)]]
这是tensorflow的版本问题吗？但是我在使用您的模型进行infer时是没有这种错误的。

可以告诉我你是怎么得到这个文件的嘛top_3000_simplified.tx，我这边是直接把rewrite项目里面的下载下来，但是报错了说Traceback (most recent call last):
File "C:/Users/dell/Desktop/zi2zi-master/font2img.py", line 116, in
charset = [c for c in open(args.charset).readline()[:-1].decode("utf-8")]
UnicodeDecodeError: 'gbk' codec can't decode byte 0x84 in position 2: illegal multibyte sequence


Add workflow error notification in ui

Could we display the parse error on the tooltip?

Could we display the parse error on the tooltip?

@lunny
I think we can add ErrorType to WorkFlow  struct to display the error.
But I have no idea about how to define these parse errors.
type WorkFlow struct {
    Entry     git.TreeEntry
    IsInvalid bool
    ErrorType WorkFlowError
}

type WorkFlowError string

const (
    ParseError1 WorkFlowError = "xxxx"
)

How about
type WorkFlow struct {
Entry     git.TreeEntry
ErrMsg string
}

It looks as following now.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@dad057b). Click here to learn what that means.
The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##             main   #23404   +/-   ##
=======================================
  Coverage        ?   47.15%
=======================================
  Files           ?     1151
  Lines           ?   152008
  Branches        ?        0
=======================================
  Hits            ?    71681
  Misses          ?    71864
  Partials        ?     8463

Impacted Files
Coverage Δ

modules/actions/workflows.go
0.00% <0.00%> (ø)

routers/web/repo/actions/actions.go
0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[FR]: "Run/Evaluate - Compare - Edit Prompt"  UI loop

Proposal summary
A way to start a python script, that waits until the UI triggers an experiment.
Python Opik() client wait/callback function to start experiment from UI, after editing the prompt.
i.e client.wait_on(my_evalutation_fn) or Evaluation class with a run function.
Possible place for the ui in the experiments page. A run button and a change prompt button.
Motivation
The Run/Evaluate then Compare with previous runs, then change the prompt loop is the core of the process. There is no way to trigger this loop from the UI

We are actually planning on building functionality to run the entire evaluation through the UI which I think might be an even nicer experience.
However this to achieve this, we are planning on support prompt templates being evaluated against a dataset and scored using either one of Opik's metrics or a custom one. Would that work in your use case or does your evaluation task quite complex and not just a single LLM call ?

Your plan will work for a lot of cases and that's how we started but now we are looking into more complicated scenarios involving DB queries and multiple LLM calls. You could do both. My proposal is simple to implement. The code will wait and poll (HTTP) or wait for a message (Websocket) and then execute a callback.
Of course there are many ways to implement LLM application functionality, but it will take time, in the meantime you could just augment your API and have a UI trigger.

Good point @StoyanStAtanasov
@alexkuzmik This could be a nice idea, what do you think ?


Add notice about explicit passing in action sequence

@csantanapr I tried to capture the clarification you were going for. Does this help?
@hassenius FYI.

rebase and merged e2a148a7ed7ad9b458cae1bb8aa26deb2af6cc00


Allow to inspect Angular2+ component inspection

The goal of this feature is to provide a very simple way to inspect an Angular component instance. It should be as easy as inspecting an AngularJS scope with Batarang.
I think it will help users used to AngularJS and Batarang to start development and debug on Angular2+.

I signed it!

@gary-b @gkalpak Is there something I should change to get this PR merged, or maybe this is not a wanted feature?

Sorry for taking so long to respond, @yannickglt. We discussed it internally and we think it will be more confusing than helpful. Besides, there is already Augury, which is excellent for exploring/debugging Angular applications.
It would be great if Batarang detected Angular apps and showed a message pointing the user to Augury for debugging Angular apps.

I am going to close this PR, since it is not a feature we want to include in Batarang, but you are more than welcome to open a new one for pointing to Augury :smiley:

It's OK! Thanks for answering anyway.
Actually, I already made a similar pull request on Augury but I guess the main contributors are as busy as you are because I could not get any reply for the moment.
I currently work with both Batarang and Augury and the main difference I can see is that Batarang is loaded in the elements panel, while Augury loads only when accessing its own panel. It means that I need to click on the Augury tab first, wait for the plugin to be loaded and then select a DOM element in the elements panel to be able to inspect my component. It's quite annoying and confusing 😕  and got me keep using Batarang and $scope for my Angular apps.


ctrl-C interrupting is broken: rsync returns exit status 20 to shell, but rsyncy returns no-error 0 ("SIGINT/SIGTERM/SIGHUP (code 20)")

When you interrupt plain rsync with ctrl-C, it prints an error message like:
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(642) [sender=3.1.3]
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504) [generator=3.1.3]

and indeed returns an exit status of 20 to the shell.
However, when you interrupt rsyncy,
it lets rsync print that same error message to the screen,
but returns the non-error exit status of 0 to the shell instead.

(
Sorry, this looks like something that's probably really easy to fix,
but I just don't know anywhere near enough about python to figure out the documentation for this.
(Also, sorry if I'm somehow asking in the wrong place; I'm kinda new to all this...)
I assume this I got from pip list is accurate:
Package             Version
rsyncy              0.1.0

and there's nothing relevantly weird or outdated about my specific copy.
)

Thanks!

Thanks, I'll look into it.

Thanks!
I figured maybe I could just hack it myself,
but... yeah I don't really know where to start.
I bet it's conceptually pretty simple,
but I barely learned python, years ago, and I've forgotten most of what little I did know,
so I don't really know how to figure out the documentation.
Like, I would guess I should be looking at the line:
rc.put(p.returncode)
which I think ends up functionally running as:
queue.Queue().put(p.returncode)
and/or the:
sys.exit(rc.get())
at the very end,
but beyond that, I really don't know how to figure it out.
I was actually gonna ask about it on stackexchange
(something like "Get commandline python script that calls another commandline program foo to return exit status of foo to shell?")
and I wrote the question out,
but still haven't gotten around to posting it cuz... juggling other things combined with irrational social anxiety or something?

Can you test it with 0.2.0?

Bingo bango it works! Thank you so much! :D

It was a bit late yesterday so I didn't notice your previous comment ;) Anyways, glad it works :)


Update [Burn Account stellarFedNetwork*lobstr.co] #custodian #issuer #wallet GALAXY…ZILUTO

Address: GALAXYVOIDAOPZTDLHILAJQKCVVFMD4IKLXLSZV5YHO7VY74IWZILUTO
Tags: custodian issuer wallet
Title: Burn Account  Domain: stellarFedNetwork*lobstr.co
Requested by @gre3n3yes34

Hello @gre3n3yes34
Can you explain the issue you are reporting about this burn account?
Rob

there is no issue
On Sun, May 28, 2023, 05:34 CryptoHobbyist @.***> wrote:

Hello @gre3n3yes34 https://github.com/gre3n3yes34
Can you explain the issue you are reporting about this burn account?
Rob
—
Reply to this email directly, view it on GitHub
https://github.com/stellar-expert/public-directory/issues/550#issuecomment-1566122737,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A5LQRFPNER56HTLERNCLFTDXINA4HANCNFSM6AAAAAAYRVZQGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hello @gre3n3yes34
What were your reporting/requesting? Should we close this issue?
Rob

well I guess but I need widget for withdrawing also


[Bug]: CloudSQL Provider database iam auth users cannot be created

Is there an existing issue for this?

[X] I have searched the existing issues

Affected Resource(s)
sql.gcp.upbound.io/v1beta1 - User
Resource MRs required to reproduce the bug
apiVersion: sql.gcp.upbound.io/v1beta1
kind: User
metadata:
name<EMAIL_ADDRESS>spec:
forProvider:
instanceRef:
name: InstanceName
type: CLOUD_IAM_SERVICE_ACCOUNT
project: gcp-projectid
providerConfigRef:
name: default
Steps to Reproduce
Try to create a cloudsql user of the type CLOUD_IAM_SERVICE_ACCOUNT or CLOUD_IAM_USER using the User resource. The name for the user is passed as the resource name, but given the user name for these user types are email addresses the name isnt compatible with K8s resource names rules (invalid characters), so it cannot be created. Additionally you cannot have two users with the same name but on different instances as you would end up having two k8s resources with the same name.
The solution would be to provide a field other than the resource name to pass the user name, as in the original terraform resource.
What happened?
Resource cannot be created
Relevant Error Output Snippet
No response
Crossplane Version
1.12.1
Provider Version
1.5.0
Kubernetes Version
No response
Kubernetes Distribution
No response
Additional Info
No response

You can use crossplane.io/external-name annotation:
apiVersion: sql.gcp.upbound.io/v1beta1
kind: User
metadata:
  name: test
  annotations:
    crossplane.io/external-name<EMAIL_ADDRESS>spec:
  forProvider:
    instanceRef:
      name: InstanceName
    type: CLOUD_IAM_SERVICE_ACCOUNT
    project: gcp-projectid
  providerConfigRef:
    name: default

@turkenf Thank you, this worked, closing the issue.


[Release-1.23] Update etcd error to match correct url

Backport of https://github.com/k3s-io/k3s/pull/5909
Bumps to macos to 12 for GH actions, macos-10.15 is being removed https://github.com/actions/virtual-environments/issues/5583
Signed-off-by: Derek Nola<EMAIL_ADDRESS>
Linked Issues
https://github.com/k3s-io/k3s/issues/5931

User-Facing Change

The etcd error on incorrect peer urls now correctly includes the expected https and 2380 port.

Merging despite drone failures, x390x runner is broken right now. All other runners passed


Working on blue.feedland.org to prepare for release of blue.thread.center

I'm starting to get the new thread-writing tool for Bluesky, blue.thread.center, ready for release, and to start building a community here for the product.
The first change is that I changed the URL of the starter feed list. Instead of using the one we use for feedland.org, I'm using the set of feeds I follow on Bluesky. That's temporary, I will start an account for blue.thread.center and from there I will follow accounts I want to be in the starter list. At first I want to skew it toward people who post with thread.center. And then see where it goes.
This is the URL of the feed list..
<EMAIL_ADDRESS>

BTW, to see what that looks like --
My feed list...
https://blue.feedland.org/?username=bullmancuso
And the timeline..
https://blue.feedland.org/?river=true&screenname=bullmancuso
Now we get to close the loop. Adding the OPML and RSS feeds was the first step.
Now customizing FeedLand around that is the next step.

Hi,
It's Feedland user (moosebegab) here to check this out : )

Gabrielle

@moosebegab -- welcome.
the new product is blue.thread.center.
and behind it, mostly transparently, is another instance of FeedLand: https://blue.feedland.org
to get started:

go to https://blue.thread.center
click the Sign on button
a familiar dialog will appear, click the Sign up button.
enter your username and email address, get the email, click the link.

if all that worked:

click the Settings link
in the first panel, enter the site url (https://bsky.social/, the mail address you used to log into Bluesky and the password you use. we will only use the account info to send posts when you click the button to post them.
click OK to save the settings.

to post a thread:

enter some text in the top box. as you type you'll see the thread displayed in the box underneath it.
you shouldn't enter URLs into this box, it'll have unpredictable results.
you can force a new item in the thread to be created by entering a hard Return.
when you're ready to post the thread, click the Publish button.

there are lots of other things you can do in blue.feedland.org, but i'll save that for another thread here.
and of course if there are problems, remember to say what you did, what you expected to happen and what actually happened. be clear in the steps, if we can't reproduce the problem we can't help you. look in the javascript console for errors. screen shots can help.

go to https://blue.thread.center/
click the Sign on button
a familiar dialog will appear, click the Sign up button.
enter your username and email address, get the email, click the link.

When I clicked the confirmation link in email, it took me to:
https://blue.feedland.org/?username=moosebegab#
I went back to blue.thread.center ...
sign on, sign on, got confirmation email, got sent back to blue feedland org ...
went back to blue thread center. opened settings there and added bsky link and password.
I did a test thread which posted on bluesky:
https://bsky.app/profile/moosebegab.bsky.social/post/3jzplrjqr6v2d
Blue thread did not tell me it published.. it did do a bold letters flash for each post as it processed but the Publish button still says Publish 2 posts. So I went to Bluesky to check and there was my thread! : )
Nice feature I noticed if I deleted a post, it was smooth and automagically changed the x/3 to x/2 posts.

I guess markdown menu doesnt work yet.

@moosebegab -- it sounds like the sign up process didn't work?
which button did you click in this dialog?
you must click Sign up because you don't have an account on this server.

I clicked Sign up.

Can you say, very slowly so I can follow, what you did then?
I can't tell from your description if something didn't work. You ultimately did get signed on.

I wish I could do over the sign up process  so I could document each step correctly.
Sign up.
Enter username ( used moosebegab which is same for regular Feedland account ) and email.
Received email confirmation

Clicked confirmation link.
Confirmation link took me to Blue Feedland Org .. not to Blue Thread Center.

This is hazy part..
I think I went back to the open tab of Blue Thread Center and signed ON.
Pop up box asked for  my email address to send confirmation link. (I don't remember adding my username).
I got a second confirmation link which I clicked on.
I think it opened another Blue Feedland Org tab.
I think I went back to Blue Thread Center and was logged on.
I clicked Settings and filled that out (bsky link and password) and was ready to post.

Thank you. I'll read it carefully and see what I can discern. The fact that it took you to FeedLand instead of blue.thread.center appears to be the big mistake. I'll report back. And thanks for sticking with this.

@moosebegab --

I was able to reproduce the problem here.
Found the issue very quickly and fixed it.
Verified that the fix works.

It'll be tested by the next user to come through this process.
Thank you for your help with this. No kidding this was a biggie. :smile:

So it's interesting that you immediately found the Markdown feature. ;-)
I wonder if other people are going to go down that path.
It would be really cool if enough people used this that we got Bluesky to support Markdown.
It would be a big and very easy upgrade for them imho.

@moosebegab --

I was able to reproduce the problem here.
Found the issue very quickly and fixed it.
Verified that the fix works.

It'll be tested by the next user to come through this process.
Thank you for your help with this. No kidding this was a biggie. 😄

This is what is was doing for me earlier Dave - I'll have a re-run through in the morning and report back

And we're in :-)
I was about to say "but bold / italics etc don't work" but then noticed the comments above and that it's a Bluesky limitation!
I presume there's no way to be able to add images into the threads at the moment - it's just text?

A few fixes and tweaks.

I started a new thread after writing the docs..
https://github.com/scripting/blue.feedland/issues/19
Hope you can stay in the loop.


Create an FAQ for Android documentation

With Android there are several occasions where you can ask, why is this happening? So we can add an FAQ section to counter these:
Here is an initial list of things to document in it:

[ ] Add permissions for INTERNET
[ ] Crashing when using Subject with Context but not adding Play Services
[ ] Project module not recognized (See: #10)
[ ] Make sure java-core is updated to the right version

I think this ticket can probably be closed now:

Have added a note about adding permissions for INTERNET
There is no more crashing

.. the other two I do not believe are related to this project anymore as we have diverged.

Great please close!


[fix] support undici 5.12

Fixes #7409
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. All changesets should be patch until SvelteKit 1.0

Not to knock your fix (it's a good one) but wouldn't a more stable fix be to pin to the last known good version of undici (5.11.0)?

There are many fixes and improvements in 5.12.0.
I don't see any good reason to stay with 5.11.0 other than the addition of the duplex property.

Worked like a charm for me. Thanks repsac-by

The Undici team indicated this is the correct fix

This is part of the spec now. When you have a ReadableStream body, the duplex option is required.

The undici PR included updates to the types here (https://github.com/nodejs/undici/pull/1681/files#diff-cfe294cd3fb885afcce564fae32dd1524399460a9a04f141e07bb45858a47f92), but it looks like we're not using those. I tries this out locally (and updated the Kit repo to undici 5.12.0), but the types for Request appeared to be coming from TypeScript (lib.dom.d.ts) and not from undici. This @ts-expect-error is probably the best we can do for now. Once the types are added to TS and we upgrade, we'll start getting an error here, so at least we'll remember to remove this.
This change looks good to me. Can we get a changeset?

We should probably pin the Undici version as well as they've indicated that it's experimental and may have breaking changes in minor/patch versions: https://github.com/nodejs/undici/pull/1681#issuecomment-1294178466

That sounds good to me as well.


mode does not change when using powerline

The mode indicator does not change in my zsh prompt. I use powerline also. What am I doing wrong?

I'm not using powerline so I can't really help you D:

I'm not using powerline so I can't really help you D:

@Nyquase Can you tell us what are you using in order to get that *.png look? Thank you in advance!
P.S. My speculation: It looks to me like POWERLEVEL9K theme's RPROMPT_INDICATOR or something. :smile:

I'm not sure what you are mean by *.png look ?
If you mean the right prompt, I'm setting the RPS1 variable (you can also set RPROMPT)

By *.png look => https://github.com/Nyquase/vi-mode/blob/master/screenshot.png
I used POWERLEVEL9K and added:
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time **vi_mode** vcs rbenv virtuale nv aws_eb_env)
into the .zshrc to achieve similar look.

However, I can't find a way to set a "VISUAL" mode option as it switches between INSERT and NORMAL, as it shows visual mode as INSERT.
P.S. I didn't expect you to answer that quickly, I was about to clarify my previous comment :laughing:
Can you share .zshrc that achieves that beautiful right-side vi-mode result with the VISUAL mode indicator?

Ah yes powerlevel9k doesn't support Visual mode by default, I don't remember exactly how but I was using poerlevel9k with my visual mode at some point, maybe you can take a look here


Multiple auth applications does not work

Hi, I have the same problem that was reported on #12
But with that message:
"The key {some-guid} was not found in the key ring. For more information go to http://aka.ms/dataprotectionwarning"
The Identity uses some local key?

As @sveins12 mentioned in his reply to your question in #12
Asp Identity uses Data Protection system to encrypt protected data and to isolate applications, to prevents the apps from understanding each other's protected data.
If you want to share the data store between apps, you have to configure Asp Data Protection with the same key across all applications by using SetApplicationName as the application name is being used for encryption seeds.
builder.Services.AddDataProtection()
    .SetApplicationName("<sharedApplicationName>");

And for

"The key {some-guid} was not found in the key ring. For more information go to http://aka.ms/dataprotectionwarning"

Please check Key management in ASP.NET Core and the following thread from stackoverflow
if you still have issues, please share more details about your setup.


document d3.ascendingKey

just read the code and was wondering…

Thanks. I wish this accessor was in d3-core

I know, it's so useful! Mike agreed to add them in d3 v4, see https://github.com/mbostock/d3/issues/2088


Move import interactions tool caching logic to separate module

Description of change
This is a small refactor that moves the cache-related logic in the import interactions tool to a separate module. This is to keep it in one place as a couple of other things will need to be stored in the cache in some upcoming PRs.
Checklist

[ ] Has a new newsfragment been created? Check changelog/README.rst for instructions
[ ] Have any relevant search models been updated?
[ ] Have any relevant fixtures (fixtures/test_data.yaml) been updated?
[ ] Have any relevant select-/prefetch-related field lists in the views and search apps been updated?
[ ] Has the admin site been updated (for new models, fields etc.)?
[ ] Has the README been updated (if needed)?

Just pushed a small change to make save_file and load_file parallels of each other based on feedback from @alixedi .


Annapan aws patch 1

aws-doc-sdk-examples Pull Request
Thank you for making a submission to the aws-doc-sdk-examples repository. For more information about submitting pull requests to this repository, see Guidelines for contributing.
NOTE: This PR template contains three sections. Depending on the reason for your pull request, please fill out the section that applies to you and then remove the other two sections.
Existing Example Update
The submitter has:

[ ] Confirmed that the correct copyright is included in all files.
[ ] Major code changes have been reviewed, and the submitter has incorporated review comments.
[ ] Changed or added comments and strings have been reviewed, and the submitter has incorporated any and all suggested edits.

Resolve Issue
Issue #
Description of Changes
Please describe the changes you have made here.
see other note made with edit itself.  explicitly testing for authentication due to anonymous S3 requests being allowed. Working with steve m. to update getting started example.

[ ] I have tested my changes and created unit tests for new code paths.
[ ] Changes have been reviewed, and all reviewer comments have been incorporated.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

mistake. deleting


Update Composer dependencies (2023-12-27-00-15)

Visual regression test passed!
View the visual regression test report


Add ui tests

We should ensure UI tests are added to this project so it's tested AF like the other project!

I've begun working on these but don't want to go to the Nth degree till I understand things better and we have a firmer vision of the UI endgame #15

That sounds sensible!

more added in #52

and #102


Compile errors on macOS (clang)

Hi,
Thanks for creating this library!
When building on macOS, I get two compile errors:
c-coroutine/src/coroutine.c:147:9: error: non-void function 'co_await' should return a value [-Wreturn-type]
        return;
        ^

c-coroutine/src/coroutine.c:237:9: error: non-void function 'co_group_get_result' should return a value [-Wreturn-type]
        return;

Probably easy solvable when familiar with the inner workings of the library, but I don't know what a proper return value should be for these functions.

same error when I tried to port it to the zig build system:
zig build-lib coroutine Debug native: error: error(compilation): clang failed with stderr: /home/elliot/projects/c-coroutine/src/coroutine.c:147:9: error: non-void function 'co_await' should return a value [-Wreturn-type]
/home/elliot/projects/c-coroutine/src/coroutine.c:189:54: warning: argument to 'sizeof' in 'memcmp' call is the same pointer type 'wait_group_t *' (aka 'struct oa_hash_s *') as the destination; expected 'hash_t' (aka 'struct oa_hash_s') or an explicit length [-Wsizeof-pointer-memaccess]
/home/elliot/projects/c-coroutine/src/coroutine.c:237:9: error: non-void function 'co_group_get_result' should return a value [-Wreturn-type]

I'm not using any special compile flags, just defaults, so under Ubuntu gcc it's just an warning, compiling proceeds. I guess clang different default behavior.
Scanning dependencies of target coroutine
[ 46%] Building C object CMakeFiles/coroutine.dir/src/coroutine.c.o
/mnt/c/Users/Lenovo/Documents/c-coroutine/src/coroutine.c: In function ‘co_await’:
/mnt/c/Users/Lenovo/Documents/c-coroutine/src/coroutine.c:147:9: warning: ‘return’ with no value, in function returning non-void
  147 |         return;
      |         ^~~~~~
/mnt/c/Users/Lenovo/Documents/c-coroutine/src/coroutine.c:142:9: note: declared here
  142 | value_t co_await(callable_t fn, void_t arg) {
      |         ^~~~~~~~
[ 48%] Linking C static library ../coroutine-built/libcoroutine.a

Currently I'm working on how to handle errors returned by libuv calls. "No return" is just temporary fix.
Took me some time to figure it out, the line was return ((values_t *)0)->value; to indicate a NULL union value, that caused segfaults. The real fix for the warning and now error is being worked.
So you could just comment lines out to compile immediately, or look up clang compile flags to pass to cmake.
Commenting out will only indicate bug in example co_uv_listen.c, if there is an connect problem like "address already in use" which is what I recently solved.
Once I got a working routine I had to reboot computer. I got that initial message after many segfaults on same port, can't find way to make error happen again.
@binarycraft007, @onderweg , If you know a way to force "address already in use" on a port or address, for further testing let me know.

@TheTechsTech my log above showed that it's -Wreturn-type, so pass -Wno-return-type solved the compile error, but it's just a workaround anyway, btw,  why pthread4w, I think there is winpthreads for mingw64 which provides other unix libc functions, and it's a better maintained project, github mirror: https://github.com/mingw-w64/mingw-w64/tree/master/mingw-w64-libraries/winpthreads.

mingw64? I use Windows daily, simple install, no additional steps, simple prompt lunch, which .cl_32/64.bat in root is for. You can add script PR for mingw64 environment if you want.
I know pthread4w already and use for many other projects.

@TheTechsTech
after commenting out the break in co_uv_listen.c, I got segment fault when connecting it with a client, 100% reproducible, is this the bug you are referring  to?
int co_main(int argc, char *argv[]) {
    uv_stream_t *socket = stream_bind("http://<IP_ADDRESS>:9010", 0);

    while (true) {
        uv_stream_t *connectedSocket = stream_listen(socket, 1024);
        if (connectedSocket == NULL)
            printf("Invalid handle, got error code: %d\n", co_err_code());

        //break;
        stream_handler(handleClient, connectedSocket);
    }

    return 0;
}

❯ zig-out/bin/co_uv_listen
[1]    43714 segmentation fault (core dumped)  zig-out/bin/co_uv_listen

mingw64? I use Windows daily, simple install, no additional steps, simple prompt lunch, which .cl_32/64.bat in root is for. You can add script PR for mingw64 environment if you want.
I know pthread4w already and use for many other projects.

yeah, I am add zig build system support for it, it also has a pkg manager, so it can just fetch upstream project source code and compile it, will send an PR once I finished porting.

return ((values_t *)0)->value; to indicate a NULL union value, that caused segfaults

Ah, good to know.
I used return ((values_t *)0)->value; as a quick and dirty fix for the compile error, and was wondering if that was a good idea or not.

@binarycraft007 You should be running in debug mode, I don't see something like:
Thread #7fe9185f1180 running coroutine id: 1 () status: 3
Back at coroutine scheduling
Thread #7fe9185f1180 running coroutine id: 2 () status: 3
Listening to <IP_ADDRESS>:9010 for connections.

The cause could be other issues with Zig.
I initial bought in on there build system, but then I realize how it handles macros will eventually
be a problem in the long run on what I am trying to produce.
The output is using macros for debug mode logging only.

@binarycraft007 also you commented out break; and the whole routine for handling the request not provided.
You actually getting correct behavior but should different error output that shows this library is in complete control.
Coroutine-system, exception during stack unwinding leading to an undefined behavior: sig_segv
    thrown at unknown:0

@binarycraft007 also you commented out break; and the whole routine for handling the request not provided.
You actually getting correct behavior but should different error output that shows this library is in complete control.
Coroutine-system, exception during stack unwinding leading to an undefined behavior: sig_segv
    thrown at unknown:0

so that means the stream_handler is currently not working, I don't understand why there is a break, isn't the stream_handler code unreachable with the break?

It's working, but i was just testing the error condition behavior, the program should just had exited in handleClient() when break is removed and no actual connection happened.
You not in debug mode so not sure where your issues is at. I have CO_HERE() macro to track actual flow like this when issues come up.
The script behavior is not complete, the whole integration with libuv is still being worked on.

I found the segfault your having is in co_handler() then after bug fixing that, and letting the co_uv_listen.c continue execution for a while and then doing "Ctrl-c" the bugs that still needs fixing is:
Listening to <IP_ADDRESS>:9010 for connections.
Received following request: @I

attempt to delete a coroutine that is not dead or suspended
Listening to <IP_ADDRESS>:9010 for connections.
Received following request: y

attempt to delete a coroutine that is not dead or suspended
^Ccoroutine list:
     1  co_main              yield (running) 1
     2                        -1
     5                        -1
     4                        -1
     8                        -1
     7                        -1
    11                        -1
    10                        -1
    14                        -1
    13                        -1
    17                        -1
    16                        -1
    20                        -1
    19                        -1
    23                        -1
    22                        -1
    26                        -1
    25                        -1
    29                        -1
    28                        -1
    32                        -1
    31                        -1
    35                        -1
    34                        -1
    38                        -1
    37                        -1
    41                        -1
    40                        -1
    44                        -1
    43                        -1
    47                        -1
    46                        -1
    50                        -1
    49                        -1
    53                        -1
    52                        -1
    56                        -1
    55                        -1
    59                        -1
    58                        -1
    62                        -1
    61                        1
co_uv_listen: /mnt/c/Users/Lenovo/Documents/c-coroutine/deps/libuv/src/unix/core.c:221: uv_close: Assertion `0' failed.

Coroutine-system, exception during stack unwinding leading to an undefined behavior: sig_abrt
    thrown at unknown:0

The issues with HTTP handling has been resolved with latest commit,
the co_uv_listen.c example works as expected, use create-x509.c to create self signed SSL/TLS certificate.

Thanks!
Orignal error indeed is fixed, although a new error appears:
../c-coroutine/src/strings.c:443:22: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    file->basename = basename(file->dirname);

That function is defined for Windows only.  I got error saying declared already error on Linux, it's part of POSIX from what i read, https://man7.org/linux/man-pages/man3/basename.3.html
I guess I need a better check after all.

I just  #include <libgen.h> instead,  only defined now for windows.

Great. Builds now without errors on macOS.


Allow metadata editting

This patch removes a check which would prevent users from editing
metadata of scheduled events which start time has already passed.
Editing such metadata in the admin interface will fail silently with no
feedback for users but many errors in the logs:
2022-01-10 21:42:32,986 | INFO  | (SchedulerServiceImpl:837) - Event ID ba78ec72-6d8c-40f8-807c-67d6a6764a39 has already ended as its end time was 2022-01-10T16:10:00Z and current time is 2022-01-10T20:42:32Z
2022-01-10 21:42:32,987 | ERROR | (IndexServiceImpl:1303) - Unable to update scheduled event ba78ec72-6d8c-40f8-807c-67d6a6764a39 with metadata [...] because
org.opencastproject.scheduler.api.SchedulerException: Event ID ba78ec72-6d8c-40f8-807c-67d6a6764a39 has already ended at 2022-01-10T16:10:00Z and now is 2022-01-10T20:42:32Z
        at org.opencastproject.scheduler.impl.SchedulerServiceImpl.verifyActive(SchedulerServiceImpl.java:840) ~[?:?]
        at org.opencastproject.scheduler.impl.SchedulerServiceImpl.updateEventInternal(SchedulerServiceImpl.java:671) ~[?:?]
        at org.opencastproject.scheduler.impl.SchedulerServiceImpl.updateEvent(SchedulerServiceImpl.java:619) ~[?:?]

I see no reason why we shouldn't allow users to edit e.g. the title of
such events and this patch now makes it possible.
Your pull request should…

[x] have a concise title
[x] close an accompanying issue if one exists
[x] be against the correct branch
[x] include migration scripts and documentation, if appropriate
[x] pass automated tests
[x] have a clean commit history
[x] have proper commit messages (title and body) for all commits

How about making this configurable?

I don't think that's a good idea. Assuming it's allowed by default, users would probably complain if they disallow that and then the user interface starts misbehaving, and your log gets spammed by errors. I don't want to build something like that. And that is apart from this working different in different Opencast's being quite confusing.

I know we discussed this in the technical meeting, but I don't remember the resolution.  This can/will cause issues with CAs which allow for editing metadata in the classroom (c.f Galicaster).  Were we just going to ignore that any let the user deal with conflicting metadata?

Such a CA can always overwrite Opencast's metadata. What we have now is just a partial protection against conflicts by basically disallowing anyone on the server side to edit metadata via the admin interface by breaking the interface during that period (backend will return an error; the interface is not doing anything and giving no proper feedback). From a user's perspective, I think this just looks broken. As I mentioned, it's also only a partial protection since we don't know when the agent last requested its data, so if you actually want to protect against conflicts which can occur due to capture agents overwriting the data, you would need to lock this once a capture agent has requested the data for the first time.
Long story short, I'm in favor for applying this patch.
That said, I don't feel that strongly about this and if you all rather live with no editing capabilities and a partially broken user interface, I'm fine with that. Just decline this. I won't get angry about that. In the end, it's just an edge case anyway, and people will not that often edit metadata past the event's start date.
One thing I do feel strongly about is making this configurable. That, I think, is just confusing for users and capture agent vendors and feels unnecessary.

This sounds like a reasonable change then.  Strongly agree with not making this configurable.  I suspect the intersection between adopters who edit metadata that close to a recording, and adopters who both have Galicaster and expose its UI to their users and those users make changes is... small.  If this becomes an issue further on then we can have a larger discussion, but in the meantime this resolves a UI oddity.


Orchard.OpenId module is broken

After checking out head of master, requesting a token using Password flow I get the following exception:
2017-05-25 22:40:18.3395|1|Microsoft.AspNetCore.Hosting.Internal.WebHost|INFO|Request starting HTTP/1.1 POST http://localhost:2918/Orchard.OpenId/Access/Token application/x-www-form-urlencoded 183
2017-05-25 22:40:18.3395|1|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|DEBUG|POST requests are not supported
2017-05-25 22:40:18.3395|0|Microsoft.AspNetCore.Modules.ModularTenantRouterMiddleware|INFO|Begin Routing Request
2017-05-25 22:40:18.3395|1|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|DEBUG|POST requests are not supported
2017-05-25 22:40:18.3395|1|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|DEBUG|POST requests are not supported
2017-05-25 22:40:18.3395|1|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|DEBUG|POST requests are not supported
2017-05-25 22:40:18.3395|1|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|DEBUG|POST requests are not supported
2017-05-25 22:40:18.3395|1|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|DEBUG|POST requests are not supported
2017-05-25 22:40:18.4695|0|AspNet.Security.OpenIdConnect.Server.OpenIdConnectServerMiddleware|INFO|The token request was successfully extracted from the HTTP request: {
  "grant_type": "password",
  "username": "admin",
  "password": "[removed for security reasons]",
  "client_id": "distribb2b",
  "client_secret": "[removed for security reasons]",
  "scope": "openid offline_access profile roles",
  "resource": "http://localhost:2918"
}.
2017-05-25 22:40:18.5532|0|AspNet.Security.OpenIdConnect.Server.OpenIdConnectServerMiddleware|INFO|The token request was successfully validated.
2017-05-25 22:40:18.8607|0|Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware|ERROR|An unhandled exception has occurred while executing the request Method not found: 'System.String AspNet.Security.OpenIdConnect.Extensions.OpenIdConnectExtensions.GetTicketId(Microsoft.AspNetCore.Authentication.AuthenticationTicket)'.
2017-05-25 22:40:19.0033|9|Microsoft.AspNetCore.Server.Kestrel|DEBUG|Connection id "0HL53LOQO8UC0" completed keep alive response.
2017-05-25 22:40:19.0033|2|Microsoft.AspNetCore.Hosting.Internal.WebHost|INFO|Request finished in 664.0814ms 500 text/html; charset=utf-8

@PinpointTownes does have changed sth in OpenIdConnect that explains this problem?

The ASOS 1.0.0 RTM package that was published to NuGet.org slightly differs from the one we were testing on MyGet.org.
To fix this issue, remove the aspnet-contrib packages from your global packages folder, as indicated in http://kevinchalet.com/2017/05/08/aspnet-security-openidconnect-server-1-0-0-general-availability/.


ScrollController not attached to any scroll views. (Exception caught by gesture)

Steps to Reproduce

When the exception was thrown, this was the stack:
#2      ScrollController.animateTo (package:flutter/src/widgets/scroll_controller.dart:150:12)
#3      _categoriesListView... (package:.dart:1213:59)
#4      State.setState (package:flutter/src/widgets/framework.dart:1148:30)
#5      categoriesListView..
#6      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
...
Handler: "onTap"
Recognizer: TapGestureRecognizer#643d5
debugOwner: GestureDetector
state: ready
won arena
finalPosition: Offset(247.3, 248.3)
finalLocalPosition: Offset(68.2, 168.3)
button: 1
sent tap down
Expected results:
Actual results:

Logs

[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.2 19C57, locale en-GB)
• Flutter version 1.12.13+hotfix.9 at /Users/tossdown/flutter
• Framework revision f139b11009 (8 weeks ago), 2020-03-30 13:57:30 -0700
• Engine revision af51afceb8
• Dart version 2.7.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/tossdown/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3, Build version 11C29
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] Connected device (1 available)
• Iphone X • A67297B3-72BD-4156-A0C1-496D0D2415CB • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
• No issues found!

Hi @alisidhu
You may also get some help if you post it on Stack Overflow together with reproducible code sample.
Closing, as this looks like an issue with your code and not with Flutter itself,
if you disagree please write in the comments and I will reopen it


Add Hue Centura Spot

Device information

Hue Centura Spot Set of 3
https://static.digitecgalaxus.ch/Files/6/6/0/1/5/0/5/2/8719514342880_datenblatt.pdf
Home Assistant Device information

Hue Centura spot<PHONE_NUMBER>01_01)
by Signify Netherlands B.V.
Hue Centura spot<PHONE_NUMBER>01_02)
by Signify Netherlands B.V.
Hue Centura spot<PHONE_NUMBER>01_03)
by Signify Netherlands B.V.
Checklist

[x] I have created a single PR per device. When you have multiple submissions please create separate PR's.
[x] For lights - I have only included the gzipped files (*.gz), not the raw CSV files.
[x] For lights - I have provided a CSV file per supported color mode. Look that up in Developer Tools -> States

Additional info

measured with Shelly 1PM
measured as multi light (3x)
base load - generic LED lamp (6.37 W)

I have finally found the template. Sorry for the previously submitted PR

I have finally found the template. Sorry for the previously submitted PR

Great!

These spots are controlled individually, right? So you have 3 light entities in HA.
If yes, you did specify number of lights as 3 in the measure tool, right? So the measurements are representing a single light.

I have 3 of the set of 3.
In each set, the lamps are labelled _01, _02 and _03 in the ID.
I have measured 3 lamps each (according to their ID).
In the script: MULTIPLE_LIGHTS=true and NUM_LIGHTS=3.
All three measurement runs had the same power values.
So yes, the measurement results represent the values of one light.

These spots are controlled individually, right? So you have 3 light entities in HA. If yes, you did specify number of lights as 3 in the measure tool, right? So the measurements are representing a single light.

I have 3 of the set of 3.
In each set, the lamps are labelled _01, _02 and _03 in the ID.
I have measured 3 lamps each (according to their ID).
In the script: MULTIPLE_LIGHTS=true and NUM_LIGHTS=3.
All three measurement runs had the same power values.
So yes, the measurement results represent the values of one light.

Thanks


Performance Benchmark Suite

Results to be gathered and stored for every release
http://labs.carrotsearch.com/junit-benchmarks.html

As per link, move to:

http://openjdk.java.net/projects/code-tools/jmh/

See comment for further improvements needed:

https://github.com/DozerMapper/dozer/pull/431#issuecomment-308235977


refine helm which connect tiller using node port - [closed]

In GitLab by @tmon546596046 on Mar 19, 2019, 08:19
Merges tillerconnect -> dev
now the helm connect tiller using tiller service node port. And tiller service node port is configurable

In GitLab by @wknet123 on Nov 13, 2019, 11:39
The test coverage for backend is %  38.96%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:39
closed


Extension is not apparently operating

VSCode info:
Version: 1.56.2 (system setup)
Commit: 054a9295330880ed74ceaedda236253b4f39a335
Date: 2021-05-12T17:13:13.157Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19042

Extension info:
Voice Assistant
b4rtaz.voice-assistant
Version 0.1.1
Installed, with default settings and a voice-assistant.json file in the root folder of the project.

Steps taken:
Start VSCode with the extension installed and bring up the command palette.
Type "Reload definition" and see that it appears in the menu.
Choose it. Get the following error message:

Command 'Reload definition' resulted in an error (command 'voiceAssistant.reloadDefinition' not found)

Output on VoiceAssistantServer during this time:
VoiceAssistant.Server <IP_ADDRESS>
10:55:28 PM Listening on localhost:9999...

VSCode never attempts to connect based on what the log shows.
Troubleshooting steps:
Reinstall the extension and make sure to set all parameters to default.
Connect to localhost:9999 in a web browser to confirm it's responsive on that port. Which it is.
Check firewall settings. No issues there, manually added VoiceAssistantServer to be 100% sure.

This error appears when you have not opened any folder. Try open some project by File > Open folder. I'll fix this later.

That doesn't seem to have helped-- either loading the workspace or directly just opening a single folder, it gives the same error.

@Firehawke where you have files of your project? Locally? Or by FTP?

I've just released 0.1.2 version. I've changed file system access method to vscode.workspace.fs.

It's on my PC. but a few of the workspace folders were from WSL2 mounted at the L: drive-- this was done because while some of the scripting requires Linux-side work, actual compilation needs to be done from Windows.
I'll update and take another look.

No change. Server is running in the background but no attempt to connect was made.

Could you check your VSC console? I think you should have there some error. Help > Toggle developer tools.

You may also try to open a single folder (on your PC) and restart VSC.

Here's a re-run using the workspace:

Here's a re-run using just the folder:

I don't have any next ideas. Are you sure that do you have 0.1.2 version? Basically you may download this repository and run the extension in debug mode.