Error: Invalid configuration when using Sampler()

Description
After authenticating and configuring dwave access in a virtual environment, checking that access to Leap works -
dwave ping,
I get the error:
TypeError: __init__() got an unexpected keyword argument 'other'
To Reproduce
Here's my code to reproduce:
import networkx as nx import dwave_networkx as dnx from dwave.system import DWaveSampler, EmbeddingComposite s5 = nx.star_graph(4)  # a star graph where node 0 is hub to four other nodes sampler = EmbeddingComposite(DWaveSampler()) print(dnx.min_vertex_cover(s5, sampler))
Full error:
`---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[5], line 5
3 from dwave.system import DWaveSampler, EmbeddingComposite
4 s5 = nx.star_graph(4)  # a star graph where node 0 is hub to four other nodes
----> 5 sampler = EmbeddingComposite(DWaveSampler())
6 print(dnx.min_vertex_cover(s5, sampler))
File ~/.local/lib/python3.8/site-packages/dwave/system/samplers/dwave_sampler.py:183, in DWaveSampler.init(self, failover, retry_interval, **config)
180 self.retry_interval = retry_interval
181 self._solver_penalty = defaultdict(int)
--> 183 self.client = Client.from_config(**config)
184 self.solver = self._get_solver(penalty=self._solver_penalty)
File ~/.local/lib/python3.8/site-packages/dwave/cloud/client/base.py:430, in Client.from_config(cls, config_file, profile, client, **kwargs)
427 _client = config.pop('client', None) or 'base'
429 logger.debug("Creating %s.Client() with: %r", _client, config)
--> 430 return _clients_client
File ~/.local/lib/python3.8/site-packages/dwave/cloud/events.py:105, in dispatches_events.call..wrapped(*pargs, **kwargs)
103 dispatch_event(self.before_eventname, obj=obj, args=args)
104 try:
--> 105     rval = fn(*pargs, **kwargs)
106 except Exception as exc:
107     dispatch_event(self.after_eventname, obj=obj, args=args, exception=exc)
File ~/.local/lib/python3.8/site-packages/dwave/cloud/client/base.py:491, in Client.init(self, *args, **kwargs)
488     raise ValueError("API token not defined")
490 # Create session for main thread only
--> 491 self.session = self.create_session()
493 # Build the problem submission queue, start its workers
494 self._submission_queue = queue.Queue()
File ~/.local/lib/python3.8/site-packages/dwave/cloud/client/base.py:554, in Client.create_session(self)
549     endpoint += '/'
551 session = BaseUrlSession(base_url=endpoint)
552 session.mount('htt[p://](file:///P://)', PretimedHTTPAdapter(
553     timeout=self.config.request_timeout,
--> 554     max_retries=self.config.request_retry.to_urllib3_retry()))
555 session.mount('http[s://](file:///S://)', PretimedHTTPAdapter(
556     timeout=self.config.request_timeout,
557     max_retries=self.config.request_retry.to_urllib3_retry()))
559 session.headers.update({'User-Agent': default_user_agent()})
File ~/.local/lib/python3.8/site-packages/dwave/cloud/config/models.py:81, in RequestRetryConfig.to_urllib3_retry(self)
78 # urllib3<2 doesn't support backoff_max in Retry()
79 del params['backoff_max']
---> 81 retry = urllib3.Retry(**params)
83 if self.backoff_max is not None:
84     # handle urllib3>=1.21.1,<1.27 AND urllib3>=1.21.1,<3
85     retry.BACKOFF_MAX = retry.backoff_max = self.backoff_max
TypeError: init() got an unexpected keyword argument 'other'`
Environment:

OS: [Linux]

Hi @kezmcd1903, this looks like a bug we recently fixed in https://github.com/dwavesystems/dwave-cloud-client/pull/612. The reason are too loose requirements over urllib3, possibly conflicting with pip requirements in your (virtual)environment. The fix is scheduled to be released with the next version of Ocean, sometime early next week.
Until then, to verify/fix, please run:
pip install -U 'urllib3>=1.26,<3'

and try running dwave ping again.

Hi @randomir, thanks for your reply. I already had:
Requirement already satisfied: urllib3<3,>=1.26 in ./env_dwave/lib/python3.8/site-packages (2.2.1)
dwave ping is working fine. It is when I use the sampler that the problem occurs:
sampler = EmbeddingComposite(DWaveSampler())

Looks like you're running dwave from one venv (./env_dwave/lib/python3.8/), and your python script from another venv (~/.local/lib/python3.8)?

The initial error here was caused by a bug resolved in https://github.com/dwavesystems/dwave-cloud-client/pull/612.


Add Travis CI (Continuous Integration)

This PR adds Travis CI for continuous integration and resolves #14.
CI has been tested on my fork (eauel/genomics-benchmarks) and is completing successfully:

Ready for merge.


ocm: Reduce tests duration

To identify and fix failures

Reduce each test duration to 2 minutes and rate to 10/min
run the dag every 6th hour
Use ocm-api-load from my github to apply any changes

Once CI is stable we can revert these changes.

I will resubmit a new PR.


"client secret cannot be empty" from Yahoo API

When I try to use OAuth2.Client.get_token!/2 with a %OAuth.Client{} containing the client_id and client_secret, it asks me to include the secret again? It seems like it's supposed to be able to just get that from the included client?

@jessejanderson please see my comment here
You can just pass it in as a param along with your code like so:
OAuth2.Client.get_token!(client, code: "authcode", client_secret: client.client_secret)

You might want to make a custom OAuth2.Strategy.Yahoo module in your app that adheres to Yahoo's specific requirements (some of which are outside of the OAuth2 spec).

Doing the custom strategy thing and this was easily fixed up, thanks!


#648 - abstract form component in formHelper.js

Also, the snapshots may need to be updated after some visual confirmations.


Project roadmap

This issue is for discussion about a project roadmap. I've had several requests to create one.

Hey! Is this project stil active?

It is :+1:

Feel free to make any contributions or suggestions

In summary, the goal is to fully implement the gtk api in react. Then another library will be built on top of it that matches the react native api.

The GTK API is quite huge. Do you plan to implement each Gtk component in ./elements or do you think it's possible to implement general wrappers to make Gtk objects work with react?
For the record, here is a link to a previous react + gtk experiment: https://blogs.gnome.org/desrt/2016/08/17/a-quick-look-at-using-jsx-in-gnome/.
I was surprised that a minimal amount of code was required to make a seemingly working experiment. (though I must admit I haven't looked yet at what should be implemented by a react renderer)
Btw, being the maintainer of node-gtk, I'm looking to create a react-gtk based on it. Comparison with node-gir has been discussed already, but basically I think it's a better option. We've also started shipping pre-built binaries, and I hope to have a 1.0 out soon.

The ultimate goal would be to build wrappers, but first I would like to implement a minimal set of components to get my architecture nailed out. I havn't done much with this lately, because I was finishing up reaction, a react framework with the goal of rendering anywhere.
I'm almost finished with the 1.0.0 release of reaction, and will be moving on to react-gtk full steam ahead starting in September. The ultimate goal is to include react-gtk in the reaction framework, so it can support native desktop. I would encourage you to go take a look at reaction.

I'm planning on using node-gir because I know how node-gir works behind the scenes (I've even contributed to it). It will make it easier for me to debug weird problems that come up. Also, node-gir supports most of the gnome ecosystem, so that's kinda nice.

@romgrk, if you're really serious about this project, I would definitely be down to add you as a maintainer of this repo.

I'm definitely looking to develop a react+gtk project, but I'm not willing to using node-gir. There's certainly the fact that I know how node-gtk works so I can debug weird problems, but overall node-gtk beats node-gir on every aspect.
Reasons for using node-gtk:

Has 95% (estimate) the same API as node-gir, no cost to switching
Supports container datatypes: Lists, Arrays, HashTables
Supports OUT arguments & multiple return values (important for functions like gtk_widget_get_size_request)
Supports structs & unions (node-gir support is experimental)
More extensive test suite
Pre-built binaries available for linux/osx, users don't need to compile anything
Memory management actually works (node-gir is littered of leaks, no way it's production ready anytime soon)
Supports the whole gnome ecosystem as well, not just Gtk

Let me know if you're interested.

Well, I'm definitely interested in learning more about node-gtk, and why it is better. Could we schedule a jitsi meeting?

I'm not opposed to using node-gtk if it truly is better.

I just need to know how it works :)

This project is now using node-gtk

Sounds great, I've been looking for a gtk-react solution, during work breaks about every month, and still this is the first time I find one — this. Very interested.
So what is the roadmap, and maybe more importantly, what's the current status, how usable is it?
My primary use-case wouldn't require much: I'm über-OCD on continuing to optimize my work environment, something I've refined over the last 22 years, at the current stage relying mostly on a core of xmodmap, xbindkeys, devilspie2 and xfce4 (no other desktop has been kind to let me use my own tools like that, they override too much and make it hard to get them out of the way).
But I'm really missing having a "sublime menu" interface for basically all desktop/window maneuverings.
So, personally I could probably make good use of react-gtk with only the bare basics of:

text input field for the fuzzy-filtering input
possibility of making a scrollable list of items with text-label
navigating the list with arrow keys
obviously also catch clicks: selecting item by mouse

Would be great with an overview of current capabilities, API-stability, run-time stability, etc.

Honestly, I threw this project together after researching for two years. I'm really counting on the community to help discover what currently works and what doesn't work.
I would recommend that you just dig into this project and start using it. The documentation isn't that great right now, but there's pretty much a 1 to 1 relationship to the official gtk api, so it shouldn't be terrible to figure out.
I am pretty committed to this project, and am anxiously anticipating bug reports, feature requests and pull requests. Any questions you have I will answer.

I haven't created a roadmap yet because I'm waiting for more feedback to prioritize things.

I should also mention, I'm excited to feature the project you are working on in the README.md. I have more details about that in issue #10


Inconsistencies in ideal_labeler.py

Hi,
When i look at the def label(self, feature) function in ideal_labeler.py, i see that it receives the features from X_train and returns the label from y_train. It is doing this by finding records that have the same features passed from X_train, and it takes the first occurrence, and returns the first occurance records' label. This results with inconsistencies if there are multiple records that have the same entries. Wouldn't be better if you take the position of the queried id? Or what is the logic behind it?
def label(self, query_id):
return self.y[query_id]

