logging loss bug when accumulate_grad_batches >= 1

🐛 Bug

When  accumulate_grad_batches >= 1, logging loss is divided by accumulate_grad_batches.
For example, when accumulate_grad_batches=1, logging loss is 4; when accumulate_grad_batches=2, loss is 2; accumulate_grad_batches=4, loss is 1
Expected behavior

logging loss should be similar no matter accumulate_grad_batch is any number.
Environment

PyTorch Version (e.g., 1.0): nightly
OS (e.g., Linux): Linux
How you installed PyTorch (conda, pip, source): pip
Build command you used (if compiling from source):
Python version: 3.6
CUDA/cuDNN version: 10.2
GPU models and configuration:
Any other relevant information:

Additional context

Fixed in #2738


Styling on multiple occurrence

Hi
i have an issue when i put multiple countdown occurrences and when i want to style one of them.
If i change the color of the "Hour" text label, it will change all the "Hour" text labels instead of the selected one only.
I think this the class css which is updated instead of the element id css.
How can i fix that ?
regards

You have to use this option https://grapesjs.com/docs/modules/Selectors.html#component-first-selectors


⚠ Bofrost.be has degraded performance

In f30c7ec, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1715 ms

Resolved: Bofrost.be performance has improved in 8b58ff0.


fix: resolve HTTP_2 endpoint behind nginx

From HTTP_2 RFC:
To ensure that the HTTP/1.1 request line can be reproduced
accurately, this pseudo-header field MUST be omitted when
translating from an HTTP/1.1 request that has a request target in
origin or asterisk form (see [RFC7230], Section 5.3).  Clients
that generate HTTP/2 requests directly SHOULD use the :authority
pseudo-header field instead of the Host header field.  An
intermediary that converts an HTTP/2 request to HTTP/1.1 MUST
create a Host header field if one is not present in a request by
copying the value of the :authority pseudo-header field.
We can trust Vertx to add the :authority pseudo-header instead of the Host header.
gravitee-io/issues#6719

🚀 CI was able to deploy the build of this PR, so you can now try it directly here
Notes: The deployed app is linked to the management API of APIM master. (Same login and password as APIM master)

Replaced by https://github.com/gravitee-io/gravitee-api-management/pull/2064


Crash when placing Gas Generator

MC crashes when I place a gas generator.  So far it has crashed every time I try to place it.  Using forge 1291 and MEK <IP_ADDRESS>.  It was being placed next to an electrolytic separator.  When I start back up the generator is placed and still in my inventory.
---- Minecraft Crash Report ----
// Oh - I know what I did wrong!
Time: 3/11/15 6:05 AM
Description: Unexpected error
java.lang.NullPointerException: Unexpected error
at mekanism.generators.common.tile.TileEntityGasGenerator.readSustainedData(TileEntityGasGenerator.java:327)
at mekanism.generators.common.item.ItemBlockGenerator.placeBlockAt(ItemBlockGenerator.java:177)
at net.minecraft.item.ItemBlock.func_77648_a(ItemBlock.java:103)
at net.minecraft.item.ItemStack.func_77943_a(ItemStack.java:129)
at net.minecraft.client.multiplayer.PlayerControllerMP.func_78760_a(PlayerControllerMP.java:360)
at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1435)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1941)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:961)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:286)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:376)
at org.multimc.EntryPoint.listen(EntryPoint.java:165)
at org.multimc.EntryPoint.main(EntryPoint.java:54)
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Stacktrace:
at mekanism.generators.common.tile.TileEntityGasGenerator.readSustainedData(TileEntityGasGenerator.java:327)
at mekanism.generators.common.item.ItemBlockGenerator.placeBlockAt(ItemBlockGenerator.java:177)
at net.minecraft.item.ItemBlock.func_77648_a(ItemBlock.java:103)
at net.minecraft.item.ItemStack.func_77943_a(ItemStack.java:129)
at net.minecraft.client.multiplayer.PlayerControllerMP.func_78760_a(PlayerControllerMP.java:360)
at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1435)
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['snoopydude48'/30, l='MpServer', x=1884.70, y=65.62, z=3176.94]]
Chunk stats: MultiplayerChunkCache: 441, 450
Level seed: 0
Level generator: ID 04 - BIOMESOP, ver 0. Features enabled: false
Level generator options:
Level spawn location: World: (889,64,1068), Chunk: (at 9,4,12 in 55,66; contains blocks 880,0,1056 to 895,255,1071), Region: (1,2; contains chunks 32,64 to 63,95, blocks 512,0,1024 to 1023,255,1535)
Level time: 856438 game time, 947627 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: survival (ID 0). Hardcore: false.  Unsupported mods in environment: optifine
ThermalFoundation: -[1.7.10]1.0.0RC3-56
ThermalExpansion: -[1.7.10]4.0.0RC2-129
MineFactoryReloaded: -[1.7.10]2.8.0RC7-71
ThermalDynamics: -[1.7.10]1.0.0RC2-77
Stencil buffer state: Function set: GL30, pool: forge, bits: 2
AE2 Integration: IC2:OFF, RotaryCraft:OFF, RC:OFF, BC:ON, MJ6:OFF, MJ5:OFF, RF:ON, RFItem:ON, MFR:ON, DSU:ON, FZ:OFF, FMP:ON, RB:OFF, CLApi:OFF, Waila:ON, InvTweaks:ON, NEI:ON, CraftGuide:OFF, Mekanism:ON, ImmibisMicroblocks:OFF, BetterStorage:OFF
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: AMD Radeon HD 6900 Series GL version 4.4.13283 Compatibility Profile Context 14.501.1003.0, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: [Faithful 32 for FTB 1.7.10.zip]
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

Has been fixed, update Mekanism :)

I just updated to <IP_ADDRESS> and it is still happening

I updated to <IP_ADDRESS> but I still have the same crash.
On Wed, Mar 11, 2015 at 12:02 PM, Aidan<EMAIL_ADDRESS>wrote:

Has been fixed, update Mekanism :)
—
Reply to this email directly or view it on GitHub
https://github.com/aidancbrady/Mekanism/issues/2196#issuecomment-78293643
.


Fixed compilation for dmd 2.067

Since there will no functional changes after DMD 2.067b4, I think this patch would also work for DMD 2.067 final when it is out.

I use this PR branch until #30 persists

Thank you Anton !

:+1:

Thanks, merging.


Support Windows: MSVC on windows and WSL.

Describe your problem
The WSL2 should be trivial to support since it is a Linux running inside the virutal machine. But natively supporting Windows looks chanllanging:

[ ] we may need to make upstream dependecies (etcd-cpp-apiv3, etc.) to support windows first.
[ ] sharing a file descriptor over IPC socket may require a totally different codepath on Windows.

But this does worth a try.
Additional context
Such effort could be backported to apache-arrow as well.

WSL is confrimed as worked as expected.

not working for WSL1...

not working for WSL1...

Thanks for the feedback. I will take a try.

not working for WSL1...

Will be addresses by https://github.com/v6d-io/v6d/pull/1519 and released today.


Feat/add basic ngrok auth

The problem
Users are unable to set basic user/pass on their Ngrok tunnels.
What your code solves
My code takes advantage of the Ngrok feature to enable basic user:pass authentcation on HTTP tunnels.
How you fixed it
I added an additional switch-toggle (only available when users provide their own Ngrok auth key) that when enabled, prompts for user/pass with 2 text boxes. Once the user clicks the button Enable Ngrok Auth it adds  the additional user:pass to the ngrok connection opts and reloads the connection
Notes:

I'm having difficulty sizing the svg next to the ngrok password textbox
This change is only half of the solution, the client side must be modified as well!

I'm having difficulty sizing the svg next to the ngrok password textbox

Do you have a screenshot of what it looks like in the current state?

This change is only half of the solution, the client side must be modified as well!

I'm glad you recognize this. I will leave this PR open until there is a stable release containing code on the client side to support it. We probably need to do a few things client side:

Make the toggle for basic auth show on the setup screen & add required user/pass text fields
Add the toggle for basic auth to the server settings, along with required user/pass text fields (when enabled)
API detection to "figure out" if basic auth is enabled, but not enabled on the client side. Show an error or warning if that's the case.

Hey, so i did a complete server rewrite. If you'd still like this implemented, can you update your PR? I think you'll find the new UI to be much easier to work with too :)

Thanks for the FYI! I would be happy to. Sorry this is taking so long- I'm struggling to  on the client side. I can't seem to get the dart socket_io client to authenticate against a tunnel with basic auth. I created a small dart test file with the same socket_io library and it can authenticate without issue. I'll raise this in the discord when I am in a good spot again.

Hey, so i did a complete server rewrite. If you'd still like this implemented, can you update your PR? I think you'll find the new UI to be much easier to work with too :). The code is in the development branch btw

Thanks for the FYI @zlshames ! I would be happy to. Sorry this is taking so long- I'm struggling to  on the client side. I can't seem to get the dart socket_io client to authenticate against a tunnel with basic auth. I created a small dart test file with the same socket_io library and it can authenticate without issue. I'll raise this in the discord when I am in a good spot again.


Groups Tab Option

Kindly don't add groups tab option in Kiwi Browser by default because latest chrome using Groups Tab by default even we can't change or remove in settings, It's very annoying, Kindly make update but we recommend you to add everything optional like a perfect application.
User can change everything on demand. One more request please add a custom color picker bar in theme section for making full ui colorful like we can select any color for kiwi browser instead of white and black theme. Everyone will like these perfect features and i want to make Kiwi Browser Always as a perfect adfree browser 💕. Thanks

You can change to other Tab Switcher layouts , including old vertical/horizontal from previous Kiwi

Hello,
Yes, Kiwi listened, offers the possibility to switch to an old-school tabswitcher :)

Regarding browser color, you can customize it using https://github.com/d3ward/mti


MAINT: upgrade integration of new data stores and writer apps

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
11 unchanged lines in 5 files lost coverage.
Overall coverage decreased (-0.05%) to 91.71%

Files with Coverage Reduction
New Missed Lines
%

.nox/test-3-10/Lib/site-packages/cogent3/app/composable.py
1
92.42%

.nox/test-3-10/Lib/site-packages/cogent3/maths/matrix_exponential_integration.py
1
92.98%

.nox/test-3-10/Lib/site-packages/cogent3/app/data_store_new.py
3
95.5%

.nox/test-3-10/Lib/site-packages/cogent3/app/io_new.py
3
94.88%

.nox/test-3-10/Lib/site-packages/cogent3/maths/scipy_optimize.py
3
84.14%

Totals

Change from base Build<PHONE_NUMBER>:
-0.05%

Covered Lines:
180113

Relevant Lines:
196394

💛  - Coveralls


Issue with the local media and ytmusic

The queue content was changed which prevent it from autoplay in local media.
Original URI  file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Anbae_Peranbae.mp3
Changed URI file:///music/MusicBox/Music/Best%2520Tamil%2520Songs%25202020-2021%2520%25E2%2599%25AB%2520Tamil%2520New%2520Music%25202020/Anbae_Peranbae.mp3
The error  popped was WARNING  [FileBackend-12] mopidy.file.library Failed looking up file:///music/MusicBox/Music/Best%2520Tamil%2520Songs%25202020-2021%2520%25E2%2599%25AB%2520Tamil%2520New%2520Music%25202020/Anbae_Peranbae.mp3: gst-resource-error-quark: Resource not found. (3)
ERROR    [MainThread] mopidy.audio.gst GStreamer error: Resource not found.
When it comes to ytmusic
The queue becomes empty with the following error
WARNING  [AutoplayFrontend-21] mopidy_autoplay.frontend Autoplay: Could not get tracklist index 0: list index out of range
I think there is something wrong while creating the restore playlist.

