Parsing nested json

Is there any way to parse nested JSON from event payload?
I'm having a payload returned from a post agent:
{
    "link": "https://www.theverge.com/2018/2/1/16956976/youtube-go-offline-viewing-130-countries-limited-connectivity",
    "comment": "YouTube",
    "body": "{\"title\":\"YouTube Go is launching in over 130 countries\",\"content\":\"

\\n
YouTube announced today that its YouTube Go app<\/a> is launching in over 130 countries. YouTube Go<\/a> is a redesigned version of the regular YouTube app (available only on Android) that’s designed for places with poor connectivity or expensive cellular data prices.<\/p>\\n
YouTube Go allows users to download videos for offline viewing (something that the company usually charges for as part of its $10-per-month YouTube Red subscription), which users can then share locally with friends over a direct device-to-device connection without using up more data. <\/p>\\n

<\/iframe><\/div><\/div>\\n
The app first launched in beta<\/a> in India last year. Since then, it has rolled out to testing in 14 more countries, but today sees its full international debut. Google is also updating YouTube Go with a few new features, including an option to stream and download videos in higher quality, a new personalized stream of recommended content, and the ability to share multiple videos at once to another device.<\/p>\\n
While the app is rolling out to over 130 countries, the focus is still on locations that have limited access to cellular data. There are no plans for YouTube Go to launch in countries with more developed networks (including the United States, Canada, Japan, South Korea, Germany, France, or England).<\/p>\\n<\/div><\/div>\",\"author\":\"Chaim Gartenberg\",\"date_published\":\"2018-02-01T17:00:02.000Z\",\"lead_image_url\":\"https://cdn.vox-cdn.com/thumbor/sl2mGChP44eG-gK3eXuT8ckSwZQ=/0x0:1200x628/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/10137011/youtube_go.png\",\"dek\":null,\"next_page_url\":null,\"url\":\"https://www.theverge.com/2018/2/1/16956976/youtube-go-offline-viewing-130-countries-limited-connectivity\",\"domain\":\"www.theverge.com\",\"excerpt\":\"The app is designed for offline viewing in countries where connectivity can be an issue\",\"word_count\":204,\"direction\":\"ltr\",\"total_pages\":1,\"rendered_pages\":1}"
 }

Where value of body is a json object and I'm unable to access its value.
I've tried both JsonParseAgent and JavaScriptAgent, and interestingly JavaScripeAgent is capable of parsing the value when the value is hardcoded.
Agent.receive = function() {
  var events = this.incomingEvents();
  var content = events[0].payload;

  var string= {
    "link": "https://www.theverge.com/2018/2/1/16956976/youtube-go-offline-viewing-130-countries-limited-connectivity",
    "comment": "YouTube ",
    "body": "{\"title\":\"YouTube Go is launching in over 130 countries\",\"content\":\"

\\n
YouTube announced today that its YouTube Go app<\/a> is launching in over 130 countries. YouTube Go<\/a> is a redesigned version of the regular YouTube app (available only on Android) that’s designed for places with poor connectivity or expensive cellular data prices.<\/p>\\n
YouTube Go allows users to download videos for offline viewing (something that the company usually charges for as part of its $10-per-month YouTube Red subscription), which users can then share locally with friends over a direct device-to-device connection without using up more data. <\/p>\\n

<\/iframe><\/div><\/div>\\n
The app first launched in beta<\/a> in India last year. Since then, it has rolled out to testing in 14 more countries, but today sees its full international debut. Google is also updating YouTube Go with a few new features, including an option to stream and download videos in higher quality, a new personalized stream of recommended content, and the ability to share multiple videos at once to another device.<\/p>\\n
While the app is rolling out to over 130 countries, the focus is still on locations that have limited access to cellular data. There are no plans for YouTube Go to launch in countries with more developed networks (including the United States, Canada, Japan, South Korea, Germany, France, or England).<\/p>\\n<\/div><\/div>\",\"author\":\"Chaim Gartenberg\",\"date_published\":\"2018-02-01T17:00:02.000Z\",\"lead_image_url\":\"https://cdn.vox-cdn.com/thumbor/sl2mGChP44eG-gK3eXuT8ckSwZQ=/0x0:1200x628/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/10137011/youtube_go.png\",\"dek\":null,\"next_page_url\":null,\"url\":\"https://www.theverge.com/2018/2/1/16956976/youtube-go-offline-viewing-130-countries-limited-connectivity\",\"domain\":\"www.theverge.com\",\"excerpt\":\"The app is designed for offline viewing in countries where connectivity can be an issue\",\"word_count\":204,\"direction\":\"ltr\",\"total_pages\":1,\"rendered_pages\":1}"
  }

  JSON.parse(string.body); // this works.

  JSON.parse(events[0].payload.body);
  // this produces error: JavaScript error: Unexpected token at :1:80

}

That is odd, I injected the Event into Huginn using a ManualEventAgent and the JsonParseAgent had no issues parsing the data. Does your JsonParseAgent output the same error as the JavascriptAgent does?

@dsander JsonParseAgent works fine actually, but it doesn’t support merge mode since I need retain not only the body field but also the other fields.
Having said that, it still looks like a bug to me for JavaScriptAgent.

Apparently JSON.parse in javascript is unable to handle special character, this worked for me:
JSON.parse(events[0].payload.body.replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/\f/g, "\\f"));

Yep thanks for the help @dsander, that's working. Although I already wrote a node server to achieve my workflow goal but I think it really should be put into the wiki.

I had a similar issue, but solved it with:
var event = JSON.parse(JSON.stringify(events[i]['payload']));


Output addresses to json

Console log statements likely useless because hardhat already outputs the same information the console. We can also use the export statement built into the hardhat deploy plugin which is better than output.json imo
https://github.com/wighawag/hardhat-deploy#options

Console log statements likely useless because hardhat already outputs the same information the console. We can also use the export statement built into the hardhat deploy plugin which is better than output.json imo
https://github.com/wighawag/hardhat-deploy#options

It already writes to file using fs. Will check this out but will punt to a later PR to implement.


New migration logic

Description
We want to use the existing migration logic up until version X. The first time we migrate past X, we want to switch to new migration logic in which the extension is required and handles the database changes.
Merge requirements
Please take into account the following non-code changes that you may need to make with your PR:

[ ] CHANGELOG entry for user-facing changes
[ ] Updated the relevant documentation

Also, can you rebase against current master, or merge master into extension-refactor, so that we can get this change: https://github.com/timescale/promscale/pull/1139

Also, can you rebase against current master, or merge master into extension-refactor, so that we can get this change: https://github.com/timescale/promscale/pull/1139

Done. Rebased extension-refactor on master and then this branch on it.