The assumption of ideal_labeler class is that the same feature will have the same label, which is quite realistic in most cases.
ideal_labeler is just mimicking the scenario where you have a feature vector and you want to acquire the label of that specific feature vector, so the input is feature vector instead of query_id
If your scenario really need to index the labels, you can always override the current label method with what you just wrote.

Thank you for your quick response, i changed it in my code :)

In [https://github.com/ntucllab/libact/commit/c3babc89ee4cc7672539de46f5a9267d16dccc1b] we changed the behavior of ideal_labeler to randomly sample one label when there are multiple choices.


Error on Install

Hey,
I am trying to install from the package manager inside of atom and am getting the following error message
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token '\u0000' at 1:1
Full error message attached.
Error.txt

I met this matter...
installing<EMAIL_ADDRESS>failed.
Failed to install script because Git was not found.
The script package has module dependencies that cannot be installed without Git.
You need to install Git and add it to your path environment variable in order to install this package.
You can install Git by downloading, installing, and launching GitHub for Windows: https://windows.github.com
Run apm -v after installing Git to see what version has been detected.

Hi,
Thanks for your reply.
I did already have GIT installed on my machine. Here are the results of the apm -v command
apm  1.9.2
npm  2.13.3
node 0.10.40
python
git 1.9.5.msysgit.0
visual studio

same here error git not found. git 2.8.1.windows.1


promql/parser: add testcases for lex.

Add some test cases for new human-friendly durations(#7713)  in lex level parse.

We have looked at this from the bug scrub and decided to close this as this is covered at different levels already. Thanks!


Update distroless/static-debian11 to distroless/static-debian12

@lukasmalkmus Can you make a new release after merging this? (and this! #61)


HTTP is not working.

Looks like no matter what the protocol that was used is the https module is used causing http requests to fail.

Missing a colon in the ternary.


LXD Cluster completly broken after restarting one node (failed to begin transaction: not an error /  cannot fetch node config from database: driver: bad connection)

Setup: LXD Clustered on 21 machines using lxd 3.23 on debian / 10 installed via snap
Linux cluster01-00 5.5.0-0.bpo.2-amd64 #1 SMP Debian 5.5.17-1~bpo10+1 (2020-04-23) x86_64 GNU/Linux
Problem started after one machine (id 10) had to be rebootet. All LXD Cluster Nodes got unresponsive. Databases are on id 3,4,6. Immediately all lxc related commands got unresponsive.
Already tried rebooting the whole cluster and restarting the daemon.
/var/snap/lxd/common/lxd/logs/lxd.log is spammed with
"Failed to get current cluster nodes: failed to begin transaction: not an error"
or
"Error: cannot fetch node config from database: driver: bad connection"
i cant get any useful information from any log.
even when running a node on its own, they're completly unresponsive.
any chance to recover this system?

I might know the cause of this issue. Please try the following:

Use "sqlite3 /var/snap/lxd/common/lxd/database/local.db "SELECT * FROM raft_nodes" to double check what your database nodes are (they should have 0 in the role column)
Stop the lxd daemon on all nodes
Move away the /var/snap/lxd/common/lxd/database/global directory on all nodes that are not database nodes (e.g. /var/snap/lxd/common/lxd/database/global /my/backup/dir)
Restart all nodes

i tried it - database nodes are 3,4,6. after restart the nodes 0-2,5,7-20 are responsive, but lxc cluster list displays every node as offline. node 3-4,6 are completly unresponsive.

ok, it required a system reboot, a simple lxd restart was not enough, now its starting to get back online again.
any more detail what happened here?

The fact that you needed a system reboot is probably a red herring.
I discovered today an issue when a database node is first shutdown and then restarted, and the cluster has more than 3 nodes. It doesn't happen all the times, but I think it can be frequent.
I'll work on a fix in the next days.

the restarted node was not a database node.
if you find sth please provide a fix for the v3, too. i cannot run v4 at the moment :-(

the rebooted node was not a database node.

It was not when it came back (because we transfer the database role at daemon shutdown), but it likely was when it went down, or at some point in time before that.

also if you find sth please provide a fix for lxd v3, too.

I don't think this fix will be backported to the 3.X series, since that's the development version. Fixes are usually backported to stable series, currently 3.0.X and 4.0.X. @stgraber might be able to comment on that tho.

must've been a while ago. it was not a database node on this day, not even a standby node.
this would be sad, as i cannot run 4.0.X (unless the new snapd is now available for debian) and 3.0.X is missing a lot of features.

3.0 is security fix only at this stage, though we will be pushing a few dqlite tweaks in the next release just to keep it building.

@freeekanayaka so is that the WIP dqlite bug then?
If so, should we close this in favor of the dqlite bug?

@freeekanayaka so is that the WIP dqlite bug then?
If so, should we close this in favor of the dqlite bug?

Which bug are you referring to?
I plan to fix this bug with #7373, however it will require a non-trivial change in raft as well.
Note also that although I've identified an issue when restarting servers, I've not been hitting "not an error" specifically, but a normal "leadership lost". So I can kinda reproduce the problem, but not with the exact same error. Nevertheless it's possible that the root cause is the same.

Indeed, thanks for the link to the PR

PR was merged and cherry-picked.


Don't install 2.0 on linux-musl

Fixes aspnet/Coherence-Signed#1057.

<!-- There is no linux-musl in 2.0. This was new in 2.1. -->


Get-DhcpServerInDC Returns a DNS Alias as an authorized DHCP server

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce

Create a CNAME DNS entry that points to an authorized DHCP server.
Run Get-DhcpServerInDC.

Expected behavior
Expected behavior is for Get-DhcpServerInDC to return only authorized DHCP server listed in the "CN=NetServices,CN=Services,CN=Configuration,DC=DOMAIN" configuration of Active Directory.

Actual behavior
Get-DhcpServerInDC is returning objects that include a DNS alias for one of the authorized DHCP servers.

Error details
This causes errors when the objects are piped as the DNS Alias typically is not an Active Directory Computer Object and therefor generates errors in the pipeline.

Environment data
Name                           Value
----                           -----
PSVersion                      7.2.7
PSEdition                      Core
GitCommitId                    7.2.7
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
This is the results of Get-DhcpServerInDC (with a select to limit results to the server entries in question)

Note that the top entry is the Alias from DNS. The bottom entry is the actual server.
This is shows that only the actual server is listed in Active Directory

This shows partial results of "netsh dhcp show server". Only the entry in question is returned in the results - not the alias.

Attempting to use "Remove-DhcpServerInDC" for the erroneous entry results in this error.

This needs to be reported to the Windows team responsible for the module, not to the "PowerShell language" folks.

Where do I report this to the Windows team? I thought this is where such bugs got reported.


Review statistics gathering options

Descriptive summary
In addition to Google Analytics, we have two services that we can potentially use to pull data from for DAMS5.

Splunk
Sawmill

Sawmill was purchased because it offered the following:

Much more granular Wowza streaming statistics than we can get otherwise
The opportunity to create custom reporting dashboards that users can use themselves to prepare reports

Please look into the pros/cons of these services in comparison to the specifications we have for DAMS5 stats. Potential options to consider:

Use only Splunk (and GA) API for DAMS5
Use only Sawmill (and GA) API for DAMS5
Create reporting experience entirely within Sawmill
..

Rationale
In order to be able to properly implement DAMS5 statistics, we need to completely understand what our best options are. This is an R&D ticket.
Related work
A dependency for #41

@mcritchlow - There is not really a direct API library for Sawmill.  We could use the Enterprise version to populate an SQL database and then use SQL queries to report things that we are interested in.  Currently our Sawmill uses internal database, we couldn't use SQL queries.  We could use the Custom Action to define our action like retrieving which fields that we are interested.
https://www.sawmill.net/cgi-bin/sawmill8/docs/sawmill.cgi?dp+docs.technical_manual.customactions
I tried to use the existing get_report action and was able to retrieve some data.  Attached are the screen shot.  Some of fields are not display using get_report action and they're displayed fine from the Admin dashboard UI.
Creating custom action is more complicated because it uses Salang (Sawmill language).   I haven't ask Ron to populate the Sawmill with ruby log yet because I'm not sure about which one we will decide to use.
There is Splunk API, good documentation and a ruby gem for our ruby app.  The streaming logs and ruby log are already populated.  It's easier to use.  The performance can be slow depending on the query.
There is Google Analytics API Client Library for Ruby.  It's also easy to use and fast.
It depends on our Statistic Requirements.


ddl: Atomic rename DeltaMergeStore::db_name in memory

What problem does this PR solve?
Issue Number: ref https://github.com/pingcap/tiflash/issues/9233
Problem Summary:
A part of fixing #9233. In the previous code, updating DeltaMergeStore::db_name is not atomic.
What is changed and how it works?
Make renaming `DeltaMergeStore::db_name` to be atomic

Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/test pull-unit-test


Error 513 "PEM routines:PEM_read_bio:no start line"

Hi! Wonderful work on this.
Just followed along with the terrific iOs Micro Walkthrough and got all the way to the very end without a hitch.
However, when I try to send the final Push notification from meteor shell it doesn't arrive, and I see this:
I20151212-11:40:14.410(-5)? Push: Sent message "Congratulations" to 1 ios apps 0 android apps
I20151212-11:40:14.414(-5)? Got error code 513 for token abcdefg12345etcetcetc
W20151212-11:40:14.414(-5)? (STDERR)
W20151212-11:40:14.415(-5)? (STDERR) /Users/lpender/.meteor/packages/raix_push/.<IP_ADDRESS>qkywpz++os+web.browser+web.cordova/npm/node_modules/apn/node_modules/q/q.js:155
W20151212-11:40:14.415(-5)? (STDERR)                 throw e;
W20151212-11:40:14.415(-5)? (STDERR)                       ^
W20151212-11:40:14.416(-5)? (STDERR) Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
W20151212-11:40:14.416(-5)? (STDERR)     at Object.exports.createCredentials (crypto.js:129:17)
W20151212-11:40:14.416(-5)? (STDERR)     at Object.exports.connect (tls.js:1345:27)
W20151212-11:40:14.416(-5)? (STDERR)     at apnSocketLegacy (/Users/lpender/.meteor/packages/raix_push/.<IP_ADDRESS>qkywpz++os+web.browser+web.cordova/npm/node_modules/apn/lib/socket.js:40:19)
W20151212-11:40:14.416(-5)? (STDERR)     at Connection.initialize.spread.fail.terminated (/Users/lpender/.meteor/packages/raix_push/.<IP_ADDRESS>qkywpz++os+web.browser+web.cordova/npm/node_modules/apn/lib/con
nection.js:175:17)
W20151212-11:40:14.417(-5)? (STDERR)     at /Users/lpender/.meteor/packages/raix_push/.<IP_ADDRESS>qkywpz++os+web.browser+web.cordova/npm/node_modules/apn/node_modules/q/q.js:1229:26
W20151212-11:40:14.417(-5)? (STDERR)     at _fulfilled (/Users/lpender/.meteor/packages/raix_push/.<IP_ADDRESS>qkywpz++os+web.browser+web.cordova/npm/node_modules/apn/node_modules/q/q.js:834:54)
W20151212-11:40:14.417(-5)? (STDERR)     at self.promiseDispatch.done (/Users/lpender/.meteor/packages/raix_push/.<IP_ADDRESS>qkywpz++os+web.browser+web.cordova/npm/node_modules/apn/node_modules/q/q.js:863:30
)
W20151212-11:40:14.417(-5)? (STDERR)     at Promise.promise.promiseDispatch (/Users/lpender/.meteor/packages/raix_push/.<IP_ADDRESS>qkywpz++os+web.browser+web.cordova/npm/node_modules/apn/node_modules/q/q.js:
796:13)
W20151212-11:40:14.418(-5)? (STDERR)     at /Users/lpender/.meteor/packages/raix_push/.<IP_ADDRESS>qkywpz++os+web.browser+web.cordova/npm/node_modules/apn/node_modules/q/q.js:556:49
W20151212-11:40:14.418(-5)? (STDERR)     at runSingle (/Users/lpender/.meteor/packages/raix_push/.<IP_ADDRESS>qkywpz++os+web.browser+web.cordova/npm/node_modules/apn/node_modules/q/q.js:137:13)
=> Exited with code: 8

Many thanks

Could this be because I haven't logged in as any user in the app?

looks odd - I've never seen that error message. Looks as if it has troubles reading the pem files?

I went back and ran
openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert private/aps_development.pem -key private/Lee_Pender_Dev_Key.pem

And noticed that, although the output ends with Verify return code: 0 (ok), if I scroll up to the top of the output, I see a verify error.
Here's the full output:
Enter pass phrase for LeePenderDevKey.pem:
CONNECTED(00000003)
depth=1 /C=US/O=Entrust, Inc./OU=www.entrust.net/rpa is incorporated by reference/OU=(c) 2009 Entrust, Inc./CN=Entrust Certification Authority - L1C
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
 0 s:/C=US/ST=California/L=Cupertino/O=Apple Inc./CN=gateway.sandbox.push.apple.com
   i:/C=US/O=Entrust, Inc./OU=www.entrust.net/rpa is incorporated by reference/OU=(c) 2009 Entrust, Inc./CN=Entrust Certification Authority - L1C
 1 s:/C=US/O=Entrust, Inc./OU=www.entrust.net/rpa is incorporated by reference/OU=(c) 2009 Entrust, Inc./CN=Entrust Certification Authority - L1C
   i:/O=Entrust.net/OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.)/OU=(c) 1999 Entrust.net Limited/CN=Entrust.net Certification Authority (2048)
-----BEGIN CERTIFICATE-----
...

I followed the steps in this stackoverflow post and was able to fix this by adding -CAFile entrust_2048.cer to the end of the command.
Does this help at all?

we have that in the docs with a solution - can't remember where - should not cause an issue though

@lpender Have you already solved this issue? I am having the same err right now.

@lpender Please check if you put the cert/key file in wrong place in the configure file. It happened to me that I miss put them in the wrong place.

I've had the same issue - I mistakenly put a key .pem file in the "cert" setting and vice versa,.

That's exactly what it is. I updated the iOs Micro Walkthrough because it seemed to have them switched.

:+1:

I have exactly the same issue.
I didn't understand how do you resolve it.
Please help!

Ops, I get it
I should switch
"apn-dev": {
"key": "apn-development/PushChatCert.pem",
"cert": "apn-development/PushChatKey.pem"
},
to
"apn-dev": {
"key": "apn-development/PushChatKey.pem",
"cert": "apn-development/PushChatCert.pem"
},


refactor(AStarGrid2D): Return Vector2i in get_id_path

Change return type of AStarGrid2D.get_id_path from PackedVector2Array to TypedArray<Vector2i> to be consistent with the grid ID type - which is Vector2i.
Fixes #66541

Thanks!


Private DNS Support

Adding support for creating vnet linked Private DNS zones

Thank you.


Validate nested constructs

Validate the spec rule:

when a construct contains another header block, it also contains that header’s corresponding merge block if that merge block is reachable in the CFG

Fixes #3031
Identified problems in block merging and inlining. Block merging will no longer merge a continue target. Inlining a single block loop will not modify the continue target. Had to fix up many invalid tests.

This PR was tested against CTS and found issues with several tests. Those are being addressed separately, but this PR should not be integrated into CTS until those changes are made.


Registration is failing

A few issues

[x] CSRF Failed: CSRF token missing or incorrect if someone has cookies
[x] Alert Messaging is not correct for registration (see #118 )

769a407471a7defc4a3f2788f4a6700f7d8f5ac2

Addressed and fixed in test 👍


Refactor BaseService

Interface parameter that's a generic type should be moved to an attribute of the class
public static resourceInterface = <SomeInterface>

Was worried about my implementation while working on another story, but after considering it believe my initial approach was correct


Spyder 5.3.1: matplotlib not installed or didn't load correctly has paralyzed my shiny new installation.

Description
What steps will reproduce the problem?

I installed Spyder 5.3.1, fired it up, and iPython console is complaining that matplotlib isn't installed or didn't load correctly.
Traceback
Traceback (most recent call last):
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\spyder\plugins\ipythonconsole\widgets\client.py", line 735, in _restart_thread_main
    self.shellwidget.kernel_manager.restart_kernel(
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\utils.py", line 30, in wrapped
    raise e
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\utils.py", line 27, in wrapped
    return loop.run_until_complete(future)
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\nest_asyncio.py", line 89, in run_until_complete
    return f.result()
  File "asyncio\futures.py", line 178, in result
  File "asyncio\tasks.py", line 280, in __step
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\manager.py", line 533, in _async_restart_kernel
    await ensure_async(self.shutdown_kernel(now=now, restart=True))
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\utils.py", line 30, in wrapped
    raise e
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\utils.py", line 27, in wrapped
    return loop.run_until_complete(future)
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\nest_asyncio.py", line 89, in run_until_complete
    return f.result()
  File "asyncio\futures.py", line 178, in result
  File "asyncio\tasks.py", line 280, in __step
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\manager.py", line 83, in wrapper
    raise e
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\manager.py", line 75, in wrapper
    out = await method(self, *args, **kwargs)
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\manager.py", line 492, in _async_shutdown_kernel
    await ensure_async(self.request_shutdown(restart=restart))
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\utils.py", line 30, in wrapped
    raise e
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\utils.py", line 27, in wrapped
    return loop.run_until_complete(future)
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\nest_asyncio.py", line 89, in run_until_complete
    return f.result()
  File "asyncio\futures.py", line 178, in result
  File "asyncio\tasks.py", line 280, in __step
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\manager.py", line 397, in _async_request_shutdown
    self._connect_control_socket()
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\manager.py", line 318, in _connect_control_socket
    self._control_socket = self._create_connected_socket("control")
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\jupyter_client\connect.py", line 605, in _create_connected_socket
    sock = self.context.socket(socket_type)
  File "C:\Users\JTS\AppData\Local\Programs\Spyder\pkgs\zmq\sugar\context.py", line 258, in socket
    raise ZMQError(Errno.ENOTSUP)
zmq.error.ZMQError: Not supported

Versions

Spyder version: 5.3.1
Python version: 3.8.10
Qt version: 5.15.2
PyQt5 version: 5.15.6
Operating System: Windows 10

Dependencies
# Mandatory:
atomicwrites >=1.2.0                 :  1.4.0 (OK)
chardet >=2.0.0                      :  4.0.0 (OK)
cloudpickle >=0.5.0                  :  2.1.0 (OK)
cookiecutter >=1.6.0                 :  1.7.3 (OK)
diff_match_patch >=20181111          :  20200713 (OK)
intervaltree                         :  None (OK)
IPython >=7.31.1;<8.0.0              :  7.33.0 (OK)
jedi >=0.17.2;<0.19.0                :  0.18.1 (OK)
jellyfish >=0.7                      :  0.9.0 (OK)
jsonschema >=3.2.0                   :  4.5.1 (OK)
keyring >=17.0.0                     :  23.5.1 (OK)
nbconvert >=4.0                      :  6.5.0 (OK)
numpydoc >=0.6.0                     :  1.3.1 (OK)
paramiko >=2.4.0                     :  2.11.0 (OK)
parso >=0.7.0;<0.9.0                 :  0.8.3 (OK)
pexpect >=4.4.0                      :  4.8.0 (OK)
pickleshare >=0.4                    :  0.7.5 (OK)
psutil >=5.3                         :  5.9.1 (OK)
pygments >=2.0                       :  2.12.0 (OK)
pylint >=2.5.0                       :  2.13.9 (OK)
pyls_spyder >=0.4.0                  :  0.4.0 (OK)
pylsp >=1.4.1;<1.5.0                 :  1.4.1 (OK)
pylsp_black >=1.2.0                  :  1.2.1 (OK)
qdarkstyle >=3.0.2;<3.1.0            :  3.0.3 (OK)
qstylizer >=0.1.10                   :  0.2.1 (OK)
qtawesome >=1.0.2                    :  1.1.1 (OK)
qtconsole >=5.3.0;<5.4.0             :  5.3.0 (OK)
qtpy >=2.1.0                         :  2.1.0 (OK)
rtree >=0.9.7                        :  1.0.0 (OK)
setuptools >=49.6.0                  :  62.3.2 (OK)
sphinx >=0.6.6                       :  4.5.0 (OK)
spyder_kernels >=2.3.1;<2.4.0        :  2.3.1 (OK)
textdistance >=4.2.0                 :  4.2.2 (OK)
three_merge >=0.1.1                  :  0.1.1 (OK)
watchdog                             :  2.1.8 (OK)
zmq >=22.1.0                         :  23.0.0 (OK)

# Optional:
cython >=0.21                        :  0.29.30 (OK)
matplotlib >=3.0.0                   :  3.5.2 (OK)
numpy >=1.7                          :  1.22.4 (OK)
pandas >=1.1.1                       :  1.4.2 (OK)
scipy >=0.17.0                       :  1.8.1 (OK)
sympy >=0.7.3                        :  1.10.1 (OK)

# Spyder plugins:
spyder_terminal.terminalplugin 1.2.2 :  1.2.2 (OK)

It seems importing PyQt5 from the Spyder console fails with 5.3.1 (from installer). With the same environment this is not a problem with 5.3.0 installer.
There's no ImportError with the python console or IPython console outside of Spyder and using the same environment. I have not tried 5.3.1 from conda-forge or pypi, only tried with the installer version.
from PyQt5 import QtCore
Traceback (most recent call last):

  File "C:\Users\username\AppData\Local\Temp\ipykernel_17452\1680556063.py", line 1, in <cell line: 1>
    from PyQt5 import QtCore

  File "C:\Users\username\Miniconda3\envs\myenv\lib\site-packages\PyQt5\__init__.py", line 41, in <module>
    find_qt()

  File "C:\Users\username\Miniconda3\envs\myenv\lib\site-packages\PyQt5\__init__.py", line 33, in find_qt
    raise ImportError("unable to find Qt5Core.dll on PATH")

ImportError: unable to find Qt5Core.dll on PATH

I believe conda installs the dll's with a _conda suffix, like Qt5Core_conda.dll.

I attempted to update pyqt from 5.12.3 to 5.15 with conda via conda-forge,
but got what seems like a few thousand lines of conflicts that you probably
aren't interested in reading through.
On Mon, May 30, 2022 at 1:20 AM Reinert Huseby Karlsen <
@.***> wrote:

Just an additional note, I posted the PyQt5 ImportError here I think it
is the cause of matplotlib not importing as per the description of the
original issue. The console message I get pasted below @.***
https://github.com/jtskowronek can perhaps confirm this it the original
issue he refers to). I don't get the traceback posted in the first post.
IPython  -- An enhanced Interactive Python.
=========================================================================
NOTE: The following error appeared when setting your Matplotlib backend!!
Failed to import any qt binding
This is most likely caused by missing packages in the Python environment
or installation whose interpreter is located at:
I've tested with a conda-forge installed spyder and the same custom env,
and I do not get the ImportError. Custom env as PyQt5 5.12.9, spyder env
has PyQt5 5.15.4.
With the windows installer version of Spyder the issue is solved for me by
updating pyqt to 5.15.4 as @dalthviz https://github.com/dalthviz
suggested
—
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/18003#issuecomment-1140850824,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANQISZLWY6HAVZYD6T6MWTDVMR23XANCNFSM5W32W72A
.
You are receiving this because you were mentioned.Message ID:
@.***>

Checking a little bit this seems like this could be caused due to the addition of the micromamba executable to handle the env activation at https://github.com/spyder-ide/spyder/pull/17692/ and https://github.com/spyder-ide/spyder/pull/17856 to the installers. If I comment out the code that gives the path to the micromamba executable (which causes the activation to fallback to find the conda executable) and instead return None I'm able to import PyQt 5.12 without issue. Just in case, the code I'm refering is this (maybe as a workaround for the moment @jtskowronek you could try to make the code bellow return None in you Spyder installation):
https://github.com/spyder-ide/spyder/blob/551c30fc214079f11b16d2de73f5a3fd7a6351b2/spyder/config/base.py#L591-L602
@mrclary could it be that the micromamba executable needs something else set besides the path to the env to activate things when involving binaries like the PyQt .dlls? 🤔

Checking a little bit this seems like this could be caused due to the addition of the micromamba executable to handle the env activation at #17692 and #17856 to the installers. If I comment out the code that gives the path to the micromamba executable (which causes the activation to fallback to find the conda executable) and instead return None I'm able to import PyQt 5.12 without issue. Just in case, the code I'm refering is this (maybe as a workaround for the moment @jtskowronek you could try to make the code bellow return None in you Spyder installation):
https://github.com/spyder-ide/spyder/blob/551c30fc214079f11b16d2de73f5a3fd7a6351b2/spyder/config/base.py#L591-L602
@mrclary could it be that the micromamba executable needs something else set besides the path to the env to activate things when involving binaries like the PyQt .dlls? 🤔

Hmm... I don't know why this would be happening. I don't think that it should matter what mechanism is used to activate an environment, but I'll take a look at it this week and see.

Just to be clear, with Spyder 5.3.1, everything works fine if the external environment uses PyQt 5.15, but has issues if the external environment uses PyQt 5.12, correct?

Yep, as far as I tested :+1: although not sure if there are other modules that fail to be imported due to some .dll error besides PyQt. Could this be something that only happens on Windows? or maybe due to the micromamba version we are bundling with the Windows installer?

On my Windows VM, I do not get the OP error, but the following (IPython console graphics backend set to Qt5):
Python 3.9.13 | packaged by conda-forge | (main, May 27 2022, 16:50:36) [MSC v.1929 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython  -- An enhanced Interactive Python.

=========================================================================
NOTE: The following error appeared when setting your Matplotlib backend!!
=========================================================================

Failed to import any qt binding

This is most likely caused by missing packages in the Python environment
or installation whose interpreter is located at:

    C:\Users\rclary\AppData\Local\mambaforge\envs\test-18003-512\python.exe

Thanks for the testing @mrclary ! If you try to import PyQt5 you get the error I saw too?
I was also checking this at the moment and seems like when using micromamba to activate the conda env some paths are missing from the PATH env variable.
Testing with an env call pyqt512-cf and the following env details:

Using to create the env:
conda create -n pyqt512-cf -c conda-forge spyder-kernels pyqt=5.12

# Name                    Version                   Build  Channel
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                        py_2    conda-forge
backports.functools_lru_cache 1.6.4              pyhd8ed1ab_0    conda-forge
bzip2                     1.0.8                h8ffe710_4    conda-forge
ca-certificates           2022.6.15            h5b45459_0    conda-forge
cloudpickle               2.1.0              pyhd8ed1ab_0    conda-forge
colorama                  0.4.5              pyhd8ed1ab_0    conda-forge
debugpy                   1.6.0            py39h415ef7b_0    conda-forge
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
entrypoints               0.4                pyhd8ed1ab_0    conda-forge
icu                       68.2                 h0e60522_0    conda-forge
ipykernel                 6.15.0             pyh025b116_0    conda-forge
ipython                   7.33.0           py39hcbf5309_0    conda-forge
jedi                      0.18.1           py39hcbf5309_1    conda-forge
jpeg                      9e                   h8ffe710_1    conda-forge
jupyter_client            7.3.4              pyhd8ed1ab_0    conda-forge
jupyter_core              4.10.0           py39hcbf5309_0    conda-forge
libclang                  11.1.0          default_h5c34c98_1    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libpng                    1.6.37               h1d00b33_2    conda-forge
libsodium                 1.0.18               h8d14728_1    conda-forge
libzlib                   1.2.12               h8ffe710_1    conda-forge
matplotlib-inline         0.1.3              pyhd8ed1ab_0    conda-forge
nest-asyncio              1.5.5              pyhd8ed1ab_0    conda-forge
openssl                   1.1.1o               h8ffe710_0    conda-forge
packaging                 21.3               pyhd8ed1ab_0    conda-forge
parso                     0.8.3              pyhd8ed1ab_0    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pip                       22.1.2             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.29             pyha770c72_0    conda-forge
psutil                    5.9.1            py39hb82d6ee_0    conda-forge
pygments                  2.12.0             pyhd8ed1ab_0    conda-forge
pyparsing                 3.0.9              pyhd8ed1ab_0    conda-forge
pyqt                      5.12.3           py39hb0d2dfa_4    conda-forge
pyqt5-sip                 4.19.18                  pypi_0    pypi
pyqtchart                 5.12                     pypi_0    pypi
pyqtwebengine             5.12.1                   pypi_0    pypi
python                    3.9.13          h9a09f29_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python_abi                3.9                      2_cp39    conda-forge
pywin32                   303              py39hb82d6ee_0    conda-forge
pyzmq                     23.1.0           py39he46f08e_0    conda-forge
qt                        5.12.9               h5909a2a_4    conda-forge
setuptools                62.6.0           py39hcbf5309_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
spyder-kernels            2.3.1            py39hcbf5309_0    conda-forge
sqlite                    3.38.5               h8ffe710_0    conda-forge
tk                        8.6.12               h8ffe710_0    conda-forge
tornado                   6.1              py39hb82d6ee_3    conda-forge
traitlets                 5.3.0              pyhd8ed1ab_0    conda-forge
tzdata                    2022a                h191b570_0    conda-forge
ucrt                      10.0.20348.0         h57928b3_0    conda-forge
vc                        14.2                 hb210afc_6    conda-forge
vs2015_runtime            14.29.30037          h902a5da_6    conda-forge
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
wheel                     0.37.1             pyhd8ed1ab_0    conda-forge
xz                        5.2.5                h62dcd97_1    conda-forge
zeromq                    4.3.4                h0e60522_1    conda-forge
zlib                      1.2.12               h8ffe710_1    conda-forge

Using micromamba I got as PATH env variable:
['C:\\Users\\dalth\\AppData\\Local\\Programs\\Spyder\\pkgs\\PyQt5\\Qt5\\bin',
 'C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\iCLS\\',
 'C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\iCLS\\',
 'C:\\Windows\\system32',
 'C:\\Windows',
 'C:\\Windows\\System32\\Wbem',
 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\',
 'C:\\Windows\\System32\\OpenSSH\\',
 'C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL',
 'C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL',
 'C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT',
 'C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT',
 'C:\\Program Files\\Git\\cmd',
 'C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common',
 'C:\\Users\\dalth\\.pyenv\\pyenv-win\\bin',
 'C:\\Users\\dalth\\.pyenv\\pyenv-win\\shims',
 'C:\\Users\\dalth\\AppData\\Local\\Microsoft\\WindowsApps',
 'C:\\Users\\dalth\\AppData\\Local\\Programs\\Microsoft VS Code\\bin',
 'C:\\Program Files (x86)\\GnuWin32\\bin']

Using conda I got as PATH env variable:
['C:\\Users\\dalth\\anaconda3\\envs\\pyqt512-cf',
 'C:\\Users\\dalth\\anaconda3\\envs\\pyqt512-cf\\Library\\mingw-w64\\bin',
 'C:\\Users\\dalth\\anaconda3\\envs\\pyqt512-cf\\Library\\usr\\bin',
 'C:\\Users\\dalth\\anaconda3\\envs\\pyqt512-cf\\Library\\bin',
 'C:\\Users\\dalth\\anaconda3\\envs\\pyqt512-cf\\Scripts',
 'C:\\Users\\dalth\\anaconda3\\envs\\pyqt512-cf\\bin',
 'C:\\Users\\dalth\\anaconda3\\condabin',
 'C:\\Users\\dalth\\AppData\\Local\\Programs\\Spyder\\pkgs\\PyQt5\\Qt5\\bin',
 'C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\iCLS',
 'C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\iCLS',
 'C:\\Windows\\system32',
 'C:\\Windows',
 'C:\\Windows\\System32\\Wbem',
 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0',
 'C:\\Windows\\System32\\OpenSSH',
 'C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL',
 'C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL',
 'C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT',
 'C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT',
 'C:\\Program Files\\Git\\cmd',
 'C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common',
 'C:\\Users\\dalth\\.pyenv\\pyenv-win\\bin',
 'C:\\Users\\dalth\\.pyenv\\pyenv-win\\shims',
 'C:\\Users\\dalth\\AppData\\Local\\Microsoft\\WindowsApps',
 'C:\\Users\\dalth\\AppData\\Local\\Programs\\Microsoft VS Code\\bin',
 'C:\\Program Files (x86)\\GnuWin32\\bin']

Missing paths with micromamba:

'C:\\Users\\dalth\\anaconda3\\envs\\pyqt512-cf',
'C:\\Users\\dalth\\anaconda3\\envs\\pyqt512-cf\\Library\\mingw-w64\\bin',
'C:\\Users\\dalth\\anaconda3\\envs\\pyqt512-cf\\Library\\usr\\bin',
'C:\\Users\\dalth\\anaconda3\\envs\\pyqt512-cf\\Library\\bin',
'C:\\Users\\dalth\\anaconda3\\envs\\pyqt512-cf\\Scripts',
'C:\\Users\\dalth\\anaconda3\\envs\\pyqt512-cf\\bin',
'C:\\Users\\dalth\\anaconda3\\condabin',

Checking the PyQt5 package seems like for PyQt 5.12 with Python 3.9 the related .dll files are located at <env dir>/Library/bin but for PyQt 5.15 with Python 3.9 they are available also at the package dir level <env-dir>/Lib/site-packages/PyQt5/Qt5/bin so I guess that's the reason PyQt 5.15 works and PyQt 5.12 fails to import. However, then I'm not totally sure what we should do (we could modify the PATH from our side with what is needed but not sure if there could be any other approach less intrusive and robust than that).

Yes, I can reproduce the error in this comment.

Checking the PyQt5 package seems like for PyQt 5.12 with Python 3.9 the related .dll files are located at /Library/bin but for PyQt 5.15 with Python 3.9 they are available also at the package dir level /Lib/site-packages/PyQt5/Qt5/bin so I guess that's the reason PyQt 5.15 works and PyQt 5.12 fails to import. However, then I'm not totally sure what we should do (we could modify the PATH from our side with what is needed but not sure if there could be any other approach less intrusive and robust than that).

I'll look into what is going on with PATH. Environment variables passed to IPython Console should be exactly the same, regardless of whether micromamba or conda are used. Is it possible that conda adds those extra paths and micromamba does not?

@dalthviz, it turns out not to be an issue with micromamba, but an issue with the batch script I wrote. Apparently, when setting the variable SCRIPT in the logic statement, it cannot be expanded until after the entire logic statement is completed, so the call %SCRIPT% statement was just producing call . Moving it after the logic block results in the correct behavior with %SCRIPT% properly expanded.
#18387 should fix this issue.
@jtskowronek, sorry for the inconvenience.

Thanks for the patch suggestion. I'm not familiar with how to install
spyder from source, so I don't think I can test your patch until I do. I
don't have time to mess around with it this week, but maybe next week;
unless it's just a matter of running a few straightforward commands to
build an executable in Windows 10, then I might be up to try it sooner.
On Mon, May 30, 2022 at 8:55 AM Daniel Althviz Moré <
@.***> wrote:

Checking a little bit this seems like this could be caused due to the
addition of the micromamba executable to handle the env activation at
#17692 https://github.com/spyder-ide/spyder/pull/17692 and #17856
https://github.com/spyder-ide/spyder/pull/17856 to the installers. If I
comment out the code that gives the path to the micromamba executable
(which causes the activation to fallback to find the conda executable) and
instead return None I'm able to import PyQt 5.12 without issue. Just in
case, the code I'm refering is this (maybe as a workaround for the moment
@jtskowronek https://github.com/jtskowronek you could try to make the
code bellow return None in you Spyder installation):
https://github.com/spyder-ide/spyder/blob/551c30fc214079f11b16d2de73f5a3fd7a6351b2/spyder/config/base.py#L591-L602
@mrclary https://github.com/mrclary could it be that the micromamba
executable needs something else set besides the path to the env to activate
things when involving binaries like the PyQt .dlls? 🤔
—
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/18003#issuecomment-1141303333,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANQISZLJRWDXGFZV3GVKW33VMTQGRANCNFSM5W32W72A
.
You are receiving this because you were mentioned.Message ID:
@.***>


Create README with basic usage instructions

Nice work! We'd like to feature this project on the formidable.com website. Could you write up a minimal README, @tptee?

Resolved with #11 👍


Ninja error

Getting error when I try to build the project

Build command failed.
Error while executing process C:\AndroidSDKs\sdknew\cmake\3.6.4111459\bin\cmake.exe with arguments {--build E:\Android\Projects\live-transcribe-speech-engine-master\app.cxx\cmake\arm7Debug\armeabi-v7a --target ogg_opus_encoder}

ninja: error: '../../../../third_party/libopus/lib/armeabi-v7a/libopus.a', needed by '../../../../build/intermediates/cmake/arm7Debug/obj/armeabi-v7a/libogg_opus_encoder_tool.so', missing and no known rule to make it

Any solutions?

Hi, it seems libopus.a not build completed in your build environment(Windows). Here provided instructions were assumed run on linux system.
We suggest you check with https://github.com/xiph/opus  for found solution how to build libopus.a on Windows and put them into live-transcribe-speech-engine-master/app/third_party/libopus/lib/armeabi-v7a and other cpu architecture folders. Thanks.

Hi @ausmuschang-google ,
I'm having the same issue on linux debian 9, can you please reopen this?
Or specify an alternative to make a successful build if possible?
The build_all.sh is not working at all, im having multiple errors mainly coming from the build  third_party and third_party/build  dirs. Im not sure what you indeed to do with build/include_files_helper.sh it is not working the ligogg is not populated correctly.
I managed to build libogg.a & libopus.a after some update but now i have this:
ninja: error: '../../../../third_party/opus_tools/lib/armeabi-v7a/libopus_header.a', needed by '../../../../build/
intermediates/cmake/arm7/debug/obj/armeabi-v7a/libogg_opus_encoder_tool.so', missing and no known rule to make it

@chetan1836 did you found a workaround?
Regards

@seyuf
could you provide fully build_log.txt to us check. thanks.

Hi @ausmuschang-google ,
build_log.txt

any update @ausmuschang-google ?

From log, current dir is empty,
 current dir is
 mkdir: cannot create directory ‘../../src/main/cpp/libogg’: No such file or directory
 mkdir: cannot create directory ‘../../src/main/cpp/libopus’: No such file or directory
 mkdir: cannot create directory ‘../../src/main/cpp/opus_tools’: No such file or directory

something wrong while run script on your machine about curdir=$1 in  /home/homeuser/Documents/madit/android/transcript-reset/app/third_party/build/include_files_helper.sh
please try to modify include_files_helper.sh as below,
change
curdir=$1
to
curdir='/home/homeuser/Documents/madit/android/transcript-reset/app/third_party/build/'
please kindly feedback build_log.tx if still has any problem.

Hi @ausmuschang-google ,
as mention above this due to the do in CONFIGURE_COMMAND . ${CMAKE_CURRENT_SOURCE_DIR}/build/include_files_helper.sh ${CMAKE_CURRENT_SOURCE_DIR}/build/ in app/third_party/CMakeLists.txt.
When i replace the . with sh such as CONFIGURE_COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/build/include_files_helper.sh ${CMAKE_CURRENT_SOURCE_DIR}/build/ the $1 is field correctly. So you should adjust this script.
None the less, im afraid this will not solve all the issues with the build. For example, even when $1 is found the ogg lib are not built correctly as the src for this lib seems to not pulled correctly.
Anyways i will try and give you a feed back tomorrow.
Quick question on what env have you tested the build script (os, etc...)

@ausmuschang-google as mentioned above this does not solve all the issues.
Here the new build_log.txt

Hi @seyuf ,
Could you try another shot
change
curdir='/home/homeuser/Documents/madit/android/transcript-reset/app/third_party/build/'
to
curdir=/home/homeuser/Documents/madit/android/transcript-reset/app/third_party/build/
(without ')
BTW, I really want to help and solve your case but I can not reproduce  "curdir=$1" return empty problem in I used google cloud platform VM with debian 9.
so now I can do just write script file to simulate the problems you met (It is hard to build up the fully build environment ndk in vm, I still under trying). Please feedback if still has any problem.

Hi @ausmuschang-google ,
Thanks for your help, but i must point that  "curdir=$1" is the least of the issues with the build script. When i read the include_files_helper.sh , it seems to me that there are no way this will work regardless of the dev env.
Anyways, maybe you can build a dev docker image for us to use as an example and/or as a build env?
Thanks again for your assistance

@ausmuschang-google i manage to make it work here's my solution.
Regards

@seyuf ,
could you provide the work well build log to me reference. Thanks.

@seyuf
I got it, there are something wrong and different about ExternalProject_Add command in third_party/CMake_Lists.txt between debian and our build env.
Hmm. I will figure out the solution to address debian.

Hi @ausmuschang-google ,
Yep the issue was in third_party/CMake_Lists.txt. For some reason the ExternalProject_Add(external_libogg) rule was not launch i just moved it above the opus-tools one. I don't think is a difference between how the ExternalProject_Add itself works between debian and your build env. Also as mentioned above i replaced the notation with sh, which is available on any linux distrib. You can test my  third_party/CMake_Lists.txt. It should work on your build env as well.
Let me know if you want a PR.
Here is my
build_log.txt for the successful build.
One last thing, you should precise, in the readme, that the apps only work for devices with android <= 7 (API level 24) there is an error on lower versions or let me know if you want me to create an issue on this?

@seyuf,
I already run your make file in before, unfortunately it can not work in our build environment(g Linux), the sequence between building these libs are incorrect. For example, need to build out opus first before building opus-tool. Anyway, as I mentioned, I will check this part.
Thanks for your help.

Alright gotcha.
As mentioned the minSdkVersion should be set to 24 instead of 21in the gradle file.
You should fix that as well.
Take care

Hi @ausmuschang-google ,
build_log.txt

Where i find build_log.txt?

In the root dir, it is generated by the build_all.sh script.

Hi @ausmuschang-google
any solution for ninja error......

What went wrong:
Execution failed for task ':app:externalNativeBuildArm7Debug'.

Build command failed.
Error while executing process /Users/one/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /Users/one/Downloads/live-transcribe-speech-engine-master/app/.cxx/cmake/arm7Debug/armeabi-v7a --target ogg_opus_encoder}

ninja: error: '../../../../third_party/libopus/lib/armeabi-v7a/libopus.a', needed by '../../../../build/intermediates/cmake/arm7Debug/obj/armeabi-v7a/libogg_opus_encoder_tool.so', missing and no known rule to make it

@ausmuschang-google how did you install Android Studio on a linux environment? I used links at https://developer.android.com/studio, but it's throwing an error Failed to find target with hash string 'android-28' in:

@seyuf your solution was very helpful - it enabled the first stage to complete successfully on gLinux (interestingly, the opposite experience of @ausmuschang-google.
However, I am still having trouble loading the Android SDK. Would appreciate if you could help advise. Thank you!

Hi @kmeng01 ,
you need to download sdk for API 28 by launching the native SDK manager (/home/pathto/Android/Sdk/tools && launch android) or sdk manager from android studio (depending on your setup).
As for the story about glinux i was surprised as well even though i did hear google switching from ubuntu to debian as base project for glinux.
PS: this can be useful https://sdkman.io/

Thank you for your quick reply! Unfortunately, I don't have access to a gui on the cloud system, so I'm unable to access the native SDK manager you refer to
I tried installing Android 28 using sdkmanager but clearly it didn't work. It also seems that gradle attempts to do so as well. Do you have any ideas?

My bad, i said launch meaning exec the android. It's a command line not a gui check out here for usage.

Also you can/you will have to install gradle. You can use sdkman linked previously for that more info here.

So it seems like something weird is going on with my glinux setup. Anyways, I tried compiling the C++ files on Linux, moving them to my Windows machine, and using gradle from there - it worked! Not sure if this is expected behavior, but I'll take what I can get :P

Hi @ausmuschang-google @seyuf,
I am facing the same issue in Ubuntu 18.04.4 LTS -
`Build command failed.
Error while executing process /home/mustan/Android/Sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /home/mustan/AndroidStudioProjects/live-transcribe-speech-engine-master/app/.externalNativeBuild/cmake/arm7Debug/armeabi-v7a --target ogg_opus_encoder_tool}
ninja: error: '../../../../third_party/libopus/lib/armeabi-v7a/libopus.a', needed by '../../../../build/intermediates/cmake/arm7/debug/obj/armeabi-v7a/libogg_opus_encoder_tool.so', missing and no known rule to make it`
I tried your solution too @seyuf but still not able to resolve it.
Could you guys please help me resolve it.
Thanks

Hi,
I am also facing same error on windows as well as Ubuntu 18.04
Build command failed.
Error while executing process C:\Users\achougala\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build C:\Users\achougala\Documents\Richards\2020\NewSrc\live-transcribe-speech-engine-master\live-transcribe-speech-engine-master\app.externalNativeBuild\cmake\arm7Debug\armeabi-v7a --target ogg_opus_encoder_tool}
ninja: error: '../../../../third_party/libopus/lib/armeabi-v7a/libopus.a', needed by '../../../../build/intermediates/cmake/arm7/debug/obj/armeabi-v7a/libogg_opus_encoder_tool.so', missing and no known rule to make it
Can we get a help?

Could you tell me how to run the demo app. I build it on Windows 10. Before I run the project, what should  I do. I want to know more details.
Thank you for your help!

Hi *,
have you tried this ?

please try to modify include_files_helper.sh as below,
change
curdir=$1
to
curdir='/home/homeuser/Documents/madit/android/transcript-reset/app/third_party/build/'

Hi,
Thanks for reply. Yeah, Tried on both windows and linux. No luck.

Also have you replaced your app/third_party/CMakeLists.txt file with mine? If so, you will have to share your build_log.txt.

Yeah. i have added sh to the app/third_party/CMakeLists.txt.
Do you mean android studio build output?
Here it is.
org.gradle.internal.UncheckedException: Build command failed.
Error while executing process C:\Users\achougala\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build C:\Users\achougala\Documents\Richards\2020\NewSrc\live-transcribe-speech-engine-master\live-transcribe-speech-engine-master\app.externalNativeBuild\cmake\arm7Debug\armeabi-v7a --target ogg_opus_encoder_tool}
ninja: error: '../../../../third_party/libopus/lib/armeabi-v7a/libopus.a', needed by '../../../../build/intermediates/cmake/arm7/debug/obj/armeabi-v7a/libogg_opus_encoder_tool.so', missing and no known rule to make it
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:67)
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:76)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:48)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:704)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:671)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$2.run(ExecuteActionsTaskExecuter.java:284)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:273)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:258)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:67)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:145)
at org.gradle.internal.execution.impl.steps.ExecuteStep.execute(ExecuteStep.java:49)
at org.gradle.internal.execution.impl.steps.CancelExecutionStep.execute(CancelExecutionStep.java:34)
at org.gradle.internal.execution.impl.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:69)
at org.gradle.internal.execution.impl.steps.TimeoutStep.execute(TimeoutStep.java:49)
at org.gradle.internal.execution.impl.steps.CatchExceptionStep.execute(CatchExceptionStep.java:33)
at org.gradle.internal.execution.impl.steps.CreateOutputsStep.execute(CreateOutputsStep.java:50)
at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:43)
at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:29)
at org.gradle.internal.execution.impl.steps.CacheStep.executeWithoutCache(CacheStep.java:134)
at org.gradle.internal.execution.impl.steps.CacheStep.lambda$execute$3(CacheStep.java:83)
at java.util.Optional.orElseGet(Optional.java:267)
at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:82)
at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:36)
at org.gradle.internal.execution.impl.steps.PrepareCachingStep.execute(PrepareCachingStep.java:33)
at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:38)
at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:23)
at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:96)
at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:89)
at java.util.Optional.map(Optional.java:215)
at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:52)
at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:34)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:91)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:91)
at org.gradle.api.internal.tasks.execution.ResolveBuildCacheKeyExecuter.execute(ResolveBuildCacheKeyExecuter.java:79)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:119)
at org.gradle.api.internal.tasks.execution.ResolvePreviousStateExecuter.execute(ResolvePreviousStateExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:93)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:45)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:94)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:56)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:67)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:315)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:305)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:101)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:748)