Looks like one of those problems: https://stackoverflow.com/questions/16084935/a-html-space-is-showing-as-2520-instead-of-20
Could you please post your autoplay.state here, so that we can have a look, if this occurs during saving or reading. (The exact file location depends on your installation, but start looking in /var/lib/mopidy/autoplay.)

Here is the autoplay.state file content
cat /var/lib/mopidy/autoplay/autoplay.state
{"tracklist": {"uris": ["file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Anbae_Peranbae.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Andra_-Love_Can_Save_It_All_Official_Video.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Andra-Shukar.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Asuran-Blood_Bath_Lyric_Video_Dhanush_Vetri_Maaran_G_V_Prakash_Kalaippuli_S_Thanu.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Asuran-Ellu_Vaya_Pookalaye_Lyric_Video_Dhanush_Vetri_Maaran_G_V_Prakash_Kalaippuli_S_Thanu.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Asuran-Kannazhagu_Rathiname_Lyric_Video_Dhanush_Vetri_Maaran_GV_Prakash_Kalaippuli_S_Thanu.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Asuran-Kathari_Poovazhagi_Video_Song_Dhanush_Vetri_Maaran_G_V_Prakash_Kalaippuli_S_Thanu.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Asuran-Polladha_Boomi_Video_Song_Dhanush_Vetri_Maaran_G_V_Prakash_Kalaippuli_S_Thanu.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Asuran-Yen_Minukki_Lyric_Video_Dhanush_Vetri_Maaran_G_V_Prakash_Kalaippuli_S_Thanu.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Bigil-Singappenney_Video_Thalapathy_Vijay_Nayanthara_A.R_Rahman.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Bigil-Unakaga_Official_Lyric_Video_Thalapathy_Vijay_Nayanthara_A.R_Rahman_Atlee_AGS.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Bigil-Unakaga_Video_Thalapathy_Vijay_Nayanthara_A.R_Rahman.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Bigil-Verithanam_Lyric_Video_Tamil_Thalapathy_Vijay_Nayanthara_A.R_Rahman_Atlee_AGS.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Bigil-Verithanam_Video_Thalapathy_Vijay_A.R_Rahman_Atlee.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Chill_Bro_Lyrical_Video_Pattas_Dhanush_Vivek-Mervin_Sathya_Jyothi_Films.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Chill_Bro_Video_Song_Pattas_Dhanush_Vivek-Mervin_Sathya_Jyothi_Films.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Comali-Hi_Sonna_Podhum_Video_Jayam_Ravi_Samyuktha_Hegde_Hiphop_Tamizha.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Comali-Oliyum_Oliyum_Video_Jayam_Ravi_Kajal_Aggarwal_Hiphop_Tamizha.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Comali-Paisa_Note_Video_Jayam_Ravi_Kajal_Aggarwal_Hiphop_Tamizha.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/DARBAR_Tamil-Chumma_Kizhi_Lyric_Video_Rajinikanth_AR_Murugadoss_Anirudh_Subaskaran.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/DARBAR_Tamil-Chumma_Kizhi_Video_Song_Rajinikanth_AR_Murugadoss_Anirudh_Subaskaran.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/DARBAR_Tamil-Dumm_Dumm_Video_Song_Rajinikanth_AR_Murugadoss_Anirudh_Subaskaran.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/DARBAR_Tamil-Tharam_Maara_Single_Video_Song_Rajinikanth_AR_Murugadoss_Anirudh.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Devarattam_Madura_Palapalakkuthu_Video_Song_Gautham_Karthik_Muthaiya_Nivas_K_Prasanna.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Devarattam_Pasappukkalli_Video_Song_Gautham_Karthik_Manjima_Mohan_Muthaiya_Nivas_K_Prasanna.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Dheera_Dheera_Full_Video_Song_KGF_Tamil_Movie_Yash_Prashanth_Neel_Hombale_Films_Ravi_Basrur.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/GaandaKannazhagi-Lyric_Video_Namma_Veettu_Pillai_Sivakarthikeyan_SunPictures_Pandiraj_D.Imman.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/GaandaKannazhagi-Video_Song_Namma_Veettu_Pillai_Sivakarthikeyan_SunPictures_Pandiraj_D.Imman.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Gaandu_Kannamma_Vivek-Mervin_Ku_Karthik.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Gumbala_Suthuvom_Friend_Song_Chemmangeri_Gana_Stephen_Praba_Brothers_Media.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Inayae_Full_Video_Song_Thadam_Arun_Vijay_Sid_Sriram_Madhan_Karky_Magizh_Thirumeni_Arun_Raj.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Ispade_Rajavum_Idhaya_Raniyum_Kannamma_Video_Song_Harish_Kalyan_Shilpa_Manjunath_Sam_C.S.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/JAY1_ft.JB_Scofield_Flex_Official_Video.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Jigidi_Killaadi_Full_Video_Pattas_Dhanush_Anirudh_Vivek-Mervin_Sathya_Jyothi_Films.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Jigiri_Dosthu-Video_Song_Namma_Veettu_Pillai_Sivakarthikeyan_Sun_Pictures_D.Imman_IPandiraj.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Kaappaan-_Hey_Amigo_Video_Suriya_Sayyeshaa_Harris_Jayaraj_K.V.Anand.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Kaappaan-_Siriki_Video_Suriya_Sayyeshaa_Harris_Jayaraj_K_V_Anand.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Kadaram_Kondan_Thaarame_Thaarame_Lyrical_Song_Abi_Hassan_Akshara_Haasan_Sid_Sriram_Ghibran.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Kadhal_Psycho_Saaho_Tamil_Prabhas_Shraddha_Kapoor_Tanishk_Bagchi_Dhvani_Bhanushali_Anirudh.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Kalavani_2_Ottaram_Pannatha_Video_Song_Vimal_Oviya_A.Sarkunam.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Kanne_Kanne_Full_Video_Song_Ayogya_Anirudh_Ravichander_Vishal_Raashi_Khanna_Sam_CS.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Mailaanji-Full_Video_Song_Namma_Veettu_Pillai_Sivakarthikeyan_Sun_Pictures_Pandiraj_D.Imman.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Mailaanji_Lyric_Video-Namma_Veettu_Pillai_Sivakarthikeyan_Sun_Pictures_Pandiraj_D.Imman.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Master-Kutti_Story_Lyric_Thalapathy_Vijay_Anirudh_Ravichander_Lokesh_Kanagaraj.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Morattu_Thamizhan_Da_Lyrical_Video_Pattas_Dhanush_Vivek-Mervin_Sathya_Jyothi_Films.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Morattu_Thamizhan_Da_Video_Song_Pattas_Dhanush_Vivek-_Mervin_Sathya_Jyothi_Films.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Mr.Local_Takkunu_Takkunu_Video_Song_Sivakarthikeyan_Nayanthara_Hiphop_Tamizha_M.Rajesh.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/NGK-Anbae_Peranbae_Video_Suriya_Yuvan_Shankar_Raja_Selvaraghavan.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Naan_Kudikka_Poren-_Ratty_Adhiththan_feat.Sahi_Siva_Official_Music_Video_Fly_Vision.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Naan_Sirithal_Ajukku_Gumukku_Song_Lyric_Video_Hiphop_Tamizha_Iswarya_Menon_Sundar_C_Raana.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Naan_Sirithal_Breakup_Video_Song_Hiphop_Tamizha_Iswarya_Menon_Sundar_C_Raana.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Naan_Sirithal_Dhom_Dhom_Song_Lyric_Video_Hiphop_Tamizha_Iswarya_Menon_Sundar_C_Raana.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Nanbanukku_Koila_Kattu_Video_Song_Kanchana_3_Raghava_Lawrence_Saravedi_Saran_Sun_Pictures.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Natpe_Thunai_Kerala_Video_Song_HipHop_Tamizha_Anagha_Sundar_C.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Natpe_Thunai_Morattu_Single_Video_Song_Hiphop_Tamizha_Anagha_Sundar_C.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Natpe_Thunai_Vengamavan_Video_Song_Hiphop_Tamizha_Anagha_Sundar_C.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Oh_My_Kadavule-Haiyo_Haiyo_Music_Video_Ashok_Selvan_Ritika_Singh_Leon_James.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Oh_My_Kadavule-Kadhaippoma_Lyric_Ashok_Selvan_Ritika_Singh_Leon_James_Sid_Sriram.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Papara_Mittai_Video_song_R_K_Nagar_Premgi_Amaran_Vaibhav_Sana_Althaf_Gana_Guna_Tamil_Gana.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Piriyadha_Enna_Lyrical_Video_Pattas_Dhanush_Sneha_Vivek-Mervin_Sathya_Jyothi_Films.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Psycho-Neenga_Mudiyuma_Lyric_Udhayanidhi_Stalin_Ilayaraja_Mysskin_Aditi_Rao_Hydari.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Psycho-Thaaimadiyil_Lyric_Udhayanidhi_Stalin_Ilayaraja_Mysskin_Kailash_Kher.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Psycho-Unna_Nenachu_Video_Udhayanidhi_Stalin_Aditi_Rao_Hydari_Ilayaraja.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Pularaadha_Video_Song_Dear_Comrade_Tamil_Vijay_Deverakonda_Rashmika_Bharat.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Sangathamizhan-Kamala_Video_Vijay_Sethupathi_Raashi_Khanna_Vivek-Mervin.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Sangathamizhan-Sandakari_Neethan_Video_Vijay_Sethupathi_NivethaPethuraj_Anirudh_Vivek-Mervin.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Sarkar-Top_Tucker_Official_Video_Thalapathy_Vijay_A.R.Rahman_A.R_Murugadoss.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Sivappu_Manjal_Pachai_Aazhi_Soozhndha_Video_G.V.Prakash_Kumar_Lijomol_Sasi_Siddhu_Kumar.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Sivappu_Manjal_Pachai_Idhudhaan_Video_Song_G.V.Prakash_Kumar_Kashmira_Sasi_Siddhu_Kumar.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Sivappu_Manjal_Pachai_Mayilaanjiye_Video_Song_Siddharth_G.V.Prakash_Kumar_Sasi_Siddhu_Kumar.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Soorarai_Pottru-Veyyon_Silli_Lyric_Suriya_G.V.Prakash_Kumar_Sudha_Kongara.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Thaarame_Thaarame_Video_Song_Kadaram_Kondan_Abi_Hassan_Akshara_Haasan_Sid_Sriram_Ghibran.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/The_Life_Of_Ram_Full_Video_Song_Jaanu_Video_Songs_Sharwanand_Samantha_Govind_Vasantha.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Unkoodave_Porakkanum-Video_Song_Namma_Veettu_Pillai_Sivakarthikeyan_Sun_Pictures_D.Imman.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Uriyadi_2-Vaa_Vaa_Penne_Video_Tamil_Vijay_Kumar_Govind_Vasantha.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Yaen_Ennai_Pirindhaai_Video_Song_Adithya_Varma_Songs_Dhruv_Vikram_Banita_Sandhu_Gireesaaya_Radhan.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Yenga_Annan-Lyric_Video_Namma_Veettu_Pillai_Sivakarthikeyan_Sun_Pictures_Pandiraj_D.Imman.mp3", "file:///music/MusicBox/Music/Best%20Tamil%20Songs%202020-2021%20%E2%99%AB%20Tamil%20New%20Music%202020/Yenga_Annan-_Official_Video_Song_Namma_Veettu_Pillai_Sivakarthikeyan_Sun_Pictures.mp3"], "index": 29, "consume": false, "random": true, "repeat": false, "single": false}, "mixer": {"mute": false, "volume": 15}, "playback": {"state": "playing", "time_position": 7132}}