There's a minor change that we need to make with how Promscale handles schema generation. Here's the patch that I've been using to test it. It also adds some logging around the install/upgrade process which I found helpful to understand what's going on.
diff --git a/pkg/pgmodel/common/extension/extension.go b/pkg/pgmodel/common/extension/extension.go
index 3c2beec..0be24cf 100644
--- a/pkg/pgmodel/common/extension/extension.go
+++ b/pkg/pgmodel/common/extension/extension.go
@@ -202,9 +202,18 @@ func MigrateExtension(conn *pgx.Conn, extName string, extSchemaName string, vali
 	}

 	if !isInstalled {
-		_, extErr := conn.Exec(context.Background(),
-			fmt.Sprintf("CREATE EXTENSION IF NOT EXISTS %s WITH SCHEMA %s VERSION '%s'",
-				extName, extSchemaName, getSqlVersion(*newVersion, extName)))
+		var query = ""
+		switch extName {
+		case "timescaledb":
+			query = fmt.Sprintf("CREATE EXTENSION IF NOT EXISTS %s WITH SCHEMA %s VERSION '%s'",
+				extName, extSchemaName, getSqlVersion(*newVersion, extName))
+		case "promscale":
+			query = fmt.Sprintf("CREATE EXTENSION IF NOT EXISTS %s VERSION '%s'",
+				extName, getSqlVersion(*newVersion, extName))
+		default:
+			return fmt.Errorf("unknown extension: %s", extName)
+		}
+		_, extErr := conn.Exec(context.Background(), query)
 		if extErr != nil {
 			return extErr
 		}
diff --git a/pkg/pgmodel/new_migrate.go b/pkg/pgmodel/new_migrate.go
index ec3eaa4..af945f5 100644
--- a/pkg/pgmodel/new_migrate.go
+++ b/pkg/pgmodel/new_migrate.go
@@ -46,6 +46,7 @@ func removeOldExtensionIfExists(db *pgx.Conn) error {
 	}

 	if installed && installedVersion.LT(semver.MustParse(transition)) {
+		log.Info("msg", "Dropping extension at version '"+installedVersion.String()+"'")
 		_, err := db.Exec(
 			context.Background(),
 			stmt,
@@ -59,6 +60,7 @@ func removeOldExtensionIfExists(db *pgx.Conn) error {
 }

 func installExtensionAllBalls(db *pgx.Conn) error {
+	log.Info("msg", "Installing extension at version '0.0.0'")
 	const stmt = "CREATE EXTENSION promscale SCHEMA _prom_ext VERSION '0.0.0'"
 	_, err := db.Exec(
 		context.Background(),

Can we also squash the commits down?


Textarea: when it has a slot the 'class' prop is applied differently

Describe the bug
The class should still be applied to the textarea as expected and specified in the docs but its behaving differently. If you inspect the dom you can the see the classes are getting applied in different places depending on if a slot is present or not.
<!-- this will apply the classes to the textarea -->
<Textarea class="bg-red-600" />

<!-- this wont apply the classes to the textarea -->
<Textarea class="bg-red-600">
   <slot name="footer" slot="footer"/>
</Textarea>

Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-tbx5dc?file=src%2Froutes%2F%2Bpage.svelte
Flowbite version and System Info
0.46.1

Please try:
pnpm add -D flowbite-svelte@latest

<div class='p-9'>
  <!-- this will apply the classes -->
  <Textarea class="bg-red-600" />

  <!-- this wont apply the classes -->
  <Textarea class="bg-red-600" footerClass='border-red-600' innerWrappedClass=''>
    <slot slot="footer">
      Footer Content
    </slot>
  </Textarea>
</div>

Closing this issue as inactive.
Feel free to reopen if you have any further updates.


Feature Request: Color Bulb Support

Problem
Support for Color Bulb
Solution
Add Support for Color Bulb
Alternatives
Use OpenAPI for now
Additional context
No response

@cocoabox anyway you can help with this?

@bdraco
An insight you can give on Color Bulbs to make them better for this module?
Advertisement:
https://github.com/OpenWonderLabs/node-switchbot/blob/28338744143215e233236d8ff39635a3be1989e0/lib/switchbot-advertising.js#L354-L399
Push Changes:
https://github.com/OpenWonderLabs/node-switchbot/blob/28338744143215e233236d8ff39635a3be1989e0/lib/switchbot-device-wobulb.js#L7-L79


Setup linting to run from root

Made a few changes so we can run a lint script from the project root. Notes in commit messages.

Already there!
https://github.com/encrypted-dev/userbase/blob/master/package.json#L65


Adding QSon to the benchmark

I wonder if QSon supports all the features of this benchmark. QSon is now used in Quarkus as the default JSon mapper and is pretty fast (does bytecode generation)

@gsmet sorry, totally mixed up my tabs and opened an issue on the wrong repo ;o)

Well, my comment is not about the wrong repo, it's about the wrong assertion :).


conversation_log.json not created

Troubleshooting suggestions? thanks.
Traceback (most recent call last):
File "C:\Users...\Desktop\storm-main\storm-main\scripts\run_storm_wiki_gpt.py", line 111, in
main(parser.parse_args())
File "C:\Users...\Desktop\storm-main\storm-main\scripts\run_storm_wiki_gpt.py", line 68, in main
runner.run(
File "C:\Users...\Desktop\storm-main\storm-main\src\storm_wiki\engine.py", line 286, in run
information_table = StormInformationTable.from_conversation_log_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users...\Desktop\storm-main\storm-main\src\storm_wiki\modules\storm_dataclass.py", line 145, in from_conversation_log_file
conversation_log_data = FileIOHelper.load_json(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users...\Desktop\storm-main\storm-main\src\utils.py", line 302, in load_json
with open(file_name, 'r', encoding=encoding) as fr:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: './results/gpt\newtest\conversation_log.json'

Hi, could you provide the command you’re trying to run?

C:\Users...\Desktop\storm-main\storm-main>python scripts\run_storm_wiki_gpt.py
Topic: newtest
The results directory "newtest" is created, but empty.

It's expected behavior. You have to manually set command line arguments to define which stages of the pipeline you're planning to run. We declare these arguments here.
If you're going to run all stages of the pipeline, these arguments are needed --do-research --do-generate-outline --do-generate-article. You may want to add --do-polish-article if you hope to add summary / lead section of the article, and --remove-duplicate if hope to remove duplicate contents across different sections (this may lead to higher costs and much longer running time).

Thank you. I thought the run_storm prompt set the default as true. Appears to be running now. Looking forward to exploring storm's capabilities.

Thanks again.
Getting further -- storm_gen_outline.txt, conversation_log.json, direct_gen_outline.txt, and raw_search_results.json all created and look promising, but tripping up after that (see below). Will see if I can get further tomorrow…
Best regards, Joel
C:\Users\baum\Desktop\storm-main\storm-main>python scripts\run_storm_wiki_gpt.py --do-research --do-generate-outline --do-generate-article --do-polish-article --remove-duplicate
Topic: vancouver island beaches
Traceback (most recent call last):
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 491, in _make_request
raise new_e
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 1099, in _validate_conn
conn.connect()
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connection.py", line 653, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connection.py", line 806, in ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\ssl.py", line 465, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\ssl.py", line 509, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 455, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 1042, in _create
self.do_handshake()
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 1320, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 847, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\retry.py", line 470, in increment
raise reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\util.py", line 38, in reraise
raise value.with_traceback(tb)
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 491, in _make_request
raise new_e
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 1099, in _validate_conn
conn.connect()
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connection.py", line 653, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connection.py", line 806, in ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\ssl.py", line 465, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\ssl.py", line 509, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 455, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 1042, in _create
self.do_handshake()
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 1320, in do_handshake
self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\baum\Desktop\storm-main\storm-main\scripts\run_storm_wiki_gpt.py", line 118, in
main(parser.parse_args())
File "C:\Users\baum\Desktop\storm-main\storm-main\scripts\run_storm_wiki_gpt.py", line 75, in main
runner.run(
File "C:\Users\baum\Desktop\storm-main\storm-main\src\storm_wiki\engine.py", line 301, in run
draft_article = self.run_article_generation_module(outline=outline,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\Desktop\storm-main\storm-main\src\interface.py", line 376, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\Desktop\storm-main\storm-main\src\storm_wiki\engine.py", line 210, in run_article_generation_module
draft_article = self.storm_article_generation.generate_article(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\Desktop\storm-main\storm-main\src\storm_wiki\modules\article_generation.py", line 56, in generate_article
information_table.prepare_table_for_retrieval()
File "C:\Users\baum\Desktop\storm-main\storm-main\src\storm_wiki\modules\storm_dataclass.py", line 154, in prepare_table_for_retrieval
self.encoder = SentenceTransformer('paraphrase-MiniLM-L6-v2')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\sentence_transformers\SentenceTransformer.py", line 205, in init
modules = self._load_auto_model(
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\sentence_transformers\SentenceTransformer.py", line 1197, in _load_auto_model
transformer_model = Transformer(
^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\sentence_transformers\models\Transformer.py", line 36, in init
self._load_model(model_name_or_path, config, cache_dir, **model_args)
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\sentence_transformers\models\Transformer.py", line 65, in _load_model
self.auto_model = AutoModel.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\transformers\models\auto\auto_factory.py", line 563, in from_pretrained
return model_class.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\transformers\modeling_utils.py", line 3306, in from_pretrained
resolved_archive_file = cached_file(pretrained_model_name_or_path, filename, **cached_file_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\transformers\utils\hub.py", line 398, in cached_file
resolved_file = hf_hub_download(
^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\huggingface_hub\utils_validators.py", line 119, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\huggingface_hub\file_download.py", line 1492, in hf_hub_download
http_get(
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\huggingface_hub\file_download.py", line 456, in http_get
r = _request_wrapper(
^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\huggingface_hub\file_download.py", line 392, in _request_wrapper
response = get_session().request(method=method, url=url, **params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\huggingface_hub\utils_http.py", line 68, in send
return super().send(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)), '(Request ID: f12616cb-18d0-4bda-8782-4bb46510b2a2)')
From: Yucheng-Jiang @.>
Sent: Wednesday, April 24, 2024 7:27 PM
To: stanford-oval/storm @.>
Cc: Joel Baum @.>; Author @.>
Subject: Re: [stanford-oval/storm] conversation_log.json not created (Issue #31)
You don't often get email from<EMAIL_ADDRESS>Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification
It's expected behavior. You have to manually set command line arguments to define which stages of the pipeline you're planning to run. We declare these arguments herehttps://github.com/stanford-oval/storm/blob/5d21c393e64d8c877ae6a9db3a0df0a72a926b33/examples/run_storm_wiki_gpt.py#L91-L99.
If you're going to run all stages of the pipeline, these arguments are needed --do-research --do-generate-outline --do-generate-article. You may want to add --do-polish-article if you hope to add summary / lead section of the article, and --remove-duplicate if hope to remove duplicate contents across different sections (this may lead to higher costs and much longer running time).
—
Reply to this email directly, view it on GitHubhttps://github.com/stanford-oval/storm/issues/31#issuecomment-2076205792, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BICDIXGBJ5MUY5LXD3LKYBLY7BSVZAVCNFSM6AAAAABGX5WBYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZWGIYDKNZZGI.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>Introduction
Geography
Location and Access
Climate
Major Beaches of Vancouver Island
Chesterman Beach
Overview
Activities and Amenities
Surfing
Kayak Tours
Tidal Rock Pools
Environmental Impact and Conservation Efforts
Saratoga Beach
Overview
Activities and Amenities
Swimming
Beach Access Upgrades
Environmental Impact and Conservation Efforts
Cape Scott Provincial Park Beach
Overview
Activities and Amenities
Wilderness Camping
Hiking Trails
Environmental Impact and Conservation Efforts
Kye Bay
Overview
Activities and Amenities
Sandy Beaches and Tidal Pools
Environmental Impact and Conservation Efforts
Long Beach, Vancouver Island
Overview
Activities and Amenities
Beachcombing
Whale Watching
Environmental Impact and Conservation Efforts
Conservation Efforts
Overview of Environmental Impact
Habitat Destruction
Threats to Wildlife
Organizations and Initiatives
Raincoast
Surfrider Foundation
Cetus Research and Conservation Society
Environmental Monitoring Programs
PollutionTracker
Indigenous Peoples and Cultural Significance
Historical Use of Beaches
Impact of European Settlement
Current Indigenous Involvement in Conservation
Activities and Amenities
Surfing
Hiking and Wildlife Viewing
Camping and Picnicking
Beachcombing
Challenges
Climate Change Impact
Pollution and Human Impact
Conservation and Management Challenges
Introduction
Geography
Location and Access
Climate
Major Beaches of Vancouver Island
Long Beach
Overview
Activities and Wildlife
Chesterman Beach
Overview
Activities and Facilities
Rathtrevor Beach
Overview
Park Features and Camping
Parksville Beach
Overview
Festivals and Events
Conservation Efforts
Marine Protected Areas
Beach Clean-up Initiatives
Activities and Amenities
Surfing
Hiking and Wildlife Viewing
Camping and Picnicking
Beachcombing
Challenges
Climate Change Impact
Pollution and Human Impact

Hey guys sorry for the delay
On Thu, Apr 25, 2024, 12:11 AM jacb9 @.***> wrote:

Thanks again.
Getting further -- storm_gen_outline.txt, conversation_log.json,
direct_gen_outline.txt, and raw_search_results.json all created and look
promising, but tripping up after that (see below). Will see if I can get
further tomorrow…
Best regards, Joel
C:\Users\baum\Desktop\storm-main\storm-main>python
scripts\run_storm_wiki_gpt.py --do-research --do-generate-outline
--do-generate-article --do-polish-article --remove-duplicate
Topic: vancouver island beaches
Traceback (most recent call last):
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py",
line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py",
line 491, in _make_request
raise new_e
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py",
line 467, in _make_request
self._validate_conn(conn)
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py",
line 1099, in _validate_conn
conn.connect()
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connection.py",
line 653, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connection.py",
line 806, in ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\ssl.py",
line 465, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls,
server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\ssl.py",
line 509, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\ssl.py",
line 455, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\ssl.py",
line 1042, in _create
self.do_handshake()
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\ssl.py",
line 1320, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [WinError 10054] An existing connection was forcibly
closed by the remote host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\adapters.py",
line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py",
line 847, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\retry.py",
line 470, in increment
raise reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\util.py",
line 38, in reraise
raise value.with_traceback(tb)
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py",
line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py",
line 491, in _make_request
raise new_e
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py",
line 467, in _make_request
self._validate_conn(conn)
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py",
line 1099, in _validate_conn
conn.connect()
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connection.py",
line 653, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connection.py",
line 806, in ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\ssl.py",
line 465, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls,
server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\ssl.py",
line 509, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\ssl.py",
line 455, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\ssl.py",
line 1042, in _create
self.do_handshake()
File "C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\ssl.py",
line 1320, in do_handshake
self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.',
ConnectionResetError(10054, 'An existing connection was forcibly closed by
the remote host', None, 10054, None))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"C:\Users\baum\Desktop\storm-main\storm-main\scripts\run_storm_wiki_gpt.py",
line 118, in
main(parser.parse_args())
File
"C:\Users\baum\Desktop\storm-main\storm-main\scripts\run_storm_wiki_gpt.py",
line 75, in main
runner.run(
File
"C:\Users\baum\Desktop\storm-main\storm-main\src\storm_wiki\engine.py",
line 301, in run
draft_article = self.run_article_generation_module(outline=outline,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\baum\Desktop\storm-main\storm-main\src\interface.py", line
376, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\Desktop\storm-main\storm-main\src\storm_wiki\engine.py",
line 210, in run_article_generation_module
draft_article = self.storm_article_generation.generate_article(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\Desktop\storm-main\storm-main\src\storm_wiki\modules\article_generation.py",
line 56, in generate_article
information_table.prepare_table_for_retrieval()
File
"C:\Users\baum\Desktop\storm-main\storm-main\src\storm_wiki\modules\storm_dataclass.py",
line 154, in prepare_table_for_retrieval
self.encoder = SentenceTransformer('paraphrase-MiniLM-L6-v2')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\sentence_transformers\SentenceTransformer.py",
line 205, in init
modules = self._load_auto_model(
^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\sentence_transformers\SentenceTransformer.py",
line 1197, in _load_auto_model
transformer_model = Transformer(
^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\sentence_transformers\models\Transformer.py",
line 36, in init
self._load_model(model_name_or_path, config, cache_dir, **model_args)
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\sentence_transformers\models\Transformer.py",
line 65, in _load_model
self.auto_model = AutoModel.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\transformers\models\auto\auto_factory.py",
line 563, in from_pretrained
return model_class.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\transformers\modeling_utils.py",
line 3306, in from_pretrained
resolved_archive_file = cached_file(pretrained_model_name_or_path,
filename, **cached_file_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\transformers\utils\hub.py",
line 398, in cached_file
resolved_file = hf_hub_download(
^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\huggingface_hub\utils_validators.py",
line 119, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\huggingface_hub\file_download.py",
line 1492, in hf_hub_download
http_get(
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\huggingface_hub\file_download.py",
line 456, in http_get
r = _request_wrapper(
^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\huggingface_hub\file_download.py",
line 392, in _request_wrapper
response = get_session().request(method=method, url=url, **params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py",
line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py",
line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\huggingface_hub\utils_http.py",
line 68, in send
return super().send(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\Users\baum\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\adapters.py",
line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (ProtocolError('Connection aborted.',
ConnectionResetError(10054, 'An existing connection was forcibly closed by
the remote host', None, 10054, None)), '(Request ID:
f12616cb-18d0-4bda-8782-4bb46510b2a2)')
From: Yucheng-Jiang @.>
Sent: Wednesday, April 24, 2024 7:27 PM
To: stanford-oval/storm @.>
Cc: Joel Baum @.>; Author @.>
Subject: Re: [stanford-oval/storm] conversation_log.json not created
(Issue #31)
You don't often get email from<EMAIL_ADDRESS>Learn why this is
importanthttps://aka.ms/LearnAboutSenderIdentification
It's expected behavior. You have to manually set command line arguments to
define which stages of the pipeline you're planning to run. We declare
these arguments here<
https://github.com/stanford-oval/storm/blob/5d21c393e64d8c877ae6a9db3a0df0a72a926b33/examples/run_storm_wiki_gpt.py#L91-L99>.
If you're going to run all stages of the pipeline, these arguments are
needed --do-research --do-generate-outline --do-generate-article. You may
want to add --do-polish-article if you hope to add summary / lead section
of the article, and --remove-duplicate if hope to remove duplicate contents
across different sections (this may lead to higher costs and much longer
running time).
—
Reply to this email directly, view it on GitHub<
https://github.com/stanford-oval/storm/issues/31#issuecomment-2076205792>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/BICDIXGBJ5MUY5LXD3LKYBLY7BSVZAVCNFSM6AAAAABGX5WBYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZWGIYDKNZZGI>.
You are receiving this because you authored the thread.Message ID:
<EMAIL_ADDRESS>Introduction
Geography
Location and Access
Climate
Major Beaches of Vancouver Island
Chesterman Beach
Overview
Activities and Amenities
Surfing
Kayak Tours
Tidal Rock Pools
Environmental Impact and Conservation Efforts
Saratoga Beach
Overview
Activities and Amenities
Swimming
Beach Access Upgrades
Environmental Impact and Conservation Efforts
Cape Scott Provincial Park Beach
Overview
Activities and Amenities
Wilderness Camping
Hiking Trails
Environmental Impact and Conservation Efforts
Kye Bay
Overview
Activities and Amenities
Sandy Beaches and Tidal Pools
Environmental Impact and Conservation Efforts
Long Beach, Vancouver Island
Overview
Activities and Amenities
Beachcombing
Whale Watching
Environmental Impact and Conservation Efforts
Conservation Efforts
Overview of Environmental Impact
Habitat Destruction
Threats to Wildlife
Organizations and Initiatives
Raincoast
Surfrider Foundation
Cetus Research and Conservation Society
Environmental Monitoring Programs
PollutionTracker
Indigenous Peoples and Cultural Significance
Historical Use of Beaches
Impact of European Settlement
Current Indigenous Involvement in Conservation
Activities and Amenities
Surfing
Hiking and Wildlife Viewing
Camping and Picnicking
Beachcombing
Challenges
Climate Change Impact
Pollution and Human Impact
Conservation and Management Challenges
Introduction
Geography
Location and Access
Climate
Major Beaches of Vancouver Island
Long Beach
Overview
Activities and Wildlife
Chesterman Beach
Overview
Activities and Facilities
Rathtrevor Beach
Overview
Park Features and Camping
Parksville Beach
Overview
Festivals and Events
Conservation Efforts
Marine Protected Areas
Beach Clean-up Initiatives
Activities and Amenities
Surfing
Hiking and Wildlife Viewing
Camping and Picnicking
Beachcombing
Challenges
Climate Change Impact
Pollution and Human Impact
—
Reply to this email directly, view it on GitHub
https://github.com/stanford-oval/storm/issues/31#issuecomment-2076367646,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BHVMWDWJJ4KLGAYUVOTXEOTY7CF67AVCNFSM6AAAAABGX5WBYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZWGM3DONRUGY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@jacb9 We haven't ran into this problem before. Here's some related posts I find.

https://github.com/RallyTools/RallyRestToolkitForPython/issues/179
https://stackoverflow.com/questions/50771343/python3-requests-connectionreseterror10054-when-opening-a-picture

I suspect it has something to do with your proxy configuration.
This line is raising the error
  File "{root}\storm-main\storm-main\src\storm_wiki\modules\storm_dataclass.py", line 154, in prepare_table_for_retrieval
    self.encoder = SentenceTransformer('paraphrase-MiniLM-L6-v2')

A quick workaround is to download this model to local filesystem and import the model locally.

Thanks.
Download which model? (Module?) From where?
On Apr 25, 2024 7:23 a.m., Yucheng-Jiang @.> wrote:
You don't often get email from @. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification
@jacb9https://github.com/jacb9 We haven't ran into this problem before. Here's some related posts I find.

RallyTools/RallyRestToolkitForPython#179https://github.com/RallyTools/RallyRestToolkitForPython/issues/179
https://stackoverflow.com/questions/50771343/python3-requests-connectionreseterror10054-when-opening-a-picture

I suspect it has something to do with your proxy configuration.
This line is raising the error
File "{root}\storm-main\storm-main\src\storm_wiki\modules\storm_dataclass.py", line 154, in prepare_table_for_retrieval
self.encoder = SentenceTransformer('paraphrase-MiniLM-L6-v2')
A quick workaround is to download this model to local filesystem and import the model locally.
—
Reply to this email directly, view it on GitHubhttps://github.com/stanford-oval/storm/issues/31#issuecomment-2077331830, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BICDIXD22DXMZO3LPAQG4NDY7EGV3AVCNFSM6AAAAABGX5WBYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZXGMZTCOBTGA.
You are receiving this because you were mentioned.Message ID: @.***>

@jacb9 sentence transformer paraphrase-MiniLM-L6-v2 from hugging face.


Configuration on Demand + Kotlin DSL + KMP is flaky

After upgrading from 6.5 to 6.7.1, our CI builds went from pretty flaky to extremely flaky.
Expected Behavior
CI and local builds to fail similarly.
Current Behavior
Caused by: org.gradle.api.internal.provider.MissingValueException: Cannot query the value of task ':appCore:compileKotlinIos' property 'compilation' because it has no value available. happens nearly every run on CI. I have not been able to reproduce locally on a Macbook or a Linux workstation, with or without a daemon.
Context
This project is a Kotlin-multiplatform project, using kotlin-dsl. CI is running on CircleCI using the latest version of their Android Orb (with a manual patch for https://github.com/CircleCI-Public/android-orb/issues/21).
Steps to Reproduce
Removing --configure-on-demand fixed the flake.
Your Environment
Build scan URL: Can provide privately.
Build Cache | On
Configure on demand | On
Daemon | On
Parallel | On
Background build scan publication | Off
Continue on failure | Off
Continuous | Off
Dry run | Off
Offline | Off
Re-run tasks | Off
Refresh dependencies | Off
Task inputs file capturing | Off
Configuration Cache | Not captured
File system watching | Not captured

Operating system | Linux 4.15.0-1092-aws
CPU cores | 10 cores
Max Gradle workers | 10 workers
Java runtime | Oracle OpenJDK Runtime Environment 11.0.10+9
Java VM | Oracle OpenJDK 64-Bit Server VM 11.0.10+9 (mixed mode, sharing)
Max JVM memory heap size | 1 GiB

Sorry that you're having trouble with Gradle!
Your issue lacks information about how to reproduce the problem you're having. A reproducer project can really help us track down and fix your problem quicker.  We may also be able to suggest workarounds or ways to avoid the problem if we can reproduce it.
You can also try a more recent version of Gradle (6.9 or 7.0.2 at this time).

Please note that we still don't recommend using configuration-on-demand with Kotlin DSL.

The issue lacks the reproducer, so we cannot proceed. The Kotlin DSL is known to be unstable around configuration on demand.

This issue was opened by request of Nelson as a tracking issue/search issue. It is definitely still buggy, I'd leave the issue open until the stability is improved.


⚠ Blutopia has degraded performance

In 4dfeb0e, Blutopia ($BLU) experienced degraded performance:

HTTP code: 200
Response time: 13629 ms

Resolved: Blutopia performance has improved in 2d09cbf after 5 hours, 28 minutes.


Physical layer testing

Testing different physical layer implementations for compatibility and compliance.

@jamesadevine - does this issue require changes to the protocol? If not, perhaps we need a testing label.


Tao viewer store

:tada: This PR is included in version 8.0.2-rc.1 :tada:
The release is available on:

GitHub release
npm package (@next dist-tag)

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 8.0.2 :tada:
The release is available on:

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


How to regroup endpoints by namespace?

by name_parent is not good.
I write this
url(r'^api/v1/', include('game.urls', namespace='game')),
url(r'^api/v1/', include('myuser.urls', namespace='account')),
and the group name is 'api/v1'

I want the same. I saw this pull https://github.com/manosim/django-rest-framework-docs/pull/48, but I not found a way to group the services by namespace yet. Is it possible to do this?


Update documentation to resolve Vite plugin order issue

Please describe the changes this PR makes and why it should be merged:
This PR updates the documentation to resolve an issue ( #405 ) where the Vite plugin order between MillionJS and React plugin caused the application to fail. The React plugin was modifying the AST before MillionJS could compile the components, changing their structure. By explicitly setting the enforce property to 'default' for the React plugin in the documentation, we ensure that the MillionJS compiler runs first, resolving the issue.
Status

[ ] Code changes have been tested against prettier, or there are no code changes
[ ] I know how to update typings and have done so, or typings don't need updating

Semantic versioning classification:

[ ] This PR changes the codebase

[ ] This PR includes breaking changes (methods removed or renamed, parameters moved or removed)
[ ] This PR changes the internal workings with no modifications to the external API (bug fixes, performance improvements)

[x] This PR only includes non-code changes, like changes to documentation, README, etc.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 37.973%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1205

Relevant Lines:
3254

💛  - Coveralls


Remove v1alpha1 (cherry-pick from master)

Remove the old API and all code related to the conversion. Searched for
all instances of "v1a1" and "v1alpha1" and removed them. Looked for
obsolete annotations like "managedBy" and "subnamespaceOf" and removed
those too.
Tested: all unit, integration and e2e tests pass
cherry-picked from #1297
Fix #1274

/assign @adrianludwin
/assign @yiqigao217

Whoops, I gave @GinnyJI the wrong instructions, this shouldn't be cherry-picked.
/close


Clean up fields to display in search results export file

Why is this issue important?
after new search was implemented, the fields in the csv export file were not updated to reflect new fields or remove fields that are not relevant to users.
Current State
The following fields show on My Grants and Browse Grants results table:

Title
Viewed by
Interested Agencies
Status - (shows "Opportunity Status")
Opportunity Category
Cost Sharing
Award Floor
Award Ceiling
Open Date
Close Date

The export file includes all these fields, as well as:

Opportunity Number
Agency Code
Grant ID
URL (this is the grants.gov url)

Expected State
Add the following fields as columns to the export file:

Funding Type
Eligibility
Appropriations Bill
Agency Code

Rename the following fields on export file:

The column titled "Status" should be named "Opportunity Status"

Implementation Plan
tbd
Relevant Code Snippets
No response

For eligibility, each grant has multiple eligibility codes, sometimes even as many as 15. Is the proposal to map these to their corresponding phrases e..g "Public housing authorities/Indian housing authorities" and have a column with each of those phrases in a delimited list or is there another way to display Eligibility more succinctly?

@replicantSocks yes, having the mapped phrases show in a delimited list is the proposal. The phrases should match what is displayed on the dropdown in Search for the Eligibility field

tested in staging and export looks great!


Create form for adding directions

As a  I want to <....> so that <...>
Description
Describe feature functionality
Add mockup if needed
Acceptance Criteria
A clear and concise description of what you want to happen.
Epic link
E.g.: Epic #100 Epic
Labels to be added
"User story", Correspondind Functionality (e.g. User), Priority ("pri: "), "Corresponding Epic"
Tasks

[ ] sample task.

Done in PR above


Community logo gets replaced by placeholder

The community logo gets replaced by the placeholder even though the logo is available.
See https://github.com/inveniosoftware/invenio-theme/blob/master/invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js#L20
Note: .has-placeholder was removed from all images to prevent this bug.

@jennur this requires a chain of releases, right?


[BUG] cpdef enum not defined (cython 3.0.0b1)

Describe the bug
After upgraded to cython 3.0.0b1, several modules using cdpef enum broke.
It compiles, but I cannot import the enum in python when there's an extension class using that enum in the same file.
Please see example below for clear explanation.
Code to reproduce the behaviour:
Below is an example that fully replicates the problem:
test_cython_enum_bug.pxd:
cpdef enum MyEnum:
    A

cdef class MyExtClass:

    cpdef double foo(self, MyEnum ctype = *) except *

test_cython_enum_bug.pyx
cdef class MyExtClass:

    cpdef double foo(self, MyEnum ctype = MyEnum.A) except *:
        return 1.0

Now, after complied, try import either MyEnum or MyExtClass, you will get Error:
NameError: name 'MyEnum' is not defined
Expected behaviour
This works fine for all previous versions.
OS
Linux
Python version
3.8.10
Cython version
3.0.0b1
Additional context
This broke part of my production code, so please help...

Duplicate https://github.com/cython/cython/issues/5269
It's a bug so you most likely want to pin to the previous working Cython version


An error occurred building maix-bit:nsh

With nuttx and apps both in master branch(commit id af2b4914208cad676d64823f5e0bf08871617d80) , i built nuttx image using command:
./tools/configure.sh -l maix-bit:nsh
make

And an error occurred:

I checkout to releases/11.0 branch and built image with the same command. No error occurred.
I`m not quite familiar with nuttx. Any idea how to fix this? Thanks.

could you try this version:
https://github.com/apache/nuttx/blob/master/tools/ci/docker/linux/Dockerfile#L180

Thanks, I`ll try this later.
But it seems that riscv cross cross compile tools is not the root cause. The branch release/11.0 can be successfully built using riscv64-unknown-elf-gcc (12.1.0 on my ubuntu 22.04).

But maix-bit/nsh pass the daily ci https://github.com/apache/nuttx/actions/runs/3622886642/jobs/6108177030:
====================================================================================
Configuration/Tool: maix-bit/nsh
------------------------------------------------------------------------------------
  Cleaning...
  Configuring...
  Building NuttX...
  Normalize maix-bit/nsh

So, it should the environment difference.

Look like it's better to update the toolchain used by ci to the last version and fix the compiler issue.

Let's close this issue if you have more comment, please reopen again.


feat: add font-awesome icons, add navigation/filter,

What type of PR is this? (check all applicable)

[x] ♻ Refactor
[x] ✨ Feature
[ ] 🐛 Bug Fix
[ ] 👷 Optimization
[ ] 📝 Documentation Update
[ ] 🔖 Release
[ ] 🚩 Other

Description

This PR [adds/removes/fixes/replaces] this [feature/bug/etc].
Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Added tests?

[ ] 👍 yes
[x] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added to documentation?

[ ] 📜 readme
[ ] 📜 contributing.md
[ ] 📓 docs
[ ] 📕 storybook
[x] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

@kelvinsekx thanks for the contribution. Can you also update the description and add links to what issue(s) this fixes?


Add host failure handling

Previously when restarting node with increased assigned resources happen there was a panic due to wrong number of shards.
Added host failure handling to fix that.
Fixes: #145

Q: why isn't this fix going to upstream?

It is, I created this PR by mistake, upstream PR -> https://github.com/gocql/gocql/pull/1729


core(progress-circle): support an explicit label next to the circular icon

This is not a duplicate or an alternative proposal to https://github.com/vmware/clarity/issues/6334, both those things would be independently valuable. There is however some overlap, which I'll describe below.
Summary

What is the change?

Having the ability to include a text label on the right side (in LTR languages) of the circular icon.

Why should it go in Clarity?

While this can totally be done outside of this element (which is what we are currently doing, in fact), having this a part of the Clarity element ensures consistency and improved accessibility (I'll get to that) across projects using Clarity.

Does this change impact existing behaviors? If so how?

It does not as the label would be optional.

If this change introduces a new behavior, is this behavior accessible?

This should be accessible by design (it is just text, in the end). However, this might conflict with the aria-label on the surrounding cds-progress-circle element, especially if a default one is generated from https://github.com/vmware/clarity/issues/6334. In this case, the default could then take the value of the new label attribute, or be empty since the text is a more accessible solution than aria-label.
Use case
It can be helpful in some cases to display a specific loading message / label, for example when:

There are more than 1 distinct elements loading at a given time, to inform the user about what is being loaded.
What is being loaded is not the direct response of a user action, so the user might not know what is being loaded and a custom message gives more appropriate feedback.

Examples
This can be seen when loading https://console.cloud.vmware.com/csp/gateway/portal/#/consumer :

At CloudHealth, we currently have this component:

which we are replacing with a simple progress circle (hence the need for https://github.com/vmware/clarity/issues/6334) in most cases. However, we support giving the component a custom loading message:

API

There is at least one new attribute to support here, e.g. label or message, etc.
It might be good to provide an option where to locate the label, e.g. a position attribute. left/right might not be good for RTL languages (therefore before/after might be better), but I think for consistency purposes it would be a good idea to always keep the icon on the left of the label. Then said position attribute would only support top and bottom values.
Also for consistency purposes, the label could be sized after the same size attribute than for the icon. They would "scale" together.

Conclusion
I would be happy to help with this if you think this is a valuable addition to Clarity.

@astorije - I think that this could be just a pattern on how to structure the progress circle component and adding additional content to it. Our goal is to have small and atomic components that could be used to create bigger complex components that could serve whatever is required.
We had some internal discussions on starting to provide design patterns on few common components without adding additional configuration to existing components - this way we gonna prevent having a lot of functionality that may or may not be useful for everyone.
I think here @mathisscott and @coryrylan - could say more on the topic.

Hi @astorije
I think this is something that is best accomplished using the layouts and typography provided with Core already.

Hi @astorije :
I think it depends on context. If we have a label like this next to a progress circle inside of a form control, I think the font-weight would depend on whether the form control mimicked an input or a radio/checkbox control.
If it's used as a loading notification, it likewise depends on how prominent the loading message needs to be. A heavier font weight adds visual noise so it's probably not appropriate if the loading message is not meant to draw the attention of the user.
From the perspective of Clarity Core, this is something we would allow a custom property for. So apps could customize it as they need to.
I'm not sure if that is a helpful response. But I will ping @colinreedmiller for guidance on this topic as well.

@astorije
Clarity Core takes the approach of limited sizes suggested for specific uses, with weight (and line height) flexible to provide latitude to adjust hierarchy. What this means in this case is that you are free to select the size that is appropriate. This should be straight forward because related components (such as form elements as Scott mentions) will provide the context. This 'consistent size' approach is best practice for typography for visual balance and consistency - by increasing or reducing weight you can get the right degree of importance.
In your case I'd suggest mirroring the size of what is nearby / related and reducing the weight since the prominence is that of an annotation or extra clarification of the circle. To get directly to it: I'd be surprised if it was anything other than: Secondary (13px) REGULAR
--cds-global-typography-secondary-font-size
--cds-global-typography-font-weight-regular
--cds-global-typography-color-300


The “Edit Avatar” page is displayed after tapping the avatar on the “Profile” page

Description
The “Edit Avatar” page is displayed after tapping the avatar on the “Profile” page
Preconditions:

The site is opened https://goodqa.netlify.com
The user is logged in

Steps to reproduce:

Click the avatar on the main page
Click the avatar on the “Profile” page

Actual result: The “Edit Avatar” page is displayed after tapping the avatar on the “Profile” page
Expected result: The “Edit Avatar” page is not displayed after tapping the avatar on the “Profile” page. The “Edit Avatar” page is displayed after tapping the avatar on the “Edit Profile” page
Supporting data
Env https://goodqa.netlify.com
iPhone6 12.3.1, Safari
https://www.screencast.com/t/onErvjPJCwHo

@qatests1001 not a bug


Enter the page will automatically do a check

Hello, I am a novice just use vuelidate, I have a doubt, the use of @blur, just enter the page will automatically do a check. I would like to ask what configuration can be entered in the first page of the time do not check it.
Here is my code.
Looking forward to your reply. Thank you!!!
template
<input type="text"  v-model.trim="mobile" @blur="$v.mobile.$touch()">
mobile have problem

script
export default{
        name: 'login',
        data() {
            return {
                mobile:''
            };
        },
        validations: {
            mobile: {
                check:function (value) {
                    if(!(/^1[34578]\d{9}$/.test(value))){
                        console.log('mobile have problem');
                        return false;
                    }
                    return true;
                }
            },
        },

To fix your issue, change the second line of the template to
mobile have problem

Only the $error attribute is affected by calls to $touch() and $reset(). The attribute you tried is calculated directly from the results of validation methods. So is the $invalid attribute.
There's still another problem. Users of your website may click on your input, decide they do not want to write anything, and click on another input. Then, the @blur error will run and an error will appear. If you want to validate after something has been entered, you should replace the use of @blur with @change:
<input type="text" v-model.trim="mobile" @change="$v.mobile.$touch()">

Now it should work perfectly.

thanks @pczarn !!!
Maybe I did not describe it clearly.
I doubt the moment when I entered the page, automatically do @ blue calibration. I do not think so.
I just want to click on the input box, the loss of focus, then check.
After I do the test, adding this will automatically trigger the check. Removed after there is no problem.
mobile have problem
So I made a change, to achieve the requirements. I've customized a flag bit : ‘isMobile’
template
<input type="text"  v-model.trim="mobile" @blur="$v.mobile.$touch()">
mobile have problem

script
export default{
        name: 'login',
        data() {
            return {
                mobile:'',
                isMobile:'true'
            };
        },
        validations: {
            mobile: {
                check:function (value) {
                    if(!(/^1[34578]\d{9}$/.test(value))){
                        console.log('mobile have problem');
                        return false;
                    }
                    return true;
                }
            },
        },

Maybe you mean after entering the page you see 'mobile have problem' in the console, which means a check runs, but you don't expect a check. Yes, it runs the code for validation when the component is created and every time the input changes. It works like this:

you first enter the page
the check function runs
now, mobile is ''

and $v.mobile.check is true, because an empty mobile is correct
and $v.mobile.$invalid is true, because an empty mobile is incorrect
and $v.mobile.$dirty is false, because the input was not touched
and $v.mobile.$error is false, because $v.mobile is not dirty

you click on the input box
you lose focus

$v.mobile.$touch() is called
now, $v.mobile.$dirty is true

mobile didn't change

so $v.mobile.check and $v.mobile.$invalid are still the same
and $v.mobile.$error is true, because $v.mobile is dirty and invalid

So don't worry about the check function, it just does a test for an empty mobile number, but it does that test as soon as possible, before you touch the input box. Put this in the template
mobile have problem

Hi,
I have kind of the same problem but with the 'required' validation, whenever the component is displayed the validation runs, and it marks all the fields as invalid, because all of them are required, as for user experience there should be an option to prevent auto-validation, and bind it only to the specified event.
Example template :
`

Invalid email
Email is mandatory

`

The !$v.email.required is being evaluated to false when I access the page for the first time (without even touching the input), displaying the "Email is mandatory" error.
Checking for $v.email.error is not a good thing when you want to display several messages for each type of validation.
One more thing, I've seen that on docs page, that when I access the page for the first time, the 'required' is 'true', which I actually want to achieve myself, but don't know how.

@alexandrustefan One way is to display messages for each type of validation when $error is true, and none of them otherwise. (you may replace $error with $dirty here)

  <input v-bind:class="{ 'uk-form-danger': $v.email.$error }"
         v-model="email" v-on:input="$v.email.$touch()" class="uk-input"
         type="text"<EMAIL_ADDRESS>

    Invalid email
    Email is mandatory

An equivalent solution is to add checks for $dirty in each condition for messages. After all, $error is equivalent to $invalid && $dirty.

  <input v-bind:class="{ 'uk-form-danger': $v.email.$error }"
         v-model="email" v-on:input="$v.email.$touch()" class="uk-input"
         type="text"<EMAIL_ADDRESS>  Invalid email
  Email is mandatory

When I enter the docs, all required fields are false, except for two of them, where true makes sense.


Tuta Info Update to README.md

Information update to encryption algorithm and features of Tuta Mail.

Type

Addition / Amendment / Removal / Spelling or Grammar / Website Update / Misc

Changes

Supporting Material

Affiliation

Checklist

[x] I have read the Contributing guide, and confirmed my PR aligns with the requirements
[x] I have performed a self-review (valid Markdown formatting, spelling, and grammar)
[x] I have indicated whether I have any affiliation with any software / services added
[x] I agree to follow the repositories Contributor Covenant Code of Conduct

I relalise you might not be a developer, so this process may be new to you. If you need any help - let me know :)

Thank you for the help. I have made the changes requested and created a new PR. Please let me know if I missed anything this round.
Best wishes.


Python green run in terminal button

Environment data

VS Code version: 1.53.0
Extension version (available under the Extensions sidebar): v2021.1.502429796
OS and version: macOSX Catalina 10.15.7

Issue
When viewing a Python file in VSCode, I do not see the green run button in the upper right hand like the tutorial shows here: https://code.visualstudio.com/docs/python/python-tutorial#_configure-and-run-the-debugger. I have the extensions enabled for python, but still don't see it.
UPDATE: I think this might be because I have the code runner extension enabled, however I would also like to the the green run with terminal button. Is there a way to enable the green button so I can see both?

@yoberner You are right it's because you have Code Runner installed. There isn't a way currently to have both (you can always disable Code Runner for specific workspaces if you want), but VS Code is working on a change that would let us contribute both buttons simultaneously.


DBM error

Using master branch, with a conda-forge python3.6 stack and running the toast unit tests I get:
Traceback (most recent call last):
  File "/home/kisner/software/toast/lib/python3.6/site-packages/toast/tests/ops_sim_pysm.py", line 192, in test_op_pysm_nosmooth
    units="uK_RJ",
  File "/home/kisner/software/toast/lib/python3.6/site-packages/toast/timing.py", line 43, in df
    return f(*args, **kwargs)
  File "/home/kisner/software/toast/lib/python3.6/site-packages/toast/todmap/sim_det_pysm.py", line 141, in __init__
    map_dist=map_dist,
  File "/home/kisner/software/toast/lib/python3.6/site-packages/toast/todmap/pysm.py", line 76, in __init__
    if init_sky
  File "/home/kisner/software/toast/lib/python3.6/site-packages/toast/timing.py", line 43, in df
    return f(*args, **kwargs)
  File "/home/kisner/software/toast/lib/python3.6/site-packages/toast/todmap/pysm.py", line 124, in init_sky
    output_unit=self._units,
  File "/home/kisner/software/cmbenv/cmbenv_aux/lib/python3.6/site-packages/pysm-3.0.0-py3.6.egg/pysm/sky.py", line 101, in __init__
    component_config, nside=nside, map_dist=map_dist
  File "/home/kisner/software/cmbenv/cmbenv_aux/lib/python3.6/site-packages/pysm-3.0.0-py3.6.egg/pysm/sky.py", line 37, in create_components_from_config
    map_dist=map_dist
  File "/home/kisner/software/cmbenv/cmbenv_aux/lib/python3.6/site-packages/pysm-3.0.0-py3.6.egg/pysm/models/spdust.py", line 53, in __init__
    self.I_ref = self.read_map(map_I, unit=unit_I)
  File "/home/kisner/software/cmbenv/cmbenv_aux/lib/python3.6/site-packages/pysm-3.0.0-py3.6.egg/pysm/models/template.py", line 65, in read_map
    dataurl=self.dataurl,
  File "/home/kisner/software/cmbenv/cmbenv_aux/lib/python3.6/site-packages/pysm-3.0.0-py3.6.egg/pysm/models/template.py", line 200, in read_map
    filename = data.get_pkg_data_filename(path)
  File "/home/kisner/software/cmbenv/cmbenv_python/lib/python3.6/site-packages/astropy/utils/data.py", line 588, in get_pkg_data_filename
    timeout=remote_timeout)
  File "/home/kisner/software/cmbenv/cmbenv_python/lib/python3.6/site-packages/astropy/utils/data.py", line 1012, in download_file
    with shelve.open(urlmapfn) as url2hash:
  File "/home/kisner/software/cmbenv/cmbenv_python/lib/python3.6/shelve.py", line 243, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/home/kisner/software/cmbenv/cmbenv_python/lib/python3.6/shelve.py", line 227, in __init__
    Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
  File "/home/kisner/software/cmbenv/cmbenv_python/lib/python3.6/dbm/__init__.py", line 91, in open
    "available".format(result))
dbm.error: db type is dbm.gnu, but the module is not available

Is the dbm format python version dependent?  Installing the "gdbm" package did not help.

I don't know, it seems an astropy issue, not specific to PySM.
I would try to remove your .astropy folder, you might have created the url cache file with some other version of python that changed the type of dbm?

Indeed, doing
rm -rf ~/.astropy

solved the problem.


Fix txindex for failing txns

Current dependencies on/for this PR:

#1069  👈
feature/pos-networking-and-syncing

This stack of pull requests is managed by Graphite.

Merge activity

Feb 27, 7:58 PM EST: @lazynina started a stack merge that includes this pull request via Graphite.


isNull(ISSUE) doesn't work

This should result in a issue IS NULL OR size(issue) = 0 predicate, but it only tests for null, and the array is empty rather than null.

It was this error this morning:
Caused by: java.lang.NullPointerException
	at brickhouse.udf.collect.JoinArrayUDF.evaluate(JoinArrayUDF.java:42)
	at brickhouse.udf.collect.JoinArrayUDF.evaluate(JoinArrayUDF.java:55)
	at org.apache.hadoop.hive.ql.udf.generic.GenericUDF.initializeAndFoldConstants(GenericUDF.java:174)

and part of the generated query predicate was (issue IS NULL ) which I guessed was the problem.
https://www.gbif.org/occurrence/download/0194643-220831081235567


[BUG] AttributeError: 'Args' object has no attribute 'checkpoints_total_limit'

Prerequisites

[X] I have read the documentation.
[X] I have checked other issues for similar problems.

Backend
Colab
Interface Used
UI
CLI Command
Dreambooth training from the UI. Even setting up checkpoints_total_limit in the config doesnt fix the issue
UI Screenshots & Parameters
No response
Error Logs
Steps: 100% 1/1 [00:04<00:00,  4.97s/it, loss=0.455, lr=0.0001]❌ ERROR  | 2024-03-11 15:47:27 | autotrain.trainers.common:wrapper:91 - train has failed due to an exception: Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/autotrain/trainers/common.py", line 88, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/autotrain/trainers/dreambooth/main.py", line 186, in train
main(_args)
File "/usr/local/lib/python3.10/dist-packages/autotrain/trainers/dreambooth/train.py", line 907, in main
if args.checkpoints_total_limit is not None:
AttributeError: 'Args' object has no attribute 'checkpoints_total_limit'
Additional Information
No response

which model?

Hi, I'm also seeing this error, using stability/stable-diffusion-xl-base-1.0

fixed. please update to 0.7.13 or later


question/support Jenkins pipeline conference app cant run docker image.

Hi, finally i could run your stack.
I was running some jenkins tasks and i found one called Conference App CI Pipeline.
The pipeline is almost build but fails in the last step:
conference-app-4-docker-start-container:
Started by upstream project "conference-app-3-docker-build" build number 1
originally caused by:
Started by upstream project "conference-app-2-sonar" build number 5
originally caused by:
Started by upstream project "conference-app-1-ci" build number 3
originally caused by:
Started by user anonymous
Building in workspace /var/jenkins_home/jobs/conference-app-4-docker-start-container/workspace
[workspace] $ /bin/sh -xe /tmp/hudson6070126676869245828.sh

echo Stopping Docker Container first
Stopping Docker Container first
[workspace] $ /bin/sh -xe /tmp/hudson7051516913140242264.sh
sudo /usr/bin/docker ps -a -q --filter=name=conference-app
sudo /usr/bin/docker stop
/usr/bin/docker: "stop" requires a minimum of 1 argument.
See '/usr/bin/docker stop --help'.

Usage:	docker stop [OPTIONS] CONTAINER [CONTAINER...]
Stop a running container.
Sending SIGTERM and then SIGKILL after a grace period
Build step 'Execute shell' marked build as failure
Finished: FAILURE
My question is "why i am doing wrong?"
Its the first time so there are no container running with this name.
I will try to run first this container and then i will try again this task.

maybe i found the problem:
in the jenkin task to stop containers you have this:
sudo /usr/bin/docker stop $(sudo /usr/bin/docker ps -a -q --filter="name=conference-app")
as you can see.... if there are no container that match with "conference-app"....
then the task fails and the task called run container cant continue.


Running "pack(C => 0xAD)" results in error

In Perl CPAN module "PostScript::File" there is code that calls pack this way:
pack(C => 0xAD)

and that apparently works. However, using the same code in the Raku version
with this P5pack module gives an error about seeing one arg instead of two.
When changing to this call format:
pack('C', 0xAD)

the code compiles and runs okay on Raku.

  This is now on its way to the ecosystem.
In Perl, C => 0xAD is just syntactic sugar for 'C', 0xAD, so that's why that works in Perl.  In Raku, the fat comma indicates a named parameter.  So you either have to support a single named parameter, or change the code as indicated in the issue.  Version 0.11 of P5pack now accepts a single named parameter, as long as there are no positional parameters specified.
Thanks for the spot!

On Tue, Mar 24, 2020 at 05:48 Elizabeth Mattijsen<EMAIL_ADDRESS>wrote:

Version 0.11 of P5pack will support fat comma syntax. This is now on its
way to the ecosystem.
In Perl, C => 0xAD is just syntactic sugar for 'C', 0xAD, so that's why
that works in Perl. In Raku, the fat comma indicates a named parameter. So
you either have to support a single named parameter, or change the code as
indicated in the issue. Version 0.11 of P5pack now accepts a single named
parameter, as long as there are no positional parameters specified.

I had figured out the Perl side, but couldn't understand why Raku didn't
work since I thought it worked in lists. Is this case special in Raku just
because of the parens or?

Thanks for the spot!

My pleasure--and thanks for P5pack!
-Tom

In Raku, a fat comma as a positional becomes a Pair:
$ raku -e 'sub foo($a) { say $a.^name }; foo (a => 42)'
Pair

So it would need at least special handling.  But since P5pack is intended to aid in converting Perl code to Raku, it seemed better to just accept it as a named parameter.  Since we don't have a syntax for accepting a single named parameter in Raku, we need to accept all named parameters, check if there is one, and then use that one.
$ raku -e 'sub foo(*%_) { dd %_.kv }; foo a => 42'
("a", 42).Seq

Hope that made sense  :-)

On Tue, Mar 24, 2020 at 06:16 Elizabeth Mattijsen<EMAIL_ADDRESS>wrote:

In Raku, a fat comma as a positional becomes a Pair:
$ raku -e 'sub foo($a) { say $a.^name }; foo (a => 42)'
Pair
...
Hope that made sense :-)

It does, thanks.
I've been avoiding taking deep dives into things like "positional" so I
think I'll slouch over to the docs right now. :-D
-Tom


mqtt

I am trying to connect local mqtt server via metapublishing, but messages are not comming
if I use "file" option i get normal output
if I try to map 1883 port by docker starting i get
docker: Error response from daemon: driver failed programming external connectivity on endpoint vaserving (c8500fbaa086ec460d88dcda03bf3e2d18a5fb81b1e4fa649a7aec756766addb): Error starting userland proxy: listen tcp <IP_ADDRESS>:1883: bind: address already in use.

It looks like you are trying to start a mqtt server / bind an mqtt server within the vaserving container?
Typically we start the mqtt server in a seperate container, and expose its port 1883. The ports of the vaserving container should not require any additional configuration (i.e. as long as it has access to the local network, which generally by default it should have).
if they are both on the same machine, I would first try starting both with --network host flag to docker run, and use the mqtt address "localhost:1883" in your va serving destination.

Tks


⚠ Bofrost.at has degraded performance

In 25728ea, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2879 ms

Resolved: Bofrost.at performance has improved in fb0f474 after 6 minutes.


controller_config_test.go fails when run with access to Instance Metadata Service

pkg/config/controller_config.go falls back to Instance Metadata Service when the AWS_ACCOUNT_ID, CLUSTER_VPC_ID, or REGION env vars are not set. Its unit test suite -- pkg/config/controller_config_test.go -- assumes that it runs in environment where Instance Metadata Service is not accessible. This makes it fail in environments where Instance Metadata Service is accessible:
--- FAIL: Test_config_init_with_partial_env_var (0.00s)
    controller_config_test.go:22:
        	Error Trace:	/workspace/pkg/config/controller_config_test.go:22
        	Error:      	Expected value not to be nil.
        	Test:       	Test_config_init_with_partial_env_var
--- FAIL: Test_config_init_no_env_var (0.00s)
    controller_config_test.go:32:
        	Error Trace:	/workspace/pkg/config/controller_config_test.go:32
        	Error:      	Expected value not to be nil.
        	Test:       	Test_config_init_no_env_var
FAIL
FAIL	github.com/aws/aws-application-networking-k8s/pkg/config	0.010s

Fixed in https://github.com/aws/aws-application-networking-k8s/pull/338


Disable GA and Disqus when served locally

Its better if Google Analytics and Disqus are disabled when the the site is served locally. Otherwise it messes with the analytics and disqus creates multiple threads which become difficult to merge later.
Jekyll maintains an environment variable which can be accessed useking jekyll.environment and has the value production when deployed on github and development when run locally. This can be leveraged in the theme.
I'm already on it. I'll put a PR soon.
Edit: 100 issues :stuck_out_tongue:

Now I know the commits by @chipset95. If GitHub run this how production, then it is good.
But is necessary remember this to them, some build their site in local and upload in their own hosting.

@joariasl they would just need to add JEKYLL_ENV=production before the jekyll serve in their hosting.


Not the same format

Hi,
Thank you for the nice template.
I followed the instructions but the results are not same: https://imgur.com/tAFFUx3
you can check it from here: https://bolbol2017.github.io/AhmedElsayed1/
P/s. this is my first experience with HTML, so I apologize if the problem concerning basic stuff

Hi!
I believe you didn't change the site's URL in the config file.
Your style sheet is pointing at "https://example.com/style.etc...", when it should be pointing at "https://bolbol2017.github.io/AhmedElsayed1/style.etc...".
You just need to update the baseURL parameter in the config.toml file.
Hope that helps!

Thanks for the hint with the baseURL. I had the same issue but it is working just fine now.

Thanks for the hint with the baseURL. I had the same issue but it is working just fine now.

@ineesalmeida I have the same issue , even when i just try to do hugo server -D or hugo server --disableFastRender
even the syle.$hash.css is loaded,but still same result like @bolbol2017

Are there no errors when you run hugo server -D?
Can you try to inspect the HTML page and see if there are any errors in the console?

No errors. Even in browser style loaded , but same borked result

In bolbol2017's case, the issue was that they were missing the baseURL setting in their config file as I mentioned in a comment above.
If it's not the same issue, I'm not sure how I can help without more information

That's true thank you for the quick answer. My issue that I have Hugo extended installed , but when I follow your read me to reproduce the page even with your example site stuff . The page is broken as you have seen above. I tried with all forks as well . My only idea left that it might be an issue with the snap version of Hugo extended

How do we add another sub tittle like for projects under experiences or change experience to say volunteer work

Never mind, i figured it out, had to create new partial html and css files. Thanks for this repo :)

That's true thank you for the quick answer. My issue that I have Hugo extended installed , but when I follow your read me to reproduce the page even with your example site stuff . The page is broken as you have seen above. I tried with all forks as well . My only idea left that it might be an issue with the snap version of Hugo extended

I had the same issue while hosting on github pages. When you change the example.com to your github url it says it failed to create sass and css files and you wont be able to use >hugo to build the public folder either. what you need to do is leave it at that. Then run build and check if you have public folder. Now make a new docs/ folder in root directory and copy the public folder. Now everywhere where there's https://example.com/ replace them with relative links ./
Now go to github pages and choose docs folder instead of root to host your site. It should work now. Here's mine https://skylanskylion.github.io/aakashcv/


Feat/pupil 1098/sneaky url change

Job Story
When I access a share experiment page with a feature flag
I want the url to sneakily change to have a tracking id
So that I can track if the URL gets shared
Implementation details
See here for the full plan:
https://www.notion.so/oaknationalacademy/Share-tracking-plan-13f26cc4e1b180379bf6c664fd120a77?pvs=4

this is implemented via a custom hook which

retrieves the feature flag
generates a unique id against a hashed key
stores this in a cookie
uses the cookie value first if it's available
modifies the url with the query param

Acceptance criteria

[x]  url updated with share-id and share-method
[x]  hidden behind feature flag
[x]  id is persistent and overrides other ids if provided in the url
[x]  lesson overview
[x]  lesson overview canonical
[x]  download confirmation (canonical and regular)
[x]  lesson listing
[x]  tests

How to test

Go to https://deploy-preview-2997--oak-web-application.netlify.thenational.academy and accept cookies
Go to https://deploy-preview-2997--oak-web-application.netlify.thenational.academy/teachers/lessons/transverse-waves
You should see the url change to https://deploy-preview-2997--oak-web-application.netlify.thenational.academy/teachers/lessons/transverse-waves?sid-9226e5=UNIQUEIDHERE&sm=0
Go to https://deploy-preview-2997--oak-web-application.netlify.thenational.academy/teachers/lessons/transverse-waves  again and observe the same ID return
Go to https://deploy-preview-2997--oak-web-application.netlify.thenational.academy/teachers/lessons/transverse-waves?sid-9226e5=UNIQUEIDHERE&sm=0 and note that the id gets overwritten with the correct id
Using a different browser Go to https://deploy-preview-2997--oak-web-application.netlify.thenational.academy/teachers/lessons/transverse-waves  and observe that the id is different
repeat for lesson overview non canonical, downloads confirmation and lesson listing page.

:tada: This PR is included in version 1.628.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Current Price, Last Buy Price, and Multiple Timeline Strategy Questions

Note: for support questions, please join our Discord server

I'm submitting a ...
[ ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[x] question about Gekko price properties

Action taken (what you did)
Experimented with "method.onTrade" and "this.trade.price" updates development branch

Expected result (what you hoped would happen)
Ability to work with actual buy price data, current coin price (besides candle.close)

Actual result (unexpected outcome)
Child Process Died

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)

I am thoroughly amazed by Gekko and want to give you the highest compliments on its brilliance. Thank you for such an amazing tool and for all the time you take to support it!
I'm looking to integrate several factors into a strategy but am failing due to my lack of familiarity of gekko (though I have spent many hours looking it over) and difficulty finding working examples of properties / logic I'm trying to use in the strategy.
My end goal is to integrate a stop loss and a trailing stop into my strategy. Items I am hoping to learn about specifically:

I have not been able to find a property I can use in a strategy that holds the value of the last buy in price (or average of last buy in's if multiple partially filled), as opposed to assigning the candle.close value of an adviced to a variable. This would be essential for an accurate stop loss, trailing stop, and setting an "acceptable" sell price so sells are not purely indicator based.

I am looking to monitor and act on the current coin price in real time. I am using Binance. I am concerned about monitoring the current price as a stop loss price can easily be blown by, even using 1 minute candles.

I am looking to base my strategy on multiple time frames. Mainly because if real time price updates are not possible, I would like my stop loss and trailing stop to act off of candle.close on the 1 minute time frame while my buy in strategy act on a different strategy, like the 5 minute time frame. Or even to make a RSI strategy that buys if the 15 minute and 1 hour RSI is under 30%.

Can volume be used as an indicator?

Do you have links to any helpful video walkthroughs commenting on files and code segments of gekko? This would really help with general understanding of the different pieces under the hood as well as help possibly head off support questions.

Any debugging tips?

I recognize this is honestly quite a bit to respond to. I think these are items that are basic building blocks to a successful strategy and would be helpful to many others as well. Any help is appreciated! Please keep up the great work. We are all counting on you ;)

Am interested in these issues as well!

Actual result (unexpected outcome) Child Process Died

Please use to commandline interface when developing as you get a lot more debug information.

I have not been able to find a property I can use in a strategy that holds the value of the last buy in price (or average of last buy in's if multiple partially filled), as opposed to assigning the candle.close value of an adviced to a variable. This would be essential for an accurate stop loss, trailing stop, and setting an "acceptable" sell price so sells are not purely indicator based.

The event from the develop branch exposes the "average" execution price under trade.price. Note that a lot more information will be shared in the future, have a look at #1850 which is in the works.

I am looking to monitor and act on the current coin price in real time. I am using Binance. I am concerned about monitoring the current price as a stop loss price can easily be blown by, even using 1 minute candles.

Gekko is focussed on long term trends, dealing with seconds instead of minutes means a bunch of things:

We need to store a ton of data on disk (else you can't simulate historical situations).
We need to run a lot more code every second (right now 90% of Gekko is idle between candles).
We need to worry about getting market data faster, right now Gekko fetches every 20 seconds. Which won't work if you need second data. More API calls & more handling on rate limits, etc.

Unfortunately gekko is not build for people doing HFT kind of stuff, if you want this you can't really use Gekko :(

I am looking to base my strategy on multiple time frames. Mainly because if real time price updates are not possible, I would like my stop loss and trailing stop to act off of candle.close on the 1 minute time frame while my buy in strategy act on a different strategy, like the 5 minute time frame. Or even to make a RSI strategy that buys if the 15 minute and 1 hour RSI is under 30%.

There have been some discussions on multi timeframe strategies before, the hard thing here is that configuring and creating strategies becomes very complex. Please have a look on the issue tracker. I want to move in a direction that the compenents that make up the current "tradingAdvisor" (base stratrunner) can be reused to make a more complex one that can do these things.

Can volume be used as an indicator?

Yes! Every candle has a volume prop :)

Do you have links to any helpful video walkthroughs commenting on files and code segments of gekko? This would really help with general understanding of the different pieces under the hood as well as help possibly head off support questions.

Not yet unfortunately, working on this though.

Any debugging tips?

Use the commandline interface :)

Thank you for your response, it was extremely helpful! It has given me much better insight into how gekko works and appreciation for the hard work you have put into it. Your thoughtful response and my working with gekko on my above mentioned strategy has spurred some additional questions. Again, thank you SO much for taking the time, it is a tremendous help to us all!
Follow-up Questions:
Backtesting
How does this.tradingadvisor.histoysize work in backtesting vs live gekkos? If I understand correctly, when you specify required history in backtesting, no trades are advised until that amount of time has passed. In live trading, does gekko need to wait the number of required history candles or does it download that amount of past history candles directly from the exchange and start advising almost right away? Does some kind of stitching occur from downloaded backtesting to enable live trading advise to be available sooner? Just wondering as a daily MACD indicator could take day 26 days to initialize before trades if it couldn't download previous history. It would be extremely painful to restart your strategy if say your computer needed to restart.
Using the ui version of gekko, has their been any complaints of the backtesting total percentage being inaccurate?
For extensive and in depth backtesting, is there significant advantages using MongoDB vs SQLite? If not, are there instructions / discussions on how to interface with the SQLite database directly? If so, are there instructions on how to switch data storing to MongoDB and how to interact with the database directly?
Overlapping question: Does gekko have the ability in backtesting (or live and paper trading for that matter) to export trade summaries to an Excel or text file? Kind of like the backtesting summary but with more information such as buy in price, sell price as well? If so, is it possible to customize the data fields exported?
Is there any possibility of backtesting or ui live gekko displaying a tradingview.com chart? It would be so helpful to look at in depth detail of each trade afterwards to see what improvement in the strategy is possible or to find common trends.
Strategy
Does gekko have the ability to short if an exchange allows it? Using gekko on Bitfinex for example?
In sample strategies, I see references to this.settings. Where is this referring to? I recognize that this.config is referencing variables in the strategies toml file but didn't find a similar file for this.settings. Is this.settings referring to the timeframe and required history from gekko's ui? Does it refer to variables in your strat.init?
Has there been any discussions about strategies that recognize and act on patterns like an equilibrium, bull or bear flag, or inside bars?
In your response, you referenced trade.price as a property that holds average last buy price. Can you give a brief snippet of trade.price usage in a strategy (how do you call it, I imagine by assigning it to a variable in the update function of your strategy)?
Is there any perceivable way to change variables in your method while a live gekko is running (that the live gekko would then start acting on)? For example, in the case of having a general strategy but you manually place a buy at an opportune point, from the ui you could update your boughtin variable to true along with the buy in price and let the bot handle selling. This would help not having to stop and start the strategy over in this situation or risk having the bots buying and selling out of sync with the actual buy / sell situation on the exchange.
Assuming a strategy is using one minute candles, using counters to delay indicator result calculation, I edited the RSI and MACD indicators to each give multiple timeframe results to be used in the same strategy (calculations tested successfully). I did this to achieve quickest price reaction gekko allows as well as providing more strategy conditions to use. Can you think of any consequences of this? I'm sure there is a more elegant design approach than I took (willing to send you the files), and I'd love to hear if any come to mind and your thoughts on this. Ultimately I think this would be terrific if it could be integrated into the ui though I know it would require some major front end design changes.
Again, thank you, thank you, thank you for your time and helpful responses. They are beyond appreciated!!

Hey! This bug tracker is not the best place to discuss these things. Would you mind posting the questions on the forum instead: https://forum.gekko.wizb.it/
That way it becomes easier for other people to find them as well. If you post the link to the thread here I'll be sure to respond there :)

Will do! Thank you in advance! Thread below:
https://forum.gekko.wizb.it/thread-56599.html


Frontend: Navbar

Commits

Main navbar frame completed
Stylized circle logo
Mixin implementation
Sticky nav

Related issues

SASS Theme
Index Wireframe

It's basically done, it just needs some padding or something to prevent it from looking all buggy and weird when you scroll too fast.


Cypher to PgSQL Generic Translation

Description
openCypher to PgSQL translation machinery
Motivation and Context
This changeset contains a syntax model for the PostgreSQL SQL dialect.
It also contains a translation implementation to take openCpyher input and output valid PostgreSQL SQL. This model is not intended to be a complete implementation of all available SQL dialect features but rather the subset of the dialect required to perform openCypher to pgsql translation.
How Has This Been Tested?

Unit testing
100+ translation cases
Using the pg driver also results in integration test suite success

Types of changes

[ ] Chore (a change that does not modify the application functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] Documentation updates are needed, and have been made accordingly.
[x] I have added and/or updated tests to cover my changes.
[x] All new and existing tests passed.
[ ] My changes include a database migration.

Waiting on panic removals, but otherwise the changeset seems good


responsibleai: Move tests into respective directories

Description
Moved rai_insights related tests into rai_insights directory and model_analysis tests to model_analysis directory.
Checklist

[ ] I have added screenshots above for all UI changes.
[ ] I have added e2e tests for all UI changes.
[ ] Documentation was updated if it was needed.

Codecov Report

Merging #1746 (bef00e1) into main (a155b05) will increase coverage by 12.57%.
The diff coverage is n/a.

:exclamation: Current head bef00e1 differs from pull request most recent head e1ac3eb. Consider uploading reports for the commit e1ac3eb to get more accurate results

@@             Coverage Diff             @@
##             main    #1746       +/-   ##
===========================================
+ Coverage   75.72%   88.30%   +12.57%
===========================================
  Files          16       89       +73
  Lines        1141     5248     +4107
===========================================
+ Hits          864     4634     +3770
- Misses        277      614      +337

Flag
Coverage Δ

unittests
88.30% <ø> (+12.57%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

raiutils/raiutils/dataset/__init__.py
100.00% <0.00%> (ø)

..._core_flask/environments/databricks_environment.py
56.25% <0.00%> (ø)

...tabalanceanalysis/distribution_balance_measures.py
100.00% <0.00%> (ø)

raiutils/raiutils/models/__init__.py
100.00% <0.00%> (ø)

responsibleai/responsibleai/managers/__init__.py
100.00% <0.00%> (ø)

...eai/responsibleai/databalanceanalysis/constants.py
100.00% <0.00%> (ø)

..._flask/environments/credentialed_vm_environment.py
100.00% <0.00%> (ø)

.../responsibleai/modelanalysis/constants/__init__.py
100.00% <0.00%> (ø)

...ai/responsibleai/_tools/error_analysis/__init__.py
100.00% <0.00%> (ø)

...ponsibleai/responsibleai/rai_insights/constants.py
100.00% <0.00%> (ø)

... and 63 more

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