Caused by: Build command failed.
Error while executing process C:\Users\achougala\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build C:\Users\achougala\Documents\Richards\2020\NewSrc\live-transcribe-speech-engine-master\live-transcribe-speech-engine-master\app.externalNativeBuild\cmake\arm7Debug\armeabi-v7a --target ogg_opus_encoder_tool}
ninja: error: '../../../../third_party/libopus/lib/armeabi-v7a/libopus.a', needed by '../../../../build/intermediates/cmake/arm7/debug/obj/armeabi-v7a/libogg_opus_encoder_tool.so', missing and no known rule to make it
at com.android.build.gradle.internal.cxx.process.ProcessOutputJunction.execute(ProcessOutputJunction.kt:78)
at com.android.build.gradle.internal.cxx.process.ProcessOutputJunction.execute(ProcessOutputJunction.kt:119)
at com.android.build.gradle.tasks.ExternalNativeBuildTask.executeProcessBatch(ExternalNativeBuildTask.java:331)
at com.android.build.gradle.tasks.ExternalNativeBuildTask.buildImpl(ExternalNativeBuildTask.java:199)
at com.android.build.gradle.tasks.ExternalNativeBuildTask.build(ExternalNativeBuildTask.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
... 74 more

or the build_all.sh output?
This build_all.sh is not executed automatically. When i run it manually the build_log.txt is as follows.
./build_all.sh: line 32: cmake: command not found
./build_all.sh: line 33: make: command not found
./build_all.sh: line 32: cmake: command not found
./build_all.sh: line 33: make: command not found
./build_all.sh: line 32: cmake: command not found
./build_all.sh: line 33: make: command not found
./build_all.sh: line 32: cmake: command not found
./build_all.sh: line 33: make: command not found
./build_all.sh: line 28: gradle: command not found
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

@abhickd sorry if you're on windows,  i'm afraid i won't be of much help, since the build behaves differently on according to the distro.
In any case what you should do first, is trying to build using the build_all.sh script, not directly from android studio.
You can do that after a successful build with the script, which will mean that your env is set correctly for the build in general.
Also when, i have 2 min. I plan to create a docker dev image for people having issues ^^. The best would be if someone who has had a successful build and some time on their hand could beat me to it? @kmeng01 ?

Hi @seyuf I am using Linux OS and I've tried both of the above-mentioned solutions still it is giving me the same error.

Hi @seyuf,
I am trying on both windows and linux. As per your suggestion, trying to compile build_all.sh in command line. But not successful.
I have given cross compiler path from android ndk clang.
My build_log.txt is as follows.
build_log.txt

Requirements: CMake, Gradle, Android SDK/NDK
(1) Export the path of your Android SDK. The NDK is assumed to be located at
   $ANDROID_SDK_PATH/ndk-bundle [Android NDK](https://developer.android.com/ndk/guides)
   export ANDROID_SDK_PATH="/wherever/your/sdk/is"
(2) Build the APKs (location is app/build/outputs/apk/)
   ./build_all.sh

@abhickd you seem to be on mac os? If not i dont know why you're trying to build with clang, see above for the requirements needed to build on linux (cmake).

Hi @seyuf,
Thank you. I am able to compile and run on the linux(ubuntu 18.04) as per your suggestion.. that is running build_all.sh first before android studio.
Things to note for other develpers.

As seyuf mentioned , Please try to modify include_files_helper.sh as below,
change
curdir=$1
to
curdir='your_transcript_directory/app/third_party/build/'
Run build_all.sh and it will download all dependency opus libraries.
3.Next you can import project into android studio and run.

Thanks again for the help guys..

Hi, please refer
commit#9 fix above curdir and build third party libs problem.

In Android Studio ,how to generate  the  build_log.txt,
Please suggest some solutions For Me.

Hi @seyuf , @abhickd:
In Android Studio ,how to generate the build_log.txt,
Please suggest some solutions For Me.

Has anyone successfully gotten this to build on Mac (I'm on Catalina 10.15.6)?
Steps I have attempted:
Requirements: CMake, Gradle, Android SDK/NDK

Export the path of your Android SDK. The NDK is assumed to be located at
$ANDROID_SDK_PATH/ndk-bundle Android NDK
export ANDROID_SDK_PATH="/wherever/your/sdk/is".
Modify include_files_helper.sh: Change curdir=$1 to curdir='your_transcript_directory/app/third_party/build/'
Run build_all.sh (outside of Android studio). It will download all dependency opus libraries and build.

But still getting error:
ninja: error: '../../../../third_party/opus_tools/lib/armeabi-v7a/libopus_header.a', needed by '../../../../build/intermediates/cmake/arm7/debug/obj/armeabi-v7a/libogg_opus_encoder_tool.so', missing and no known rule to make it

Has anyone successfully gotten this to build on Mac (I'm on Catalina 10.15.6)?
Steps I have attempted:
Requirements: CMake, Gradle, Android SDK/NDK

Export the path of your Android SDK. The NDK is assumed to be located at
$ANDROID_SDK_PATH/ndk-bundle Android NDK
export ANDROID_SDK_PATH="/wherever/your/sdk/is".
Modify include_files_helper.sh: Change curdir=$1 to curdir='your_transcript_directory/app/third_party/build/'
Run build_all.sh (outside of Android studio). It will download all dependency opus libraries and build.

But still getting error:
ninja: error: '../../../../third_party/opus_tools/lib/armeabi-v7a/libopus_header.a', needed by '../../../../build/intermediates/cmake/arm7/debug/obj/armeabi-v7a/libogg_opus_encoder_tool.so', missing and no known rule to make it

i'm on mojave 10.14.6, the same error just like you.
anybody can help me solve the question?

Has anyone successfully gotten this to build on Mac (I'm on Catalina 10.15.6)?
Steps I have attempted:
Requirements: CMake, Gradle, Android SDK/NDK

Export the path of your Android SDK. The NDK is assumed to be located at
$ANDROID_SDK_PATH/ndk-bundle Android NDK
export ANDROID_SDK_PATH="/wherever/your/sdk/is".
Modify include_files_helper.sh: Change curdir=$1 to curdir='your_transcript_directory/app/third_party/build/'
Run build_all.sh (outside of Android studio). It will download all dependency opus libraries and build.

But still getting error:
ninja: error: '../../../../third_party/opus_tools/lib/armeabi-v7a/libopus_header.a', needed by '../../../../build/intermediates/cmake/arm7/debug/obj/armeabi-v7a/libogg_opus_encoder_tool.so', missing and no known rule to make it

i'm on mojave 10.14.6, the same error just like you.
anybody can help me solve the question?

Hi,
Could you provide thebuild_log.txt or follow instructions here and have a trial:
https://docs.google.com/document/d/1IQgHJv0wQiobbIe-QvnSXq07FmnZeavRDDd7wLvR2B4/edit?usp=sharing

Has anyone successfully gotten this to build on Mac (I'm on Catalina 10.15.6)?
Steps I have attempted:
Requirements: CMake, Gradle, Android SDK/NDK

Export the path of your Android SDK. The NDK is assumed to be located at
$ANDROID_SDK_PATH/ndk-bundle Android NDK
export ANDROID_SDK_PATH="/wherever/your/sdk/is".
Modify include_files_helper.sh: Change curdir=$1 to curdir='your_transcript_directory/app/third_party/build/'
Run build_all.sh (outside of Android studio). It will download all dependency opus libraries and build.

But still getting error:
ninja: error: '../../../../third_party/opus_tools/lib/armeabi-v7a/libopus_header.a', needed by '../../../../build/intermediates/cmake/arm7/debug/obj/armeabi-v7a/libogg_opus_encoder_tool.so', missing and no known rule to make it

i'm on mojave 10.14.6, the same error just like you.
anybody can help me solve the question?

Hi,
Could you provide thebuild_log.txt or follow instructions here and have a trial:
https://docs.google.com/document/d/1IQgHJv0wQiobbIe-QvnSXq07FmnZeavRDDd7wLvR2B4/edit?usp=sharing

Hi,
Thanks for your response, now  i can run the build_all.sh, but It took about four hours and it didn't work. my build_log.txt has downloaded, could you tell me the reason?
build_log.txt

Having the same issue, Why is this closed ?
Did you solve it?

Hi,
Getting the same error on Mac(Sonoma 14.5)
ninja: error: '../../../../third_party/libopus/lib/arm64-v8a/libopus.a', needed by '../../../../build/intermediates/cmake/debug/obj/arm64-v8a/libogg_opus_encoder_tool.so', missing and no known rule to make it

I successfully ran it on both Linux(Ubuntu 22.04.3 LTS) and macOS(Sonoma 14.5) after making the following changes:
In Android Studio > File > Project Structure,
Android Gradle Plugin version - 4.2.2
Gradle version- 7.2.2
In app level build.gradle, upgrade other dependencies as follows:
dependencies{
implementation 'com.google.protobuf:protobuf-java:3.22.3'
implementation 'com.google.protobuf:protobuf-java-util:3.22.3'
implementation 'io.grpc:grpc-okhttp:1.32.2'
}
In android > build.gradle :
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.1'
classpath 'com.android.tools.build:gradle:4.2.2'
In gradle.properties:
protoc_platform=osx-x86_64
org.gradle.jvmargs=-Xmx1536M --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED
android.useAndroidX=true
If any issue occurs while configuring the gradle wrapper version,
Modify the build_all.sh script as follows:
chmod +x gradlew // uncomment if permission error occurs like ( ./gradlew: Permission denied)
Download and configure Gradle wrapper with version 7.2
./gradlew wrapper --gradle-version 7.2
Build the app.
echo "Building Live Transcribe Speech Engine demo app..."
gradle wrapper --gradle-version 7.2 >> "${LOG_FILE}" 2>&1
Additionally, I set my Android SDK path as follows:
export ANDROID_SDK_PATH="$HOME/Android/Sdk"


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Please add a 0.2.0 tag

My open source management tools work really nicely when GitHub projects tag their releases. Unfortunately 0.2.0 hasn't been tagged! Could you tag it, please?

This is now done.
https://github.com/davidfischer/requirements-parser/releases/tag/v0.2.0


feat: Homepage experience v2 changes

Pull Request Template
Use this template to quickly create a well written pull request. Delete all quotes before creating the pull request.

Description

Add a TL;DR when description is extra long (helps content team)
Please include a summary of the changes and which issue has been fixed. Please also include relevant motivation
and context. List any dependencies that are required for this change
Links to Notion, Figma or any other documents that might be relevant to the PR

PR fixes following issue(s)
Fixes # (issue number)

if no issue exists, please create an issue and ask the maintainers about this first

Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
Chore (housekeeping or task changes that don't impact user perception)
This change requires a documentation update

Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[ ] Manual
[ ] JUnit
[ ] Jest
[ ] Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

Summary by CodeRabbit

New Features

Introduced search functionality across entities within the application.
Added the ability to import and export applications more seamlessly.
Improved Git import flow and Git sync features.
Enhanced guided tour and onboarding experiences for new users.
Streamlined application and workspace creation processes.
Updated UI components for better user interaction and clarity.

Bug Fixes

Fixed issues related to application import causing NullPointerExceptions.
Addressed inconsistencies in application and workspace naming conventions.
Resolved user profile update flow to improve user experience.

Documentation

Updated in-app help documentation and added new help messages for clarity.

Refactor

Overhauled Redux action constants for better modularity and readability.
Refined Cypress end-to-end test scripts for improved reliability and coverage.
Consolidated workspace and application selectors for more efficient state management.

Style

Updated styles and layouts of various components to enhance visual appeal and usability.
Introduced new iconography and visual cues for a more intuitive user interface.

Tests

Enhanced Cypress test scenarios to reflect new features and bug fixes.
Refined testing strategies for workspace and application-related functionalities.

Chores

Cleaned up redundant code and unused imports across multiple files.


Linux: CJK text input broken on single-line textfields

This appears to be triggered by the exact same root cause as https://github.com/flutter/flutter/issues/88645 for Windows which was triggered by framework PR https://github.com/flutter/flutter/pull/90211.
On Windows, this was fixed by not sending an update on the text input channel on commit events. See https://github.com/flutter/engine/pull/30805 for the fix PR for that OS.
Repro steps for Korean:

Press ㅂ. ㅂ is emitted in the text field.
Press ㅏ. 바 is emitted in the text field.
Press ㄴ. 반 is emitted in the text field.
Press ㅏ. At this point, the current character being composed (반) cannot be modified in a meaningful way, and the IME determines that the user is typing 바 followed by 나. Two messages are emitted to the framework, one immediately after the other. First 바, then 나. The Text field now contains 바나 and the composing range consists of the second character (나).
Press ㄴ. 난 is emitted in the text field, overwriting the entire contents.

Expected behaviour:

Press ㅂ. Text field contains ㅂ.
Press ㅏ. Text field contains 바.
Press ㄴ. Text field contains 반.
Press ㅏ. Text field contains 바나.
Press ㄴ. Text field contains 바난 .

/cc @robert-ancell as FYI.

Fixed in flutter/engine#31813


If an applicant enters a number value larger than the max long value, they get a 400

The same happens when they enter a number value lower than the min long value.
We should instead ensure the number is no bigger than the max long. And if it is, return a helpful error message.
Max long: 9,223,372,036,854,775,807
Min long: -9,223,372,036,854,775,808

This bug blocks story acceptance of #377.

A validation.ts method should be straightforward, or configuring the input for existing HTML attributes.

Is this resolved by https://github.com/civiform/civiform/pull/1706

@th174 no, #1706 only addressed the client-side experience. For this to be done the server also needs to handle large values appropriately.

I would like to work on this issue. Is this available??

Hi @BryanGarciaCodes, thanks for your interest in contributing to CiviForm!  Here is some info on how to start contributing:  Technical contribution guide.  Please introduce yourself on our Slack channel #community-contributors.


Added Android Development and DevOps Bootcamp courses.

What does this PR do?
Add resources
For resources

Android Development
Devops

Description

Android Development - Topics include: the Android ecosystem, introduction to Kotlin, UI elements, lists, multiple activities and intents, working with APIs, and cloud storage.
DevOps - Topics include: Introduction to networking, Introduction to Linux, command line tools, Kubernetes, CI/CD, GoLang, Docker etc.

Why is this valuable?
As a growing number of organisations look to carry out DevOps practices, the requirement for qualified engineers is taking off. Without a doubt, industry-led market studies directed in the course of recent years show that DevOps engineer is the most in-demand role in the market, especially with an increased number of high paying remote opportunities.
How do we know it's really free?
These are Youtube Playlists, posted by their original creators, so it's completely free of cost.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!


Overriding servlet mapping address

In grails 2 branch it was possible to customise default services address like
servlets = [             CxfServlet: '/webservices/*'     ]
That method doesn't work with grails 3 version of the plugin.

I think it is a simple fix at line https://github.com/Grails-Plugin-Consortium/grails-cxf/blob/master/src/main/groovy/grails/cxf/CxfGrailsPlugin.groovy#L55

Added cxf.servlet.mapping property support

Released 3.1.0


Images only refresh at Adapter restart and Log error

Adapter version
1.2.1
JS-Controller version
6.0.11
Node version
20.17.0
Operating System type
Linux
Operating system version
Bookworm
Describe the bug
Images of cameras only refresh when adapter is restarted. No automatic refresh even eufy App has new images of last movement in cameras.
Eufy Cam 2C
Also I have this error every few minutes in the log:
Station: T8010N2322xxxxxx command CMD_SDINFO_EX failed with error: undefined (-148)
To reproduce
As described above
Screenshots & Logfiles
No response
Additional context
No response

Station: T8010N2322xxxxxx command CMD_SDINFO_EX failed with error: undefined (-148)

Update to latest version in the beta channel (#379 #440).

Images of cameras only refresh when adapter is restarted.

The images are only updated via the push notifications, if these are not activated, they are not updated.
When the adapter is started, they are received once by the cloud, as this caches the last image.

Seems not to solve the issue.
Where to activate "push notifications"? In Eufy App they are activated. I
find no option in your adapter.
Now the new error for web.0:
Cannot start extension "eusec.0": Error: Cannot find module
'iobroker.eusec/build/lib/web.js'Require stack:-
/opt/iobroker/node_modules/iobroker.web/main.js
Am Sa., 28. Sept. 2024 um 13:23 Uhr schrieb bropat @.***

:

Station: T8010N2322xxxxxx command CMD_SDINFO_EX failed with error:
undefined (-148)
Update to latest version in the beta channel (#379
https://github.com/bropat/ioBroker.eusec/issues/379 #440
https://github.com/bropat/ioBroker.eusec/issues/440).
Images of cameras only refresh when adapter is restarted.
The images are only updated via the push notifications, if these are not
activated, they are not updated.
When the adapter is started, they are received once by the cloud, as this
caches the last image.
—
Reply to this email directly, view it on GitHub
https://github.com/bropat/ioBroker.eusec/issues/447#issuecomment-2380607917,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACXKW3S65SMH4Q5WPF2DSV3ZY2GTTAVCNFSM6AAAAABPAOY3PCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBQGYYDOOJRG4
.
You are receiving this because you authored the thread.Message ID:
@.***>

Cannot start extension "eusec.0": Error: Cannot find module
'iobroker.eusec/build/lib/web.js'Require stack:-
/opt/iobroker/node_modules/iobroker.web/main.js

Look here.

Oh thanks 👍🏻Am 28.09.2024 um 14:27 schrieb bropat @.***>:
Cannot start extension "eusec.0": Error: Cannot find module
'iobroker.eusec/build/lib/web.js'Require stack:-
/opt/iobroker/node_modules/iobroker.web/main.js
Look here.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

With deacitvated web Adapter no images are shown.
Is there another way?
Am Sa., 28. Sept. 2024 um 14:27 Uhr schrieb bropat @.***

:

Cannot start extension "eusec.0": Error: Cannot find module
'iobroker.eusec/build/lib/web.js'Require stack:-
/opt/iobroker/node_modules/iobroker.web/main.js
Look here
https://github.com/bropat/ioBroker.eusec/issues/436#issuecomment-2336734160
.
—
Reply to this email directly, view it on GitHub
https://github.com/bropat/ioBroker.eusec/issues/447#issuecomment-2380624352,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACXKW3Q5BVXN7G4JU3SOYHTZY2OB7AVCNFSM6AAAAABPAOY3PCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBQGYZDIMZVGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Who told you to deactivate the web adapter?
Read carefully: https://github.com/bropat/ioBroker.eusec/issues/436#issuecomment-2336734160

3 posts up, you...
"Version 1.3.0 no longer requires the web adapter.
This dependency has been removed."

"Version 1.3.0 no longer requires the web adapter.
This dependency has been removed."

That was just a general statement that the eusec adapter no longer requires the web adapter. No indication of an action.
That was the solution:

The only way I am aware of to remove this error is to uninstall and reinstall the eusec adapter.

Whatever... it works now with the images :)
Battery stats are still frozen and only update when the adapter is restarted.


[Docs] Add this extension to docs.meshery.io's list of extensions under Extensibility

Current State
Desired State

Contributor Guides and Handbook

📚 Instructions for contributing to documentation

Meshery documentation site and source

🛠 Meshery Build & Release Strategy
🎨 Wireframes and designs for Meshery UI in Figma (open invite)
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

Here's a link to the extensions page - https://docs.meshery.io/extensions/

THanks!

Hi! Which extension is to be added? and can you please assign this issue to me?

Plz Correct me If I'm wrong, but  the
desired behaviour is to put in under 🛠 Integrations & Extensions rather than as a separate 🦾 Extensions ↆ ?

Ok, I'll correct you. You're wrong. :grinning:

Thanks for taking care of this @winkletinkle


Fix configuration errors

duplicate source names caused issue with generation.

fix in configuration file
fix so pygen does not generate

use the aws_secret and aws_access properties and the the GLEANIO_MINIO_ACCESS GLEANIO_MINIO_SECRET (and add not to code not to do that)

Oops. wrong repository


Replace Puex as state management library

The state management library we use https://github.com/egoist/puex is deprecated and no longer maintained. We should move to something else, like Vuex

How complex is this refactor? It would be cool to contribute on this 👍.

@amazzoccone it seems fairly straightforward since the APIs are compatible, are you working on this?

@kgodey actually not, but i could make a PR with a reference to this issue, it's ok?

Sure, go ahead!


fixed Arc._on_enc_key which was returning path instead of n

Hey there, just noticed what I presume is a typo.
pressing the arc encoder was giving the path where n should be so added an argument to fix it.
Works good now!

Good catch, thanks!

you're very welcome!

Could we get this into pip please?


add timestamps to "The Two Cultures of Programming" (JuliaCon 2016)

The-Two-Cultures-of-Programming.md

Thank you!!


[NOREF] Seed data for echimp

Description

Introduce seed data with existing echimp model data
Update Postman collection

How to test this change

Query  the seeded model plan, look at the related echimp CR or TDL
( you can use the updated postman collection to do the query)

PR Author Checklist

[ ] I have provided a detailed description of the changes in this PR.
[ ] I have provided clear instructions on how to test the changes in this PR.
[ ] I have updated tests or written new tests as appropriate in this PR.
[ ] Updated the Postman Collection if necessary.

PR Reviewer Guidelines

It's best to pull the branch locally and test it, rather than just looking at the code online!
When approving a PR, provide a reason why you're approving it

e.g. "Approving because I tested it locally and all functionality works as expected"
e.g. "Approving because the change is simple and matches the Figma design"

Don't be afraid to leave comments or ask questions, especially if you don't understand why something was done! (This is often a great time to suggest code comments or documentation updates)
Check that all code is adequately covered by tests - if it isn't feel free to suggest the addition of tests.

I realize this may have been outside scope, but this was the original issue I brought to clay.  I'm unable to query the model plan when querying echimpCRsAndTDLs.  This is the error it throws.

Thanks @patrickseguraoddball! As we discussed, the error occurs locally when data is not seeded.  Though not a result of this PR, we decided to implement a change to address this in this PR!
Now, if you can't get the cache, we should expect that nil is returned, and an error is logged in the backend. This will make sure we are alerted if this happens in a deployed environment, but allows flexibility when developing. You can confirm that the error shouldn't exist in the GQL response now, but you can look at the docker logs to see an error is logged if you query echimp crs or tdls without seeded data.


[Timeline] Update dimensionItems when [items] or [groups] props are changing.

#6
I've faced the same issue when was trying to add dynamically new items to the timeline.
This made a trick for me. Hopefully, this will also fix the issue above

Hey, thank you!!! I checked the code and it looks good to me!


Avatar support

Adding gitlab avatar support https://docs.gitlab.com/ee/api/avatar.html

Thank @svanharmelen for you comments. I have pushed an update. Could you please check it now ?


Add ability to pass a list of buckets to create

Description
Allow to pass a list of buckets as input - loop within the module on creating that list.
Should work with creating a cos instance, or pointing to existing cos instance
New or affected modules

terraform-ibm-cos

By submitting this issue, you agree to follow our Code of Conduct

🎉 This PR is included in version 6.10.0 🎉
See release notes.
Rather than pass a list of buckets to the existing module, a new sub module is created that takes a list of buckets and calls the root module as required to create them. The root module retains the existing functionality for easy of adoption and to avoid significant migration changes.