Thanks. Now that I know, that the problem comes after loading that file, it was quite easy to figure out, what is going wrong.
If you are confident editing Python files, please change these two files in mopidy_autoplay/frontend.py (if you have installed it with pip, you will find this file in /usr/local/lib/python3.7/dist-packages/ – replace with your python version):
Line 154:
                        [f'file://{urllib.parse.quote(f)}'

becomes
                        [f'file://{f}'

and line 168:
                uris.append(f'{scheme}://{urllib.parse.quote(location)}')

becomes
                uris.append(f'{scheme}://{location}')

Otherwise wait for a new release (which might take a couple of days).

Oops, It was not updating the /var/lib/mopidy/autoplay/autoplay.state, something was wrong.
Originally I added the local media in the queue, but the old YTMusic playlist was found in the /var/lib/mopidy/autoplay/autoplay.state and ended with an empty queue, but no error or warnings, and it stopped working.
I did revert to the original one, as the functionality of the plugin stopped completely.

It is better to wait for the update

Interesting. It works here, so there must be a typo somewhere. If you want to try it again, you have to replace those lines with the new contents, paying attention to only use spaces (and no tabs). And indentation is important; you must keep the same. Maybe it is easier to just delete urllib.parse.quote( and ). Then it should work!
If not, you can post your lines here in enclosed in `` or in a code block (use the button <>) and I can have a look.

I was wrong, as you said I used TAB instead of space. The local media starts working, but still the YTMusic was not working. The state file detail is given below
cat /var/lib/mopidy/autoplay/autoplay.state
{"tracklist": {"uris": ["ytmusic:track:ux9-_2SN1h0", "ytmusic:track:ZXhrv3WL4X4", "ytmusic:track:tVdr_JWmnsA", "ytmusic:track:wsHbHR3Os6U", "ytmusic:track:9C2TmwyUxco", "ytmusic:track:_tnyHbiuQAc", "ytmusic:track:x9xQZQn-3ok", "ytmusic:track:CbuLnJqUFLQ", "ytmusic:track:7tVmLQFedxc", "ytmusic:track:2lLBLjn3FCI", "ytmusic:track:cXmwRH2PuWk", "ytmusic:track:re0KCMqG28Y", "ytmusic:track:GtsDW4DXxhM", "ytmusic:track:K0FTGD0NCUI", "ytmusic:track:BprKN1ffH3k", "ytmusic:track:PyoJsKrb5N0", "ytmusic:track:u-H2PWF0dro", "ytmusic:track:N85i1iUI4nM", "ytmusic:track:VA5TkyqjAGo", "ytmusic:track:IyFizEee7vY", "ytmusic:track:fzazYtySgqY", "ytmusic:track:bMYozda85tY", "ytmusic:track:3BTr3dX6q2I", "ytmusic:track:ep9zgmN9BNA", "ytmusic:track:FPf2HvnJZ64", "ytmusic:track:JmYus30GnTw", "ytmusic:track:i4YV6Pp3_wM", "ytmusic:track:7oWN0HxIaAA", "ytmusic:track:B3RCkvR2mvk", "ytmusic:track:Gq4W7cKXnXQ", "ytmusic:track:yAPizvVugU0", "ytmusic:track:QiacO0UdLmg", "ytmusic:track:7Rk8rNgLZHo", "ytmusic:track:eWAISQyfaZM", "ytmusic:track:NUur1Hu8Wys", "ytmusic:track:ZsDHEgLIa_M", "ytmusic:track:XZqPxw-CE1k", "ytmusic:track:LkqXgR-b71k", "ytmusic:track:UOpR9k3WOdo", "ytmusic:track:U2L9otQDK-A", "ytmusic:track:tTxVmao5log", "ytmusic:track:Iyp8RcOy1ec", "ytmusic:track:8AHOL1b7MGU", "ytmusic:track:aK3B8Afjal8", "ytmusic:track:OACRMTx6bLk", "ytmusic:track:n1p8K7CdYVM", "ytmusic:track:dgPoRi08pFk", "ytmusic:track:MvGJLKKIXCA", "ytmusic:track:IFllQgTA5eU", "ytmusic:track:uYcDNDfzOsc", "ytmusic:track:UmJIy6BTD_c", "ytmusic:track:bJmH5Zdhdeo", "ytmusic:track:T1qoWjzprsM", "ytmusic:track:gJ1MbfTaA2M", "ytmusic:track:wyd9dP78s7M", "ytmusic:track:790lgFGKjns", "ytmusic:track:R60NQkzCHEg", "ytmusic:track:DPZWl1nOuTA", "ytmusic:track:dhP8Jx4kO5I", "ytmusic:track:LSYjaFixw4c", "ytmusic:track:FTrRUbTHWb0", "ytmusic:track:lII_sdBMFQg", "ytmusic:track:62G0WSnOp8Y", "ytmusic:track:_jxwQWVI-jA", "ytmusic:track:W7x5b13bJGs", "ytmusic:track:cwmzlqipq7Y", "ytmusic:track:jX6Bmoy4FFg", "ytmusic:track:8dTVieou00k", "ytmusic:track:wNcZ6SSq49Q", "ytmusic:track:2IQgJx05JxE", "ytmusic:track:pus9ipccNM0", "ytmusic:track:ZNAw3hCfgps", "ytmusic:track:cdatSSxYYfU", "ytmusic:track:omGxr4BnY5A", "ytmusic:track:Qu-j1T3fza4", "ytmusic:track:gtZw6TtflJI", "ytmusic:track:RwljyjvohSo", "ytmusic:track:SxJdLePvVDU", "ytmusic:track:wetUNl-C3II", "ytmusic:track:csHKCDyFsCI", "ytmusic:track:WVO8jT4lhg8", "ytmusic:track:9jfdNe7wE1A", "ytmusic:track:wGjhVLj-ytw", "ytmusic:track:ppqnhkXJILQ", "ytmusic:track:4rFzuc5Fhro", "ytmusic:track:IR8cPHfLuus", "ytmusic:track:DQNm-P_1VVY", "ytmusic:track:KBn9DfhijaA", "ytmusic:track:tVoJAiygqi4", "ytmusic:track:Wg2kHdUnZxw", "ytmusic:track:-3tWy0u6hGA", "ytmusic:track:1zOUvxOzxZM", "ytmusic:track:oeOyoRfm8BI", "ytmusic:track:0HkEm3bMx9M", "ytmusic:track:28GfCg-JKeE", "ytmusic:track:2fEnuda2Z5c", "ytmusic:track:NtjfRUBKvLc", "ytmusic:track:pGHgXiM4jV0", "ytmusic:track:N_P4dHiC0qo", "ytmusic:track:uzDHH2QzAGY"], "index": 0, "consume": false, "random": true, "repeat": false, "single": false}, "mixer": {"mute": false, "volume": 50}, "playback": {"state": "playing", "time_position": 19397}}p

Glad, that the file works now!
Regarding YTMusic: Have you read the caveats in https://pypi.org/project/Mopidy-Autoplay/ (and the discussion referenced)? If that is the reason for YTMusic not playing, I am afraid, there is nothing, what I can do. Sorry.

Thanks for your kind support.
The issue was not the same or similar which was mentioned in the discussion. It tries to load the queue but it ended up with a warning as follows.
WARNING  [AutoplayFrontend-24] mopidy_autoplay.frontend Autoplay: Could not get tracklist index 9: list index out of range
There must an issue in reading the ytmusic queue, but not with the youtube audio queue.

I see. Sorry, it completely escaped me, that we are actually dealing with two issues. I gather the problem with the  local files is sorted.
This is now about the second issue: YTMusic
I checked, where this error message comes from.
When starting Mopidy,

Autoplay gets the tracklist (queue) from the saved file.
It loads those tracks into Mopidy.
It also loads the index of the track, which was played, from the saved file.
It then asks Mopidy, for the track with that index.
If Mopidy does not have that many tracks, Autoplay writes this error message.

So this message tells us, that there are not enough tracks loaded into Mopidy. I can think of a couple of reasons:

There is an error in the saved file: There are not enough tracks in the file (in this case 10 minimum, because the index starts with 0).
Mopidy has not accepted the tracks.

Looking at the other examples you sent, it looks more like issue 2, since there are enough tracks saved. Here my guess is, that the YTMusic extension is not yet ready, when Autoplay uploads the tracks and Mopidy or YTMusic rejects them, because it does not know what to do with them. (See the discussion mentioned in my last post.)
I just noticed, that YTMusic needs you to log in with username and password. That takes probably some time and until then YTMusic will not be available to accept any tracks. (See the discussion mentioned in my last post.)
But to be absolutely sure:

Can you see the YTMusic tracks loaded into your tracklist/queue after restarting Mopidy?
Can you please send the log file up to that Autoplay error. It is quite hard to figure out, what is going on without seeing the whole log …

And please check in the logfile for any indication, when YTMusic managed to log in with user name and password. Thanks.

I am sorry for the confusion, It's my bad, instead of posting the issues separately I clubbed them in a single post.
The mopidy log is
-- Logs begin at Thu 2019-02-14 15:41:59 IST. --
Apr 11 18:46:18 MusicBox dleyna-server-service[9521]: Log Type : 0
Apr 11 18:46:18 MusicBox dleyna-server-service[9521]: Log Level: 0x13
Apr 11 18:46:18 MusicBox dleyna-server-service[9521]: [Network filtering settings]
Apr 11 18:46:18 MusicBox dleyna-server-service[9521]: Enabled : F
Apr 11 18:46:18 MusicBox dleyna-server-service[9521]: Entries: (null)
Apr 11 18:46:56 MusicBox mopidy[9496]: ERROR    [YTMusicBackend-3] mopidy_ytmusic YTMusic failed getting watch songs
Apr 11 18:46:56 MusicBox mopidy[9496]: Traceback (most recent call last):
Apr 11 18:46:56 MusicBox mopidy[9496]:   File "/usr/local/lib/python3.7/dist-packages/mopidy_ytmusic/library.py", line 184, in browse
Apr 11 18:46:56 MusicBox mopidy[9496]:     if track_id:
Apr 11 18:46:56 MusicBox mopidy[9496]: UnboundLocalError: local variable 'track_id' referenced before assignment
Apr 11 22:37:12 MusicBox systemd[1]: Stopping Mopidy music server...

Apr 11 22:37:12 MusicBox systemd[1]: Stopped Mopidy music server.
Apr 11 22:37:12 MusicBox systemd[1]: Starting Mopidy music server...
Apr 11 22:37:12 MusicBox systemd[1]: Started Mopidy music server.
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: dLeyna core version 0.4.0
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: dleyna-server-service version 0.4.0
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: Type[0] Level[0x13] Mask[0x4C] Flags[0x4F]
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: Load file [/root/.config/dleyna-server-service.conf]
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: [General settings]
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: Never Quit: F
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: Connector Name: dbus
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: [Logging settings]
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: Log Type : 0
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: Log Level: 0x13
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: [Network filtering settings]
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: Enabled : F
Apr 11 22:37:16 MusicBox dleyna-server-service[18809]: Entries: (null)
Apr 11 22:37:18 MusicBox mopidy[18779]: WARNING  [AutoplayFrontend-24] mopidy_autoplay.frontend Autoplay: Could not get tracklist index 9: list index out of range

Thanks. Can you please also answer the first question in https://github.com/sphh/mopidy-autoplay/issues/3#issuecomment-817346814:

1. Can you see the YTMusic tracks loaded into your tracklist/queue after restarting Mopidy?

and that one from https://github.com/sphh/mopidy-autoplay/issues/3#issuecomment-817379957:

What is the next mentioning of YTMusic in the log file.

(Please can you also enclose logs in triple backquotes to make them easier to read. Thanks)

The YTMusic issue was
The queue becomes empty with the following error
WARNING [AutoplayFrontend-21] mopidy_autoplay.frontend Autoplay: Could not get tracklist index 0: list index out of range
I think there is something wrong while creating the restore playlist.
The question I posted was
"""When it comes to ytmusic
The queue becomes empty with the following error
WARNING [AutoplayFrontend-21] mopidy_autoplay.frontend Autoplay: Could not get tracklist index 0: list index out of range
I think there is something wrong while creating the restore playlist."""
The log was  given below
Apr 13 06:03:17 MusicBox systemd[1]: Stopped Mopidy music server.
Apr 13 06:03:17 MusicBox systemd[1]: Starting Mopidy music server...
Apr 13 06:03:17 MusicBox systemd[1]: Started Mopidy music server.
Apr 13 06:03:23 MusicBox mopidy[18877]: INFO     [MainThread] mopidy.main Enabled extensions: simple-webclient, podcast, scrobbler, mpd, autoplay, m3u, file, dleyna, stream, bookmarks, local, websettings, mobile, mpris, moped, alarmclock, ytmusic, softwaremixer, http, podcast-itunes, youtube, musicbox_webclient, somafm
Apr 13 06:03:23 MusicBox mopidy[18877]: INFO     [MainThread] mopidy.main Disabled extensions: soundcloud, internetarchive, spotify, dirble, alsamixer, tidal, tunein
Apr 13 06:03:24 MusicBox mopidy[18877]: INFO     [MainThread] mopidy_autoplay Mopidy-Autoplay 0.2.1
Apr 13 06:03:24 MusicBox mopidy[18877]: INFO     [MainThread] mopidy.commands Starting Mopidy mixer: SoftwareMixer
Apr 13 06:03:24 MusicBox mopidy[18877]: INFO     [MainThread] mopidy.commands Mixer volume set to 85
Apr 13 06:03:24 MusicBox mopidy[18877]: INFO     [MainThread] mopidy.commands Starting Mopidy audio
Apr 13 06:03:24 MusicBox mopidy[18877]: INFO     [MainThread] mopidy.commands Starting Mopidy backends: YTMusicBackend, YouTubeBackend, SomaFMBackend, PodcastBackend, iTunesPodcastBackend, BookmarksBackend, FileBackend, M3UBackend, StreamBackend, LocalBackend, dLeynaBackend
Apr 13 06:03:24 MusicBox mopidy[18877]: INFO     [YouTubeBackend-6] mopidy_youtube using bs4API
Apr 13 06:03:24 MusicBox mopidy[18877]: INFO     [Audio-2] mopidy.audio.actor Audio output set to "alsasink"
Apr 13 06:03:24 MusicBox mopidy[18877]: INFO     [MainThread] mopidy_dleyna.backend Starting Mopidy-dLeyna D-Bus daemon
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: dLeyna core version 0.4.0
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: dleyna-server-service version 0.4.0
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: Type[0] Level[0x13] Mask[0x4C] Flags[0x4F]
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: Load file [/root/.config/dleyna-server-service.conf]
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: [General settings]
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: Never Quit: F
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: Connector Name: dbus
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: [Logging settings]
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: Log Type : 0
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: Log Level: 0x13
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: [Network filtering settings]
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: Enabled : F
Apr 13 06:03:24 MusicBox dleyna-server-service[18901]: Entries: (null)
Apr 13 06:03:25 MusicBox mopidy[18877]: INFO     [SomaFMBackend-7] mopidy_somafm.somafm Loaded 38 SomaFM channels
Apr 13 06:03:25 MusicBox mopidy[18877]: INFO     [MainThread] mopidy.commands Starting Mopidy core
Apr 13 06:03:25 MusicBox mopidy[18877]: INFO     [MainThread] mopidy.commands Starting Mopidy frontends: YTMusicScrobbleFE, YouTubeAutoplayer, ScrobblerFrontend, MopidyCoreListener, AutoplayFrontend, HttpFrontend, MprisFrontend, MpdFrontend
Apr 13 06:03:25 MusicBox mopidy[18877]: INFO     [HttpFrontend-24] mopidy.http.actor HTTP server running at [::ffff:<IP_ADDRESS>]:6680
Apr 13 06:03:25 MusicBox mopidy[18877]: INFO     [MainThread] mopidy_mpd.actor MPD server running at [::ffff:<IP_ADDRESS>]:6600
Apr 13 06:03:25 MusicBox mopidy[18877]: INFO     [MprisFrontend-26] mopidy_mpris.server MPRIS server connected to D-Bus system bus
Apr 13 06:03:25 MusicBox mopidy[18877]: WARNING  [AutoplayFrontend-22] mopidy_autoplay.frontend Autoplay: Could not get tracklist index 1: list index out of range
Apr 13 06:03:25 MusicBox mopidy[18877]: INFO     [MainThread] mopidy.commands Starting GLib mainloop
Apr 13 06:03:26 MusicBox mopidy[18877]: INFO     [MpdSession-31] mopidy_mpd.session New MPD connection from [::ffff:<IP_ADDRESS>]:59980
Apr 13 06:03:26 MusicBox mopidy[18877]: INFO     [Thread-5] mopidy_ytmusic YTMusic updated player URL to /s/player/2cea24bf/player_ias.vflset/en_US/base.js
Apr 13 06:03:26 MusicBox mopidy[18877]: INFO     [ScrobblerFrontend-19] mopidy_scrobbler.frontend Scrobbler connected to Last.fm
Apr 13 06:03:27 MusicBox mopidy[18877]: INFO     [MpdSession-34] mopidy_mpd.session New MPD connection from [::ffff:<IP_ADDRESS>]:59984
"""Apr 13 06:03:28 MusicBox mopidy[18877]: INFO     [Thread-4] mopidy_ytmusic YTMusic loaded 9 auto playlists sections
Apr 13 06:03:28 MusicBox mopidy[18877]: INFO     [Thread-4] mopidy_ytmusic YTMusic Auto Playlists refreshed in 4.20s"""
Apr 13 06:03:37 MusicBox mopidy[18877]: INFO     [MpdSession-56] mopidy_mpd.session New MPD connection from [::ffff:<IP_ADDRESS>]:59990
Apr 13 06:03:47 MusicBox mopidy[18877]: INFO     [MpdSession-77] mopidy_mpd.session New MPD connection from [::ffff:<IP_ADDRESS>]:59994

I think there is something wrong while creating the restore playlist.

Mopidy-Autoplay only works with the tracklist (aka queue). It never touches any playlist, so you might have to ask YTMusic, why playlists are not restored.
Regarding this problem:
Apr 13 06:03:25 MusicBox mopidy[18877]: WARNING [AutoplayFrontend-22] mopidy_autoplay.frontend Autoplay: Could not get tracklist index 1: list index out of range

Your log confirmed, that YTMusic is not ready when Mopidy-Autoplay loads the tracklist from the saved state. See this entry, which is comes later:
Apr 13 06:03:26 MusicBox mopidy[18877]: INFO [Thread-5] mopidy_ytmusic YTMusic updated player URL to /s/player/2cea24bf/player_ias.vflset/en_US/base.js

Hence this is the problem as discussed here and as I pointed out multiple times and you certainly have read. It is also mentioned under the "Caveats" section in the README. But in short: YTMusic takes a long time to start up, to connect to its server and to be ready. Before it is not ready, Mopidy will not accept any tracks starting with ytmusic:.
There is nothing Mopidy-Autoplay can do in this case. Sorry that you had higher expectations into it.
I'll make and upload a new release correcting the wrong encoding and writing a more verbose error message into the logs, whenever this problem occurs.
Thanks for supplying all those logs.

I thank you for your kind support and your valuable time in developing and maintaining this plugin.
I got your point, But still, I have a question. Is there is any chance that delays the autoplay playlist loading process for few seconds? If so the issues will be fixed for all the issues mentioned in discuss.

This would certainly be a workaround, but a very unreliable one. Hardcoding delays is never, ever a good idea! (Very big companies have been bitten by this …)

How would we know, how long we should wait?
What happens, if the internet connection becomes slow? The user will loose those tracks and does not know why, because it was working previously.
If the delay is on the borderline, it will sometimes work and sometimes it will not work. That's the worst scenario!
And finally it would prolong the playing of the first track, even if there is no remote track in the tracklist/queue.

Said that, I might implement it as an option (but I am afraid to say, an unsupported one, because of the problems mentioned above).
After re-reading the discussion, I noticed, that there might be some sort of a solution. If I interpret this correctly, it might be possible to load the tracks, even if the backend is not ready. Unfortunately I cannot test it, because I don't use any of those online music providers, so I have to rely on you!
I would need the following information from you (which I still don't know):

Are the YTMusic tracks showing up in the tracklist/queue, when you start Mopidy?

If not, can you please add a line around line 170:
        if uris:
            # Clear tracklist and add URIs
            self.core.tracklist.clear()
            self.core.tracklist.set_consume(False)  # <= add this line
            self.core.tracklist.add(uris=uris)

and restart Mopidy.

Do the YTMusic tracks now show up in the tracklist/queue with this line added?

Mind you, it is still not playing, but if that works as mentioned in the discussion, it would at least load the remote tracks, which is the first step.

Are the YTMusic tracks showing up in the tracklist/queue, when you start Mopidy? No, it is not.
Do the YTMusic tracks now show up in the tracklist/queue with this line added? No changes

I usually keep the consume mode off, and I added self.core.tracklist.set_consume(False)  but still I found no changes.
Your assumptions are technically correct, I am not a Python guy, but I can give you some suggestions which may help you to fix the issues. But it is no an immediate solution.

Make a list of the enabled and active services.
Consolidate the required services in Mopidy.
Check the status of every service enabled in Mopidy before loading the playlist.
Load only the items which are available (Dynamic). For example, youtube load faster than ytmusic, in that case just load the youtube content and later the ytmusic content.
Repeat the check un till the playlist loaded or the queue content changed by the user.
Probably you can implement this in the next version.

At this time, we can go with our suggestion. It will be a temporary fix.
Hope we are enjoying this healthy discussion.

Do the YTMusic tracks now show up in the tracklist/queue with this line added? No changes

Thanks for checking. That's a pity.
Regarding your proposal: Unfortunately that's not possible, since the author of Mopidy clearly states in the already often referenced discussion, that there is no way for Mopidy to know, if a backend has finished its initialization successfully. So there is no way for Autoplay to check the status of any service enabled in Mopidy. BTW when would Autoplay start playing? When all services are available? That could take forever. Will it play the next available track? What happens, if the originally selected, but not loadable, track becomes available? I believe it is not possible (but by all means, feel free to make a pull request with this feature!)
Have you noticed, that the built-in feature core/restore_state has the very same problem? Instead of investing time and effort to do a workaround, it would be better to invest this time and effort to tackle the problem at the root!
I know, that you desperately want this to work. Here is the way, how you can achieve it for yourself -- add the two additional lines:
[...]
import json
import pykka
import time  # <= new line

[...]
def on_state(self):
        """Called, when the extension is started."""
        logger.debug("on_start()")

        state = self.read_state(self.statefile)
        if state:
            time.sleep(10)  # <= new line, wait for 10 seconds before loading the tracklist
            self.restore_state(state)

(Have I mentioned, that this will be unsupported?)

You are correct in all the aspects. As you said it need to be investigated from the root. Let me try my level best. Will keep you updated.

It is not the problem with the loading of the playlist or the plugin, It is the problem with the URL generated by ytmusic. For example ytmusic:track:eYq7WapuDLU was in the playlist which was not recognized by the mopidy, the original URL was https://music.youtube.com/watch?v=eYq7WapuDLU. So possibly it might require a special fix from ytmusic plugin.
You can verify this link for more information.
Possibly we may need to approach the ytmusic plugin developer.
I once again thank you for your wonderful support.

If an URI does not survive the roundtrip "Receive it from Mopidy" → "Saving it to a file" → "Loading it from a file" → "Send it to Mopidy", then this is certainly a problem. I am now quite certain, that Autoplay does not change the URI between receiving it from and sending it to Mopidy.
You can always try, who is to blame, by disabling Autoplay and set core.restore_state to True. Autoplay is modelled after the restore state feature. If it does not work with the restore state feature enabled, it will not work with Autoplay.

Surprisingly core.restore_state is working good.

In which case, please post the state.json.gz here.

Some of the log for your understanding
Apr 14 17:27:06 MusicBox systemd[1]: mopidy.service: Succeeded.
Apr 14 17:27:06 MusicBox systemd[1]: Stopped Mopidy music server.
Apr 14 17:27:06 MusicBox systemd[1]: Starting Mopidy music server...
Apr 14 17:27:06 MusicBox systemd[1]: Started Mopidy music server.
Apr 14 17:27:09 MusicBox mopidy[20758]: INFO     [MainThread] mopidy.main Enabled extensions: podcast, musicbox_webclient, somafm, stream, m3u, file, local, websettings, ytmusic, simple-webclient, alarmclock, softwaremixer, mpd, podcast-itunes, mobile, youtube, bookmarks, dleyna, http, mpris, moped, scrobbler
Apr 14 17:27:09 MusicBox mopidy[20758]: INFO     [MainThread] mopidy.main Disabled extensions: tidal, dirble, soundcloud, autoplay, internetarchive, alsamixer, tunein, spotify
Apr 14 17:27:10 MusicBox mopidy[20758]: INFO     [MainThread] mopidy.commands Starting Mopidy mixer: SoftwareMixer
Apr 14 17:27:10 MusicBox mopidy[20758]: INFO     [MainThread] mopidy.commands Mixer volume set to 50
Apr 14 17:27:10 MusicBox mopidy[20758]: INFO     [MainThread] mopidy.commands Starting Mopidy audio
Apr 14 17:27:10 MusicBox mopidy[20758]: INFO     [MainThread] mopidy.commands Starting Mopidy backends: YTMusicBackend, YouTubeBackend, SomaFMBackend, PodcastBackend, iTunesPodcastBackend, BookmarksBackend, FileBackend, M3UBackend, StreamBackend, LocalBackend, dLeynaBackend
Apr 14 17:27:10 MusicBox mopidy[20758]: INFO     [YouTubeBackend-6] mopidy_youtube using bs4API
Apr 14 17:27:10 MusicBox mopidy[20758]: INFO     [Audio-2] mopidy.audio.actor Audio output set to alsasink
Apr 14 17:27:10 MusicBox mopidy[20758]: INFO     [MainThread] mopidy_dleyna.backend Starting Mopidy-dLeyna D-Bus daemon
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: dLeyna core version 0.4.0
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: dleyna-server-service version 0.4.0
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: Type[0] Level[0x13] Mask[0x4C] Flags[0x4F]
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: Load file [/root/.config/dleyna-server-service.conf]
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: [General settings]
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: Never Quit: F
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: Connector Name: dbus
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: [Logging settings]
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: Log Type : 0
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: Log Level: 0x13
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: [Network filtering settings]
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: Enabled : F
Apr 14 17:27:10 MusicBox dleyna-server-service[20792]: Entries: (null)
Apr 14 17:27:10 MusicBox mopidy[20758]: INFO     [Thread-5] mopidy_ytmusic YTMusic updated player URL to /s/player/82e684c7/player_ias.vflset/en_US/base.js
Apr 14 17:27:11 MusicBox mopidy[20758]: INFO     [SomaFMBackend-7] mopidy_somafm.somafm Loaded 38 SomaFM channels
Apr 14 17:27:11 MusicBox mopidy[20758]: INFO     [MainThread] mopidy.commands Starting Mopidy core
Apr 14 17:27:11 MusicBox mopidy[20758]: INFO     [Core-16] mopidy.core.actor Loading state from /var/lib/mopidy/core/state.json.gz
Apr 14 17:27:11 MusicBox mopidy[20758]: INFO     [Thread-4] mopidy_ytmusic YTMusic loaded 9 auto playlists sections
Apr 14 17:27:11 MusicBox mopidy[20758]: INFO     [Thread-4] mopidy_ytmusic YTMusic Auto Playlists refreshed in 1.76s
Apr 14 17:27:12 MusicBox mopidy[20758]: INFO     [YTMusicBackend-3] mopidy_ytmusic YTMusic Found AUDIO_QUALITY_MEDIUM stream with 142780 bitrate for Io0fBr1XBUA
Apr 14 17:27:12 MusicBox mopidy[20758]: INFO     [MainThread] mopidy.commands Starting Mopidy frontends: YTMusicScrobbleFE, YouTubeAutoplayer, ScrobblerFrontend, MopidyCoreListener, HttpFrontend, MprisFrontend, MpdFrontend
Apr 14 17:27:12 MusicBox mopidy[20758]: INFO     [HttpFrontend-23] mopidy.http.actor HTTP serApr 14 17:27:11 MusicBox mopidy[20758]: INFO     [Thread-4] mopidy_ytmusic YTMusic loaded 9 auto playlists sections
Apr 14 17:27:11 MusicBox mopidy[20758]: INFO     [Thread-4] mopidy_ytmusic YTMusic Auto Playlists refreshed in 1.76s
Apr 14 17:27:12 MusicBox mopidy[20758]: INFO     [YTMusicBackend-3] mopidy_ytmusic YTMusic Found AUDIO_QUALITY_MEDIUM stream with 142780 bitrate for Io0fBr1XBUAver running at [::ffff:<IP_ADDRESS>]:6680
Apr 14 17:27:12 MusicBox mopidy[20758]: INFO     [MainThread] mopidy_mpd.actor MPD server running at [::ffff:<IP_ADDRESS>]:6600
Apr 14 17:27:12 MusicBox mopidy[20758]: INFO     [MainThread] mopidy.commands Starting GLib mainloop
Apr 14 17:27:12 MusicBox mopidy[20758]: INFO     [MprisFrontend-24] mopidy_mpris.server MPRIS server connected to D-Bus system bus
Apr 14 17:27:12 MusicBox mopidy[20758]: INFO     [MpdSession-29] mopidy_mpd.session New MPD connection from [::ffff:<IP_ADDRESS>]:55326
Apr 14 17:27:13 MusicBox mopidy[20758]: INFO     [MainThread] mopidy_dleyna.client Found digital media server Shameerariff's media on shameerariff-MacBook2 [uuid:833bc3bf-02e6-4f50-b3c2-3ceedc27d7bd]
Apr 14 17:27:13 MusicBox mopidy[20758]: INFO     [ScrobblerFrontend-19] mopidy_scrobbler.frontend Scrobbler connected to Last.fm
Apr 14 17:27:13 MusicBox mopidy[20758]: INFO     [MpdSession-32] mopidy_mpd.session New MPD connection from [::ffff:<IP_ADDRESS>]:55344
Apr 14 17:27:18 MusicBox mopidy[20758]: INFO     [MpdSession-45] mopidy_mpd.session New MPD connection from [::ffff:<IP_ADDRESS>]:55348
^C[1]+  Done                    sudo service mopidy restart
The state.json.gz content is given below
sudo cat /var/lib/mopidy/core/state.json
{
"version": "3.1.1",
"state": {
"model": "CoreState",
"history": {
"model": "HistoryState",
"history": [
{
"model": "HistoryTrack",
"timestamp":<PHONE_NUMBER>007,
"track": {
"model": "Ref",
"uri": "ytmusic:track:nYh-n7EOtMA",
"name": "Sia - Cheap Thrills (feat. Sean Paul)",
"type": "track"
}
},
{
"model": "HistoryTrack",
"timestamp":<PHONE_NUMBER>150,
"track": {
"model": "Ref",
"uri": "ytmusic:track:Io0fBr1XBUA",
"name": "The Chainsmokers - Don't Let Me Down (feat. Daya)",
"type": "track"
}
},
{
"model": "HistoryTrack",
"timestamp":<PHONE_NUMBER>111,
"track": {
"model": "Ref",
"uri": "ytmusic:track:Io0fBr1XBUA",
"name": "The Chainsmokers - Don't Let Me Down (feat. Daya)",
"type": "track"
}
},
{
"model": "HistoryTrack",
"timestamp":<PHONE_NUMBER>822,
"track": {
"model": "Ref",
"uri": "ytmusic:track:34Na4j8AVgA",
"name": "The Weeknd - Starboy (feat. Daft Punk)",
"type": "track"
}
},
{
"model": "HistoryTrack",
"timestamp":<PHONE_NUMBER>175,
"track": {
"model": "Ref",
"uri": "ytmusic:track:5GL9JoH4Sws",
"name": "Fifth Harmony - Work from Home (feat. Ty Dolla $ign)",
"type": "track"
}
},
{
"model": "HistoryTrack",
"timestamp":<PHONE_NUMBER>515,
"track": {
"model": "Ref",
"uri": "ytmusic:track:5GL9JoH4Sws",
"name": "Fifth Harmony - Work from Home (feat. Ty Dolla $ign)",
"type": "track"
}
}
]
},
"mixer": {
"model": "MixerState",
"volume": 25
},
"playback": {
"model": "PlaybackState",
"tlid": 4,
"time_position": 125481,
"state": "playing"
},
"tracklist": {
"model": "TracklistState",
"repeat": false,
"consume": false,
"random": false,
"single": false,
"next_tlid": 28,
"tl_tracks": [
{
"model": "TlTrack",
"tlid": 1,
"track": {
"model": "Track",
"uri": "ytmusic:track:5GL9JoH4Sws",
"name": "Work from Home (feat. Ty Dolla $ign)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCi2n9JX7IVkdhqDjzjpUVnA",
"name": "Fifth Harmony",
"sortname": "Fifth Harmony",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 220000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 2,
"track": {
"model": "Track",
"uri": "ytmusic:track:34Na4j8AVgA",
"name": "Starboy (feat. Daft Punk)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UClYV6hHlupm_S_ObS1W-DYw",
"name": "The Weeknd",
"sortname": "The Weeknd",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 274000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 3,
"track": {
"model": "Track",
"uri": "ytmusic:track:Io0fBr1XBUA",
"name": "Don't Let Me Down (feat. Daya)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCQgUHOPJJrmzCjExg-ISupA",
"name": "The Chainsmokers",
"sortname": "The Chainsmokers",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 218000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 4,
"track": {
"model": "Track",
"uri": "ytmusic:track:nYh-n7EOtMA",
"name": "Cheap Thrills (feat. Sean Paul)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCaPIRYCKs51kvD4jrbwMH1w",
"name": "Sia",
"sortname": "Sia",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 262000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 5,
"track": {
"model": "Track",
"uri": "ytmusic:track:nfs8NYg7yQM",
"name": "Attention",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCQ-ygxSFSlq-O2zGnXxELXQ",
"name": "Charlie Puth",
"sortname": "Charlie Puth",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 232000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 6,
"track": {
"model": "Track",
"uri": "ytmusic:track:UqyT8IEBkvY",
"name": "24K Magic",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCZn4r7heNOPY-C43YIywnVA",
"name": "Bruno Mars",
"sortname": "Bruno Mars",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 227000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 7,
"track": {
"model": "Track",
"uri": "ytmusic:track:foE1mO2yM04",
"name": "I Took a Pill in Ibiza (Seeb Remix)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCcnkKe-QXt91ZVtPVKKahLA",
"name": "Mike Posner",
"sortname": "Mike Posner",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 237000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 8,
"track": {
"model": "Track",
"uri": "ytmusic:track:EgqUJOudrcM",
"name": "How Deep Is Your Love - Video Edit",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCZ0Aezmtk-S2l8A9Ln-2lKw",
"name": "Calvin Harris",
"sortname": "Calvin Harris",
"musicbrainz_id": ""
},
{
"model": "Artist",
"uri": "ytmusic:artist:UCTuGvNt3an5TOvYUk87K39g",
"name": "Disciples",
"sortname": "Disciples",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 261000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 9,
"track": {
"model": "Track",
"uri": "ytmusic:track:euCqAq6BRa4",
"name": "Let Me Love You (feat. Justin Bieber)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UC0c4bK_92XYr0YtASqqWOJg",
"name": "DJ Snake",
"sortname": "DJ Snake",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 206000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 10,
"track": {
"model": "Track",
"uri": "ytmusic:track:qFLhGq0060w",
"name": "I Feel It Coming (feat. Daft Punk)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UClYV6hHlupm_S_ObS1W-DYw",
"name": "The Weeknd",
"sortname": "The Weeknd",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 298000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 11,
"track": {
"model": "Track",
"uri": "ytmusic:track:GKSRyLdjsPA",
"name": "The Greatest",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCaPIRYCKs51kvD4jrbwMH1w",
"name": "Sia",
"sortname": "Sia",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 352000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 12,
"track": {
"model": "Track",
"uri": "ytmusic:track:xUVz4nRmxn4",
"name": "No Money",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UC4dW20H96zkAdeWVg62r6-A",
"name": "Galantis",
"sortname": "Galantis",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 202000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 13,
"track": {
"model": "Track",
"uri": "ytmusic:track:r2LpOUwca94",
"name": "Light It Up (feat. Nyla & Fuse ODG) [Remix]",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCKQ-xBLhj3SkN9Wz6MwjLaA",
"name": "Major Lazer",
"sortname": "Major Lazer",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 171000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 14,
"track": {
"model": "Track",
"uri": "ytmusic:track:5yXQJBU8A28",
"name": "Fast Car (Extended Mix) (feat. Dakota)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UC9TtDYU2xYw98fHJS2l6Egw",
"name": "Jonas Blue",
"sortname": "Jonas Blue",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 216000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 15,
"track": {
"model": "Track",
"uri": "ytmusic:track:0zGcUoRlhmw",
"name": "Closer (feat. Halsey)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCQgUHOPJJrmzCjExg-ISupA",
"name": "The Chainsmokers",
"sortname": "The Chainsmokers",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 247000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 16,
"track": {
"model": "Track",
"uri": "ytmusic:track:DGIgXP9SvB8",
"name": "#thatPOWER (feat. Justin Bieber)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCMCqlMhBZnxsgYtI5tcFHbA",
"name": "will.i.am",
"sortname": "will.i.am",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 293000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 17,
"track": {
"model": "Track",
"uri": "ytmusic:track:OORoOGY8D2M",
"name": "Sex",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UC9-2io8F6puEBsQZ8uCQ1qw",
"name": "Cheat Codes",
"sortname": "Cheat Codes",
"musicbrainz_id": ""
},
{
"model": "Artist",
"uri": "ytmusic:artist:UCPV7kPtFBhHOJbjmWlX85SQ",
"name": "Kris Kross Amsterdam",
"sortname": "Kris Kross Amsterdam",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 258000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 18,
"track": {
"model": "Track",
"uri": "ytmusic:track:n1a7o44WxNo",
"name": "Beautiful Now (feat. Jon Bellion)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCGVGIqHPzwLhZg8KQNVaRbA",
"name": "Zedd",
"sortname": "Zedd",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 253000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 19,
"track": {
"model": "Track",
"uri": "ytmusic:track:4Th0EwFmkLA",
"name": "Feel Me",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCeBYRgPhy8kcRmIGQWKuqdQ",
"name": "Selena Gomez",
"sortname": "Selena Gomez",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 226000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 20,
"track": {
"model": "Track",
"uri": "ytmusic:track:ACPd7HSZkc0",
"name": "Now and Later",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCwFCoaMCvBRRsNWmpdPU0KA",
"name": "Sage The Gemini",
"sortname": "Sage The Gemini",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 199000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 21,
"track": {
"model": "Track",
"uri": "ytmusic:track:k1gsZ-OsGpI",
"name": "Hymn for the Weekend (Seeb Remix)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCIaFw5VBEK8qaW6nRpx_qnw",
"name": "Coldplay",
"sortname": "Coldplay",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 214000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 22,
"track": {
"model": "Track",
"uri": "ytmusic:track:AmuKdoe8MvI",
"name": "Shake Senora (feat. T-Pain & Sean Paul)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UC03jIQv4WXBSHdr1DlCLYDw",
"name": "Pitbull",
"sortname": "Pitbull",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 216000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 23,
"track": {
"model": "Track",
"uri": "ytmusic:track:vdI0JLVhdYc",
"name": "Shed a Light",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCIpo9tfpIGXMzNQcZVWoXVw",
"name": "Robin Schulz",
"sortname": "Robin Schulz",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 193000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 24,
"track": {
"model": "Track",
"uri": "ytmusic:track:_yXkFt2Wuag",
"name": "Not So Bad (feat.  Emie)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCcntWoaelL2plLILZoKAzig",
"name": "Yves V",
"sortname": "Yves V",
"musicbrainz_id": ""
},
{
"model": "Artist",
"uri": "ytmusic:artist:UCehizc2Q5cORI-Q8FlRj_pg",
"name": "Ilkay Sencan",
"sortname": "Ilkay Sencan",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 163000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 25,
"track": {
"model": "Track",
"uri": "ytmusic:track:F4wB5g_OfGU",
"name": "Perfect Strangers (Acoustic) (feat. JP Cooper)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UC9TtDYU2xYw98fHJS2l6Egw",
"name": "Jonas Blue",
"sortname": "Jonas Blue",
"musicbrainz_id": ""
}
],
"album": {
"model": "Album",
"uri": "ytmusic:album:MPREb_Thip5w2ckzQ",
"name": "Perfect Strangers (Acoustic)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UC9TtDYU2xYw98fHJS2l6Egw",
"name": "Jonas Blue",
"sortname": "Jonas Blue",
"musicbrainz_id": ""
}
],
"date": "0000",
"musicbrainz_id": ""
},
"genre": "",
"date": "0000",
"length": 191000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 26,
"track": {
"model": "Track",
"uri": "ytmusic:track:1_liEXWHPlg",
"name": "Old School (The Reprise)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UC2eO0X9LBcgvc8wqezD6TpA",
"name": "Urban Cone",
"sortname": "Urban Cone",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 193000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
},
{
"model": "TlTrack",
"tlid": 27,
"track": {
"model": "Track",
"uri": "ytmusic:track:gKaLkbbl3W8",
"name": "Ain't My Fault (J Hus & Fred VIP Remix)",
"artists": [
{
"model": "Artist",
"uri": "ytmusic:artist:UCB-GmTOjewVU2F_7S4ZFmEA",
"name": "Zara Larsson",
"sortname": "Zara Larsson",
"musicbrainz_id": ""
}
],
"genre": "",
"date": "0000",
"length": 213000,
"bitrate": 0,
"comment": "",
"musicbrainz_id": ""
}
}
]
}
}
}

May I ask you once again to make use of the code block (https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks) when inserting log and state files.
This simply confirms what I was reiterating already a couple of times:

The ytmusic: is correctly saved and loaded back to Mopidy by Autoplay.
Timing is essential: Mopidy's own restore_state functionality kicks in after the YTMusic backend finished loading and initializing:

Apr 14 17:27:10 MusicBox mopidy[20758]: INFO [Thread-5] mopidy_ytmusic YTMusic updated player URL to /s/player/82e684c7/player_ias.vflset/en_US/base.js
[...]
Apr 14 17:27:11 MusicBox mopidy[20758]: INFO [Core-16] mopidy.core.actor Loading state from /var/lib/mopidy/core/state.json.gz
Apr 14 17:27:11 MusicBox mopidy[20758]: INFO [Thread-4] mopidy_ytmusic YTMusic loaded 9 auto playlists sections

whereas previously we had
Apr 13 06:03:25 MusicBox mopidy[18877]: WARNING [AutoplayFrontend-22] mopidy_autoplay.frontend Autoplay: Could not get tracklist index 1: list index out of range
[...]
Apr 13 06:03:26 MusicBox mopidy[18877]: INFO [Thread-5] mopidy_ytmusic YTMusic updated player URL  to /s/player/2cea24bf/player_ias.vflset/en_US/base.json.gz

q.e.d.
3. Since Autoplay loads it a tad before that, it cannot load the ytmusic tracks.
4. You are lucky, that Mopidy's restore_state functionality works. Could also have to do with the load order of the back- and frontends.
PS: BTW Mopidy does not load the back- and frontends determisticly one after the other, but synchronously, hence it is not possible to know, when one back- or frontend has finished.


Elasticsearch secrets & repository configuration

Building off some of the limitations noted on the current elastic-conf service, partly mentioned here
We need to automate setup of Elasticsearch's S3 secrets, access-key and secret-acces-key to enable us take snapshots and upload to S3. The current setup leverages the secrets and repository that were setup when doing the first manual ES snapshot.
Elasticsearch recommends adding the secrets to elasticsearch-keystore as per the following commands.
Questions

We currently use elastic-conf as our entry point to ES configurations.Setting the above commands via elastic-conf would mean using subprocess with sudo access. This does not sound like a good idea and therefore elastic-conf would not be the ideal place for this?
We need to cater for ES running on bare metal  and docker containers (dev/staging)

Proposal

Add S3 repository creation & validation as part of the elastic-conf
Create a separate script, similar to deploy.sh to set & reload secure settings to Elasticsearch (both bare metal & container setups). Should this be triggered on/from deploy.sh??

Continuing..
*Since staging runs ES under docker, if the keystore and/or repo config cannot be done from elastic-conf.py, that means a staging stack cannot be created from scratch without manual intervention.

I think the best way forward is to break down this issue into at least 3 separate tasks:

Managing Elasticsearch secrets: Ideally deploy.sh will be all we need but given that the security settings can only be managed via the elasticsearch-command, we may have to implement this via our Elasticsearch deployment scripts: elastic-deploy.sh for bare-metal/PROD cluster and either bind-mount or custom image (or custom CMD/Entrypoint script) for docker/staging cluster
Snapshot repository: Again, two subtasks here: i. creating an S3 bucket, and ii. registering an S3 bucket as a snapshot repository in Elasticsearch. Should the elastic-conf script do both of these tasks or do the creation of S3 bucket should remain outside of this script management?
SLM Policy: If the script can now create/register repositories at will, how does it affect the current implementation of SLM policy management?

Since we have a manual way of doing 1 at the moment, I think we should start by implementing tasks 2 and 3 while we brainstorm on the best way to automate 1.

Today I found out that elastic-config.py errors out if ELASTICSEARCH_SNAPSHOT_REPO is not provided (as is the case for a developer stack), and the ES index is not created.
My position has been that developer stacks should not require any external storage keys (the archiver leaves local archive files)
I think it would be fine for elastic-config.py to log missing parameters related to snapshots at ERROR priority, but I'm open to discussion...

Yeah @philbudne I agree on DEV working without secrets... I had suggested using Filesystem repository for DEV a while back, not sure if you and @thepsalmist have had the chance to look at it or not.


Add SKLearnVectorStore

Add SKLearnVectorStore
This PR adds SKLearnVectorStore, a simply vector store based on NearestNeighbors implementations in the scikit-learn package. This provides a simple drop-in vector store implementation with minimal dependencies (scikit-learn is typically installed in a data scientist / ml engineer environment). The vector store can be persisted and loaded from json, bson and parquet format.
SKLearnVectorStore has soft (dynamic) dependency on the scikit-learn, numpy and pandas packages. Persisting to bson requires the bson package, persisting to parquet requires the pyarrow package.
Before submitting
Integration tests are provided under tests/integration_tests/vectorstores/test_sklearn.py
Sample usage notebook is provided under docs/modules/indexes/vectorstores/examples/sklear.ipynb
Who can review?
Community members can review the PR once tests pass. Tag maintainers/contributors who might be interested:
@hwchase17 - project lead
VectorStores / Retrievers / Memory
@dev2049

Thank you for the contribution @mrtj !
Code is looking great! One request is if you could move the test from integration to unit test.
Follow these guidelines -- https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md#working-with-optional-dependencies
This will allow the tests to be picked up on CI with an optional dependency


support very verbose in CompositeTestOutput

This PR fixes an empty console output when the "JUnit" and "very verbose" options are selected at the same time

coverage: 99.323%. remained the same when pulling c20648edf38b68f061f866b302e51fbe8ba43e43 on viordash:very-verbose into 484e09883a5b996026a25e85a89ada7e5b23ac95 on cpputest:master.

It seems to be missing a test? How could you have created the code without a test first?

Please excuse me, I forgot about the tests :)

Hello @basvodde,
do you have any plans to approve this PR?
The problems with Autotools GTest do not seem to me to be related to my PR.


Create github action for flake8 python linting test

Add a github action that performs a flake8 python linting test on every push made to master branch as well as every PR opened.

@hot9cups I add flake8 in the same PR of the tests, could the same workflow?

The same PR is okay if you prefer it that way.
I'm also fine if you want to split it into multiple PRs, either way is fine with me :)


Can't  run the glove package

I run the "from glove import Glove"  in win11,I downloaded this package by" pip install glove_python_binary",and successfully downloaded it.But when i ran the program.I reported an error.
Here are the logs.
File "E:\workware\Anaconda\envs\python38\lib\site-packages\glove_init_.py", line 1, in
from .corpus import Corpus
File "E:\workware\Anaconda\envs\python38\lib\site-packages\glove\corpus.py", line 10, in
from .corpus_cython import construct_cooccurrence_matrix
ImportError: DLL load failed while importing corpus_cython: 找不到指定的模块。
It means it can't find the corpus_cython module.
How can i solve it?
Thanks.

me too.


import / export of patterns to .mts format

could be related to #41 and #49

consideration: should players be able to record every step of their pattern? should the pattern be saved as an pattern of active blocks only? active and trail blocks? should the pattern be saved as mts? .we? or as a cell list that only saves block states instead of all the extra stuff that mts and we saves...
also when a player chooses to import a set of blocks from worldedit, or uses worldedit to convert a set of blocks into automata blocks, these need to be added to the inactive block list or instantly converted to an active pattern. this would tie in closely with the ability to import a pattern, or reactivate a pattern that was aborted while still active.

worldedit command //replaceinverse would be useful for this but saving directly to export rather than altering the world

this is adequately handled by #51


Example of output file in readme

It is hard to tell from the readme what this actually produces. Even just a link to this library's own .public_api would work

Yup great point! I think I was a bit iffy about what the final output should look like since it currently contains raw mypy type information which isn't very useful to a reader.
I'll get the output format finalized and added to the readme :+1:


Inconsistent usage of type comments

Reported by beutlich on 19 Sep 2013 13:56 UTC
E.g. there is type VoltageSecond with comment "Voltage second" but there is type VoltageSlope without any comment for no reason. Please use type comments consistently.

Migrated-From: https://trac.modelica.org/Modelica/ticket/1276

Comment by otter on 13 Dec 2015 16:28 UTC
Replying to [ticket:1276 beutlich]:

E.g. there is type VoltageSecond with comment "Voltage second" but there is type VoltageSlope without any comment for no reason. Please use type comments consistently.

Most of the SI units have a type definition without comment/description string. Some of the types have a (trivial) comment. I am unsure whether it is worth to harmonize this now (best would be to remove all description strings because they just repeat the type name)

Modified by beutlich on 13 Dec 2015 18:21 UTC


Add debug mode

When run with a specific flag the lexer/whatever else would output tokens or whatever would make debugging easier for the developer

no


Calling needs :cxx11 is disabled!   I was able to confirm this issue on OSX Mojave. It appears that this is mostly a Homebrew issue:
https://github.com/Homebrew/brew/pull/5599
We'll have to think internally how to fix this, as I suspect the way to solve the issue is to update the Apache Arrow recipe in Homebrew.

As it turns out, I didn't realize we keep the Arrow recipe local in our repo. The fix for this is to comment out the line as shown in #325, which we'll merge in shortly. But if you're in a hurry, you could do it yourself while the PR is open.

Not quite following this issue,,, if c++11 is disabled, how can mapd-core be built when it needs c++14?
BTW, S3 SDK needs c++14, too.

It's not disabled, I guess they just changed how their recipes are parsed. So you remove that parameter and the package now seems to install correctly (at least on Mojave). Just didn't want to merge it without someone testing on Sierra/High Sierra.


Sorting array (Insertion Sort Algorithm)

A  menu driven program as given below, to sort an array of n integers in ascending
order by insertion sort algorithm and time required (in terms of
step/frequency count) to sort the elements. Repeat the experiment for different values of
n and different nature of data ( i.e. apply insertion sort algorithm on the data of array
that are already sorted, reversely sorted and random data). Finally plot a graph of the
time taken versus n for each type of data. The elements can be read from a file or can be
generated using the random number generator.

Great Job👍🏻


Python API decoder decorator is confusing when applied to Kafka decoder

The Python API currently uses a decorator around decoder functions that takes header_length and length_fmt arguments. This will create an object that can be used with either framed TCP or Kafka sources, but the header_length and length_fmt values are unused with Kafka. This could be confusing to folks creating a Kafka decoder, because these values don't make sense in that context.
It might be worthwhile to be able to use the decoder decorator with no arguments, or perhaps we should provide a separate type of decoder decorator for the case where the application developer doesn't have to provide information about how the message is framed.

And other decoders might have different values as well.


App Engine - SSL - Thrift Gateway - Cloud Bigtable

This howto provides instructions for creating an App Engine app which will
connect to a load-balanced, autoscaled managed instance group of HBase Thrift
gateways which will connect to Cloud Bigtable.
Many thanks to Ben Menasha for the initial version of these instructions.
@bmenasha, @lesv — please review and comment.

A quick scan - it looks OK, I'll review in more detail in AM.

Just remove the .editorconfig, the rest are nits - your choice, LGTM


Table/shard limit

Hello!
In the 'limitations of RethinkDB' in FAQ there is:

There is no hard limit on the number of tables per database or cluster. However, performance degrades based on the total number of shards across all tables on a cluster. The current recommendation is to keep this number below 300 (i.e., 300 tables with one shard each, or 50 tables with six shards each).

Does it mean that I shouldn't have more than 300 tables on one database server or is it somehow counted differently? I've tried googling, but the only reference to it is from long time ago and mentions that it might be fixed. What the current status of this limitation?
Thanks,

Thanks for bringing this up @freiksenet.
This used to apply on the cluster level, since having a lot of tables/shards made meta operations (such as reconfiguring a table) slow. This limitation should no longer exist in RethinkDB 2.1, but I'm going to double check.

That's great news!
Thank you!
On Mon, Aug 31, 2015 at 8:54 PM, Daniel Mewes<EMAIL_ADDRESS>wrote:

Thanks for bringing this up @freiksenet.
This used to apply on the cluster level, since having a lot of tables/shards made meta operations (such as reconfiguring a table) slow. This limitation should no longer exist in RethinkDB 2.1, but I'm going to double check.
Reply to this email directly or view it on GitHub:
https://github.com/rethinkdb/docs/issues/873#issuecomment-136444021

Just tested this on a 2 server cluster with 1,000 tables and 32 shards * 2 replicas each. The web UI and some queries to the r.db('rethinkdb') database become somewhat sluggish, but general meta operation performance seems to be fine.
@chipotle I think we can remove that point from the limitations.

@freiksenet Also server shutdown and startup can become somewhat slow with a lot of tables. Just something to keep in mind.


Re-check bug error page when reset account

Describe the task
Re-check bug error page in case reset account
Version test: v1.1.10(240)
Device test: IP 8 Plus
To reproduce the task
Steps:

Perform reset account/ reset wallet
Observe the displayed screen

Actual: Error page
Expect: Navigate Welcome screen.

Version test: PR #1256 10:38 18/12/2023
Device test: IP 11
Validation passed.
https://github.com/Koniverse/SubWallet-Mobile/assets/117999489/39db45bb-c538-4150-804a-cb701a0d9fad


SuSo-F-012: Replace mat-icons by SVG icons

https://github.com/julia-jordan-712/sudoku-solver-angular/pull/53


Performance compared to lm-evaluation-harness

Hi,
Thanks for sharing this package, it has lots of cool features!
I saw that arc-challenge was taking about twice longer that what I have with harness, I ran the following commands with lighteval:
# ran with 4A100 GPUs -> 611s
time  accelerate launch --multi_gpu --num_processes=4 lighteval/run_evals_accelerate.py --model_args="pretrained=meta-llama/Meta-Llama-3-8B" --tasks "leaderboard|arc:challenge|25|0" --output_dir "arc_challenge" --override batch_size 8

and the following command from harness (using big-refactor branch):
# ran with 4A100 GPUs -> 319s and big-refactor branch
time accelerate launch -m lm_eval \
    --model hf \
    --model_args pretrained=meta-llama/Meta-Llama-3-8B,dtype="bfloat16" \
    --tasks arc_challenge \
    --batch_size 8 \
    --num_fewshot=25

Of-course, many things could cause this but I wanted to know if you have faced something similar or benchmarked light-eval compared to Harness?
If not, would you have a suggestion to get similar performance? (it seems bf16 are used by default so it should not be the culprit)

Hi! Is your configuration for accelerate the same? But otherwise I'll take a look, thanks for opening this issue

Yes, I used the default one, thanks.

When you say the default one, what do you mean precisely? (Could you give the output of your configuration?)
Because when launching lighteval, you specifically select the number of processes to use, and not when launching the lm_eval one.
If the model is small enough to fit 2 times on a GPU, you could be doing DP8 with lm_eval, and only DP4 for lighteval (which would also explain the difference in speed)

Thanks a lot!

I reran setting bf16 explicitly and it took 11 min with the following command
time accelerate launch --multi_gpu --num_processes=4 lighteval/run_evals_accelerate.py     --model_args="pretrained=meta-llama/Meta-Llama-3-8B,dtype="bfloat16""     --tasks "leaderboard|arc:challenge|25|0"     --output_dir "arc_challenge2" --override_batch_size 8

and it took longer than lm_eval so bf16 does not seem to be the culprit.


Offset for tips

By default, Plot positions tooltips automatically, changing the anchor so that the tooltip always remains within the canvas.
The tooltip is always positioned in the center of the element it is attached to.
In some cases, it is desired that the position of the tooltip has an offset. However, because the anchor is changing depending where the tooltip is rendered, offset values dy and dx can't be used statically, as this value would need to be positive, negative or 0 depending on the anchor position.
The example below illustrates how the tooltip is overlapping the text of a data point.
In some cases the tooltip would need to be moved up/down or left / right.
An additional parameter dOffset would be handy for dynamic positioning.
The parameters anchor and dy/dx can't be functions, therefor it is impossible to adjust these values at the moment.

This reminds me of CSS’s margin-block and margin-inline, which are logical directions that depend on the orientation of text.
Would it be sufficient to just have a single offset that depends on the tip orientation? That feels easy to do.


get historical prices from command line args.

Hi,
Would it be possible to have a better way to handle historical prices in zipline? If I understand correctly, right now one has to manually check if the days that one is looking back in history have already passed by before actually running the history(72, '1d', 'price') code. The suggested code to do so in handle_data is:
    context.i += 1
    if context.i < 72:
        return

But this wouldn't work if for example one wants to use minute mode. It would be better if one could download from command line the historical prices. Needless to say, these kind of issues do not appear when code is run in quantopian.
Thanks
Karol

Agree with Karol I am exactly having same problem

@karolestrada is your goal just to work with the raw pricing data without running a backtest at all?  Or are you looking to implement the same backfilling logic that's applied on Quantopian?
w/r/t the former issue, you can use the utils in zipline.data.loader to load the same data that's used by default in Zipline's CLI (specifically, it uses load_data_yahoo and load_bar_from_yahoo.  You might also take a look at pandas.io.data (https://github.com/pydata/pandas/blob/master/pandas/io/data.py), which supports querying data from a whole host of remote sources.
w/r/t the latter issue, agreed that the need to skip over the first N bars is a kludge, though I'm not sure I understand how running in minute mode makes a difference.  The reason backfilling isn't built into zipline is that zipline can work with arbitrary user-supplied data sources, and we can't necessarily backfill from before the beginning of your test.

I'm trying to run my quantopian scripts directly in zipline. But I want to continue using quantopian as my "editor mode". So far it has been frustratingly painful to make the same script that worked fine in quantopian to work directly on zipline.
So, I want to run my code in minute mode, and I want to lookback 72 days in the past.
When I run minute mode on quantopian, the handle_data function is called every minute, so the hack to use a counter to check if the number of days has passed wouldn't work.
Furthermore, now I'm realizing that zipline is not calling handle_data every minute but every day.  So how am I supposed to work in minute mode data in zipline?
I added to the cmd line:   --data_frequency minute  and then when I try to do  add_history(43200, '1m', 'price') it complains and says:
    data_frequency=data_frequency,
zipline.errors.IncompatibleHistoryFrequency: Requested history at frequency 'm' cannot be created with data```

Is there a working minute mode zipline script with history() calls that I can have a look at?

@karolestrada I believe the required keyword argument for the CLI is data-frequency, not data_frequency.  Unfortunately, however, I don't think that will do you any good.  While Zipline can be configured to use your own arbitrary data sources, the CLI only knows how to pull Yahoo's free daily data (yahoo doesn't provide free data at minutely resolution), and from my reading of the code in https://github.com/quantopian/zipline/blob/master/zipline/utils/cli.py#L161, it silently ignores the data-frequency argument.
As may be apparent by now, the CLI isn't especially well-maintained; it was built as a simple prototype to allow people to try out zipline with a simple data source in daily mode, but for most serious use-cases you still have to work directly with the zipline internals.  If you don't already have your own minutely data, I'd recommend working in Quantopian for now :(.

Thanks for you answer.


Update chronological-issues-from-video.md

Content update for video issue page containing a note about the confusion between network ID and chain ID which often leads to unexpected errors and is the source of quite a few requests in the discussions.
I was asked by @cromewar to contribute to this information. Never contributed to an open GitHub project before, hope I am doing this is correct. If not please give me a hint.

@PatrickAlphaC  Please give it a check this is valuable information, thanks again @n4n0b1t3 !!

Woah.... this is super weird. Do you have any docs that show that these two should be different? It could be a weird ganache thing....
Also, you'd doing this great! This is exactly how one would contribute. Could you share some other docs that show that ganache is wonnkey?

Hmm, actually Ganache behaves correctly towards the specification. I even have the suspicion that Ganache has taken two different values on purpose. After all, it is a development tool and so the developers can learn that these are two different values.
I had referred to the following article: https://besu.hyperledger.org/en/stable/Concepts/NetworkID-And-ChainID/
Just now, I took a look at the ETH chain specification: https://openethereum.github.io/Chain-specification.html
ChainID was introduced after the Network ID, the default value for ChainID is equal to Network ID (but can be different). Here is the text from the specification.

"chainID" chain identifier, was introduced in EIP-155 to prevent replay attacks between the main ETH and ETC chains, which both have a networkID of 1. ChainID is an additional way to tell chains apart. Subsequent to EIP-155, ETH had a chainID of 1, while ETC had a chainID of 61. networkID and chainID are required for the chain to operate in general - e.g. it’s required when signing transactions. Default value is equal to networkID.

Lovely.
Thank you for this!
I didn't know that, learn something new everyday :)

Great first contribution!!

It is fun to work on the project and I learn a lot! Thank you very much, this is a great team.


Unable to run GAM after installation on M1 MAC

The issue tracker is for reporting product deficiencies. How do I questions should be posted to the discussion forum at https://groups.google.com/group/got-your-back. When in doubt, start at the discussion forum and return here only when instructed to do so.
Please confirm the following:

I have upgraded to the latest GYB release from https://github.com/jay0lee/got-your-back/releases and I still have this issue.
I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/got-your-back/wiki

Full steps to reproduce the issue:

Install GAM
Run start command

Expected outcome (what are you trying to do?):

Actual outcome (what errors or bad behavior do you see instead?):

Thanks for the clarification.
I works now I use sudo:
sudo gyb --email<EMAIL_ADDRESS>


docs(home): changes bg animation to 3d stars

Uses three.js. It is a custom build that will only be 57kB gzipped.
On top of that the three.js is loaded after everything else.
A small gif to give you an idea (the gradients don't display well :( )

Uh, yeah ok. I have no idea what is going on inside the whole particule code, but that looks nice :D

:heart:

Do we merge already? :D

nice


Update metadata formatting for readability

Motivation:
For packages that generate logs and use them as part of the development process,
it is beneficial to be able to read through logs without having to write custom
log handlers or pull in a dependency for formatting only at dev time.
Modifications:

Change: The format of StreamLogHandler to output metadata on newlines with tab indentation

Result:
Package authors will have an easier time debugging their applications without boilerplate code or dependencies.
This resolves #162

@swift-server-bot add to whitelist

Hmmm that's a tricky policy decision to be honest...
I absolutely agreed that the default formatting becomes completely unreadable when a lot of metadata is used (I do so myself in all projects I work on, including apple/swift-cluster-membership where it shows a lot since every log statement carries tons of information about the membership state and protocol internals...
To that end, it even comes with it's own formatter to be usable in the example apps without going insane: swift-cluster-membership/.../Sources/SWIM/Utils/_PrettyLog.swift.
So the problem definitely is real and I agree with the general idea.
I am worried if the solution should be to by default go multi-line in this formatter... Going multi-line is nice for development time, but terrible for log aggregation - aggregators usually assume 1 line = 1 log statement. It's a non trivial extra step to configure some of them to understand trailing stuff...
So... what should we do here?
I think it's a bit risky to make the default go multi-line to be honest.
It would be best if we shipped some PrettyLog and people do #if DEBUG PrettyLog.bootstrap() or something like that, but I would really want to put proper log handlers outside of this package -- it always was meant to be only API, and the fact this contains any handler already is root to some issues...

@ktoso Do we want to move discussion to the issue #162?

Sure, I'll move my comment

Following the discussion in the issue https://github.com/apple/swift-log/issues/162 I'm sorry but we won't be accepting such human-readable improvements into swift-log itself.
Let's work on a separate package that can handle this though, happy to help!

Understandable! No hurt feelings here


Overview - Error message

Hi,
Just set this up and am getting this error message in the Overview widget.
The metric visit_duration  is not recognized. Find valid metrics from the documentation: https://plausible.io/docs/stats-api#get-apiv1statsbreakdown
Assuming this is because it's a brand new installation, but it should probbbabably have a nice message rather than throw an error.
Running Craft Pro <IP_ADDRESS> fwiw
Cheers,
Jackson

Plausible recently updated their api, I've got an update 95% ready and hope to release it within the next day which should bring it all up to date. 👍

@okay-type just pushed a new release that should fix this. 201dfeead87e06aa52e65bc598364cd03cf476a2 - Thanks.