Misty World quest bugged

I crafted a Niobium Pickaxe, collected 1 filtered coal and crafted 1 open respirator but the quest never completes. I tried to add these items from JEI directly but nothing helps.
Could you please take a look into it?
Modpack version: 0.10.0-beta

That is weird since I completed the quest myself.
Could you upload you save file please ?
Without it it won't be possible to check to even begin figuring what the problem is.

Please run the following commands and tell us the output:
/advancement test @p heavens:bookchap3/1respirator hasItemsFurnace
/advancement test @p heavens:bookchap3/1respirator hasItems1
/advancement test @p heavens:bookchap3/1respirator hasItems2

As you see, I have the pick, the coal and the respirator too. I did not see any furnace in the quest book. The commands you told says I have the last criterion but not the first two.

Update2: I recrafted the respirator and it granted me the advancement, thou I think there is still an issue with it.


fix typescript issues

Coverage remained the same at 83.568% when pulling 305b6f7e29917e6a485d49196b9f286e765940de on fix/typescript into 3eaf43da22055659a59fb05efea7b6cd8a58a83c on master.


Add long_description_content_type to setup.py

See:

https://packaging.python.org/guides/making-a-pypi-friendly-readme/
https://pypi.org/p/requests/

Oh. Wait, it should be text/x-rst. Do you want me to open a new PR?

Or update this one!

My understanding was that if the readme is in RST, this isn't necessary to specify. Did the PEP change?

I think it's nice-to-have.

I'll certianly reference it a lot, and it'll be educational for our users.

:crossed_fingers: this starts a new build on Travis

Codecov Report

Merging #4631 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4631   +/-   ##
=======================================
  Coverage   66.53%   66.53%
=======================================
  Files          15       15
  Lines        1560     1560
=======================================
  Hits         1038     1038
  Misses        522      522

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b5071c...8bffd3d. Read the comment docs.


Create "kong" global before executing "kong config" subcommands

Summary
Initialize the kong global and database before running any kong config subcommand.
Full changelog

Move initialization of kong global and database prior to subcommand-specific code for kong config CLI command.
Remove existing kong global and database initialization specific to db_export.

Issues resolved
The db_import and parse subcommands invoke parse_file, which runs entity checks. Entity checks can require database access, and the rbac_user Enterprise entity does currently. If the kong global is not present and/or kong.db is not initialized, db_import and parse will fail.

Attempting to run db_import as-is results in the following:
# kong config db_import /tmp/config.yaml -v
2019/11/14 13:12:58 [verbose] Kong: 1.3-enterprise-edition
2019/11/14 13:12:58 [verbose] prefix in use: /usr/local/kong
2019/11/14 13:12:58 [verbose] reading config file at /usr/local/kong/.kong_env
2019/11/14 13:12:58 [verbose] prefix in use: /usr/local/kong
Error:
/usr/local/share/lua/5.1/kong/rbac/init.lua:1182: attempt to index global 'kong' (a nil value)
stack traceback:
	/usr/local/share/lua/5.1/kong/rbac/init.lua:1182: in function 'retrieve_token_users'
	...cal/share/lua/5.1/kong/db/schema/entities/rbac_users.lua:28: in function 'check'
	/usr/local/share/lua/5.1/kong/db/schema/init.lua:1226: in function 'run_self_check'
	/usr/local/share/lua/5.1/kong/db/schema/init.lua:1301: in function 'run_entity_checks'
	/usr/local/share/lua/5.1/kong/db/schema/init.lua:1744: in function 'validate'
	/usr/local/share/lua/5.1/kong/db/schema/init.lua:882: in function 'validate_field'
	/usr/local/share/lua/5.1/kong/db/schema/init.lua:780: in function 'validate_elements'
	/usr/local/share/lua/5.1/kong/db/schema/init.lua:839: in function 'validate_field'
	/usr/local/share/lua/5.1/kong/db/schema/init.lua:1079: in function 'validate_fields'
	/usr/local/share/lua/5.1/kong/db/schema/init.lua:1734: in function 'validate'
	/usr/local/share/lua/5.1/kong/db/declarative/init.lua:148: in function 'parse_file'
	/usr/local/share/lua/5.1/kong/cmd/config.lua:109: in function 'cmd_exec'
	/usr/local/share/lua/5.1/kong/cmd/init.lua:88: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:88>
	[C]: in function 'xpcall'
	/usr/local/share/lua/5.1/kong/cmd/init.lua:88: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:45>
	/usr/local/bin/kong:9: in function 'file_gen'
	init_worker_by_lua:49: in function <init_worker_by_lua:47>
	[C]: in function 'xpcall'
	init_worker_by_lua:56: in function <init_worker_by_lua:54>

@rainest I think this is fine, do you think you could add a test? We try to have some tests with fix PRs, but I do understand if that is quite artificial here. If adding test is easy, that would be great addition. Thanks for spotting this!

@rainest or is this error only in ee?


Can't get jenkins build info when use jenkins build collector

I can get jenkins build info when I run this collector in eclipse:
2017-06-29 10:59:59,989 INFO  c.c.d.collector.CollectorTask - Running Collector: Hudson
2017-06-29 11:00:00,060 INFO  c.c.d.collector.CollectorTask - -----------------------------------
2017-06-29 11:00:00,060 INFO  c.c.d.collector.CollectorTask - https://~~~~~~~~~.com/
2017-06-29 11:00:00,060 INFO  c.c.d.collector.CollectorTask - -----------------------------------
2017-06-29 11:00:08,610 INFO  c.c.d.collector.CollectorTask - Fetched jobs                     8s
2017-06-29 11:00:08,625 INFO  c.c.d.collector.CollectorTask - New jobs                0        0s
2017-06-29 11:00:08,760 INFO  c.c.d.collector.CollectorTask - New builds              0        0s
2017-06-29 11:00:08,760 INFO  c.c.d.collector.CollectorTask - Finished                         8s
But when I run this collector in Linux, it hangs and can't get any info.
2017-06-28 22:45:00,001 INFO  c.c.d.collector.CollectorTask - Running Collector: Hudson
2017-06-28 22:45:00,033 INFO  org.mongodb.driver.connection - Opened connection [connectionId{localValue:6, serverValue:24}] to localhost:27017
2017-06-28 22:45:00,078 INFO  c.c.d.collector.CollectorTask - -----------------------------------
2017-06-28 22:45:00,078 INFO  c.c.d.collector.CollectorTask - https://~~~~~~~~~~.com/
2017-06-28 22:45:00,078 INFO  c.c.d.collector.CollectorTask - -----------------------------------
I have debuged this issue, when it get the job number, it hangs, getInstanceJobs() --> getJobsCount()-->makeRestCall(~~) -->rest.exchange(thisuri, HttpMethod.GET,
new HttpEntity<>(createHeaders(userInfo)),
String.class);
I don't know why because I have imported the SSL certificate, and there is no any info printed.

@wdquan1985  - set your log level to debug and share Jenkins build collector log

@nireeshT , I have fixed this issue, the root cause is the proxy has not been configured, I add my proxy in the RestOperationsSupplier.java file.
public class RestOperationsSupplier implements Supplier {
@Override
public RestOperations get() {
//bruce, add the proxy.
SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory();
Proxy proxy= new Proxy(Type.HTTP, new InetSocketAddress("my proxy", 8000));
requestFactory.setProxy(proxy);
return new RestTemplate(requestFactory);
}
}
But why the RestTemplate don't print any info? It's difficult to find the root cause.
Is there any other way to configure the proxy? When I change the proxy, the above is a bad way.

I have added one new property "jenkins.proxy" in the application.properties file, and changed the corresponding java code.

@nireeshT , show we add this improvement in the master branch?

I have made the following change.
1.Change the HudsonSettings.java file
Add a new property
_private String proxy;
public String getProxy() {
return proxy;
}
public void setProxy(String proxy) {
	this.proxy = proxy;
}_

2.Change the properties file.
Add a new propery "jenkins.proxy".
2.Change the RestOperationsSupplier.java file.
Add the proxy when create RestTemplate object if proxy has been configured.
_import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.Proxy.Type;
import com.capitalone.dashboard.util.Supplier;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.client.SimpleClientHttpRequestFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestOperations;
import org.springframework.web.client.RestTemplate;
/**

Supplier that returns an instance of RestOperations
*/
@Component
public class RestOperationsSupplier implements Supplier {
private final HudsonSettings settings;
@Autowired
public RestOperationsSupplier(HudsonSettings settings) {
this.settings = settings;
}
@Override
public RestOperations get() {
if (StringUtils.isNotEmpty(this.settings.getProxy())) {
String proxy = this.settings.getProxy();
String[] proxyArray = proxy.split(":");
SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory();
     if (proxy.length() == 1) {
     	requestFactory.setProxy(new Proxy(Type.HTTP, new InetSocketAddress(proxyArray[0], 80)));
 	}else {
 		requestFactory.setProxy(new Proxy(Type.HTTP, new InetSocketAddress(proxyArray[0], Integer.parseInt(proxyArray[1]))));
 	}
     return new RestTemplate(requestFactory);
 }else {
 	return new RestTemplate();
 }

}
}_

@wdquan1985  Can you submit a PR with this change

@nireeshT  I don't know the meaning of PR, the diff patch?
patch.zip
I don't know why the change in the application.properties can't be patched, I just add a new propery "jenkins.proxy=" in last part of this file.

@wdquan1985 : PR is Pull Request. Take a fresh checkout for code, make changes on that code base and submit a PR, it would be merged into code after passing the review.

@nitin1706 : Thanks, I have submitted the PR https://github.com/capitalone/Hygieia/pull/1746


Hot reload fails if typo in configuration files

I have encountered a problem with hot reload of configuration in the following scenario:

there is a boolean parameter
configuration is in a file
change the configuration but make typo for example fasle instead of false
hot reload stops to work: even if the typo is corrected, no changes in the file are loaded

Hi. This looks like a bug. Can you specify the annotations used to mark the interface hot reloadable? (you know that there are two kind of hot reload : asynchronous and synchronous, so maybe the bug affects only one of the two, or both)

@HotReload(value = 2, type = Config.HotReloadType.ASYNC)
It seems in general it is the case when the reload listener throws an exception

I've noticed similar behavior that may be related: when using asynchronous reload, if any new property is added to the properties file, or if any existing property is removed from the properties file, the ReloadListener is no longer called, forever, even when the new property is removed or the removed property is added back. This happens even if the added or removed property isn't in the Config interface.
This also means that if any property name changes, changes are no longer detected, indefinitely.
So, for example, if I when changing service.location=us-west I somehow accidentally change the line to service.loaction=us-east, reloads are borked until I restart my application.

the reload listener (by design) has the ability to rollback the reload. For instance, you can use this to do some validation in the listener.

@PumpMagic can you provide a unit test for this behavior?

Hey @lviggiano , I'm sorry to say I can't. I no longer have access to the relevant codebase.

@PumpMagic Sure, no worries, thank you.


lambeq 0.3.0 documentation is broken

For example:
class lambeq.Rewriter()
call(diagram: Diagram)
Clicking on "Diagram" get:
SORRY            /
\                         /
\    This page does     /
]   not exist yet.    [    ,'|

Thanks for this, it seems any references to DisCoPy references are now broken. We'll fix this asap.

Fixed in 0.3.1.

This will be closed as resolved.


Check Database Integrity

ie every record in administrators must have one or more records in administrator_roles.
This is probably best handled by writing a cli script, which can then be put into a cron job. There potentially should be some record kept of these and a notification. Possibly an administrative page, which can run the script real time.

Obviously the app will be designed to ensure this integrity, but bugs happen, and [dumb devs] people like me (occasionaly) delete database records in psql by accident.
It would be nice to handle this in Postgres. I'm not sure there's a way to set such a constraint (ON DELETE RESTRICT on administrator_roles.administrator_id or .role_id doesn't seem like it will work), which is what I think we need. Perhaps an administrators.roles array column would help by eliminating the meta join table administrator_roles, but I don't see a constraint for an array column to ensure it's populated either.
Anyway, bigger fish to fry first...


Changed Dispro12 Right and Wrong to stepper

Resolves #289

@pjljvandelaar no longer relevant for this example or all of them?
we should create an issue accordingly.

imho for all stepper cases (but I haven't check if that is equal to these two cases ;-)


Supports google-java-format

The official google-java-format comes only with a jar, without any executables. I wrote another separate launcher for the jar, which barely needs changes in the future. Both are included in this PR.

With https://github.com/lukesampson/scoop-extras/pull/545/commits/588f65159690d4d927e4e86ffb5267a72fc3afe1 it now creates a batch file for google-java-format using a pre_install script.
Renaming the file is handled by the URL suffix #/google-java-format.jar
I recommend that you create a new branch for each pull-request. You don't have to merge the upstream/master into your PR. Github handles the merging 😄

Oh, that's neat. Sorry about the branch. I always forget that.

Try GitKraken (also available  with scoop 😁) it's a really nice git GUI 👍

Thanks, I use command line, barely use GUI. I just tried install google-java-format. It reports error:
URL https://github.com/google/google-java-format/releases/download/google-java-format-1.4/google-java-format-1.4-all-deps.jar#/google-java-format.jar is not valid

No other error message?

No, no other message. Can you install it successfully?

False alarm. It's my network. Use proxy, and everything goes fine. Sorry.

Ah okay 👍


Use ansible var edpm_network_config_template for setting nic config template

Instead of setting networkConfig.temlate, which must be the template
contents, and a not a file name,  just set the ansibleVar
edpm_network_config_template with the file name.
Signed-off-by: James Slagle<EMAIL_ADDRESS>

/lgtm
We have a proof of work on that other PR here:
https://github.com/openstack-k8s-operators/dataplane-operator/pull/398


choppiness index has different result vs trading view

Hi guys good day.
im encountering 2 isues. please advise.

**kwargs is not defined.

 df['chop'] = ta.chop(df['high'], df['low'], df['close'], length=28, atr_length=None, ln=None, scalar=None, drift=None, offset=0, **kwargs)

NameError: name 'kwargs' is not defined

choppiness index has different result with trading view (if **kwargs is not passed as it is issue no.1)

Hello @mhgutier,

I fail to see how the first Pull Request #1 has any relevance to ta.chop. Please clarify.
The NameError is a Python error and not a Pandas TA Error. You received that Error because you have not declared the dict kwargs prior to calling ta.chop(). See help(ta.chop) for which arguments and keyword arguments are valid for ta.chop(). Python Documentation on arguments and keyword arguments and here for more detailed explanation and examples.
Have you tried any other variations of arguments and values for ta.chop() as help(ta.chop) lists?
Have you looked up old Issues like #214 before making this Issue? If so, did it not resolve your Issue? If not, then you need a correlation test as requested on the README before I investigate this Issue again.

How to do a TV Correlation Test
Are you using a different data source for Pandas TA and then visually comparing the numbers displayed from TradingView? If so, then that can cause deviations in calculation because they are not the same data source. You can Export Chart Data from TradingView data for comparison by using the hamburger menu in the upper left corner; select the ISO format.

Once you have exported your chart data from TradingView, try the following:
import pandas as pd
import pandas_ta as ta

# Load the TV export data or whatever you saved it as
data = pd.read_csv("path/to/tradingview_data.csv")
data.ta.chop(length=14, append=True)
# data.drop()   # https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.drop.html
print(data.corr()) # Check their correlation

Also please reply to this Issue with your results and exported TV CSV so I can see your correlations and double check your results. You may need to drop some columns before running data.corr() so it's not filled with extraneous columns.
For future bugs, remember to use a common data source when comparing indicator results, double check the documentation and/or the code for alternative versions, provide correlation results and test data.
Kind Regards,
KJ

hi Kevin, Thanks
i got choppiness index working fine now.

i updated the formula
from: (npLog10(atr_sum) - npLog10(diff)) / npLog10(length)
to: npLog10(atr_sum / diff) / npLog10(length)

atr has discrepancy from talib when timeperiod is 1
import talib
'# atr_ = atr(high=high, low=low, close=close, length=atr_length)'
atr_ = talib.ATR(high=high, low=low, close=close, timeperiod=atr_length).

got everything working and in sync with trading view now.
ps: im not able to generate correlation since im not subscribed in trading view. also im getting my data from binance,
ohclv is same with trading view so i dont think the issue is with the deviation in values.
Pandas_ta is really awesome. im using talib previously, now im gonna utilize pandas_ta

Hello @mhgutier,
Great!

Out of curiosity, is the Logarithm Division Property (log(A/B) = log(A) - log(B)) not valid in the code?
Interesting. Unfortunately, I can not replicate your discrepancy with TA Lib. Can you provide reproducible code?

Out[9]:
                 open       high  ...    ATRr_1  TAL_ATR_1
date                              ...
2020-09-30  10.000000  11.410000  ...

Excellent!

ps: im not able to generate correlation since im not subscribed in trading view. also im getting my data from binance, ohclv is same with trading view so i dont think the issue is with the deviation in values.

Ok

Pandas_ta is really awesome. im using talib previously, now im gonna utilize pandas_ta

Thanks! Cool! 😎
Sorry I did not respond sooner, was sick the last few days.
Kind Regards,
KJ


Update fire.py

fix the card being undefined/ cart surfer

I understand the solution to this bug involves removing some playable cards from the game..
Is there some pattern that could yield us this list from the card attributes instead of listing them out by hand? You have quite a large array that is iterated each time card is dealt.
https://github.com/solero/houdini/pull/63/commits/8f2b36c734c89fb65b616e9f1f312a8c4a96f60c
Do these cards have something in common that the buggy cards do not, attribute-wise. Would it be more efficient to exclude cards from play rather than include all cards that are playable?


How make node uneditable

c86a89e9acbf2096278c57a678c8e5c4670006d7
You can use enableEdit and disableEdit in the next version.

Thank you for your work！


fix(theme) Use config.undercurl when setting up highlights

Allow control of undercurls from config as advertised. Fix #115

Good catch, must have been wiped during transition... however, we need to fall back to underlines
SpellBad = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.error },

Actually, I am questioning about the usefulness of this setting... nvim already falls back to plain underlines if the terminal does not support undercurls. The only reason for this option would be if users really don't like wavy underlines, but is that enough to justify a "first-class" option?

What's a non "first-class" option?  using config.overrides ? Since there are quite a few items that reads the configuration, my vote is still for config.undercurls.  For me this is more of an accessibility option since the curls made the code underlined hard to see.

Sure, not a big deal either way. So what's the solution for the original issue that config.undercurl is just plainly not used anywhere? Going back to SpellBad = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.error }, ?

Yes, I'd stick with that

done updated PR


WatchCollection is not a function

Hi,
I've tried using the library and followed all the steps according to the readme, but continue to get the following error: Error: scope.$watchCollection is not a function.  I have used my own data and the sample code from your website (the column series example) to test this and it occurs in both cases. The chart does show correctly, but it's strange that this error should appear. It gives me the impression something is going to break.

HI @sbaker7
Is it possible that you are using an ancient angular version <1.1.4?
Best,
Christoph

No, I'm using 1.4.7

am getting this too

Can you please provide a codepen/plunker that replicates the issue ? Thanks :-)


关于ImageMagick

在运行test中的代码时，出现下面的错误：
Traceback (most recent call last):
File "D:\ProgramData\Anaconda3\envs\AIsafety\lib\site-packages\wand\api.py", line 137, in
libraries = load_library()
File "D:\ProgramData\Anaconda3\envs\AIsafety\lib\site-packages\wand\api.py", line 126, in load_library
raise IOError('cannot find library; tried paths: ' + repr(tried_paths))
OSError: cannot find library; tried paths: []
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "testimport.py", line 16, in
from EvalBox.Analysis.evaluation_base import Evaluation_Base
File "E:\pycode\pycharmCode\AISafety\test/..\EvalBox\Analysis\evaluation_base.py", line 25, in
from EvalBox.Attack.CorAttack.corrupt import CORRUPT
File "E:\pycode\pycharmCode\AISafety\test/..\EvalBox\Attack\CorAttack_init_.py", line 5, in
from .corruptions import *
File "E:\pycode\pycharmCode\AISafety\test/..\EvalBox\Attack\CorAttack\corruptions.py", line 17, in
import wand.color as WandColor
File "D:\ProgramData\Anaconda3\envs\AIsafety\lib\site-packages\wand\color.py", line 10, in
from .api import library
File "D:\ProgramData\Anaconda3\envs\AIsafety\lib\site-packages\wand\api.py", line 163, in
'Try to install:\n  ' + msg)
ImportError: MagickWand shared library not found.
You probably had not installed ImageMagick library.
Try to install:
http://docs.wand-py.org/en/latest/guide/install.html#install-imagemagick-on-windows

我也遇到了同样的问题，请问您是怎么解决的


Type in buidIterableLeft

Issue description
The builder method buidIterableLeft seems to have a type.
poi-tl version
1.12.0

Can the question be more detailed


Remove use of deprecated substring

The build produces a warning about the use of substring, which was merged as a workaround for the macOS build in #375 .
Replace this with a less-confusing, non-deprecated statement.
$ swift build
/home/michellecasbon/repos/tensorflow/texasmichelle/swift-models/Datasets/TextUnsupervised/TextUnsupervised.swift:134:34: warning: 'substring(to:)' is deprecated: Please use String slicing subscript with a 'partial range upto' operator.
            rows[rows.count - 1].substring(to: rows[rows.count - 1].index(rows[rows.count - 1].endIndex, offsetBy: -2)))
                                 ^

Fixed by PR #395.


Exposing option to enable support for asserts w/ messages

From @sethladd on September 2, 2015 19:25
Following on the work from https://github.com/dart-lang/sdk/issues/24217
We'd love a flag so a user can opt-in and try this out.
Thanks!
Copied from original issue: dart-lang/analyzer_cli#59

From @stereotype441 on September 2, 2015 20:22

One possible approach for this would be to add the flag via the .analysis_options file.

The difficulty with this approach is that it interacts badly with our shared test infrastructure.  At the moment the only way for the shared test runner to specify to the implementations (the VM, dart2js, and the analyzer) that a work-in-progress feature should be enabled is to pass in a command line flag.  So we have to support the command line flag no matter what.
In principle, we could add .analysis_options support as an additional mechanism, however given that this DEP is a small backward-compatible feature addition, I suspect that it won't be too long before we just turn the feature on unconditionally.  In which case any additional work we do to support it in .analysis_options is going to be wasted effort.

From @sethladd on September 2, 2015 19:41
You read my mind! :)

From @bwilkerson on September 2, 2015 19:39
One possible approach for this would be to add the flag via the .analysis_options file.

From @bwilkerson on September 2, 2015 21:55
A command-line option for the command-line analyzer is fine, but that doesn't play nicely with the analysis server. It seems like overkill to ask clients to add a flag when invoking server and then turn around and ask them to remove it. And if we're going to support putting the option in the file for server, then we could just as easily support it that way for the command-line analyzer. It's sad that we have to duplicate effort to satisfy the test framework, but it's not that much work and the options file approach can be shared.

Messages in asserts is now enabled by default in analyzer (https://codereview.chromium.org/2557513008/).


3 3.0.9 got the path for Deezer and Google Play Music wrong

TL;DR
After the last update (Plasma DE, KDE Neon/Ubuntu 17.04 x86_64, using the stable Ubuntu repo). The main player doesn't have the Deezer and Google Play Music apps listed and is apparently looking for them in the wrong place.
Steps to reproduce

Start nuvolaplayer3
The Deezer app is not listed
It should

Packages versions
$ nuvolaplayer3 --version
Nuvola Player 3 3.0.9
Revision f79856a684ab9fbce31d814059a4fc20a51489c1
WebKitGTK 2.16.3
libsoup 2.56.0

$ aptitude show nuvolaplayer3-deezer
Package: nuvolaplayer3-deezer
Version: 2.7-1~zesty

stderr
$ nuvolaplayer3
Master: [WARNING  Nuvola] WebAppRegistry.vala:165: Unable to load web app from /usr/share/nuvolaplayer3/web_apps/deezer: /usr/share/nuvolaplayer3/web_apps/deezer/metadata.json is not a file
Master: [WARNING  Nuvola] WebAppRegistry.vala:165: Unable to load web app from /usr/share/nuvolaplayer3/web_apps/google_play_music: /usr/share/nuvolaplayer3/web_apps/google_play_music/metadata.json is not a file

More details
$ dpkg -L nuvolaplayer3-deezer
 [snip]
/usr/share/nuvolaruntime
/usr/share/nuvolaruntime/web_apps
/usr/share/nuvolaruntime/web_apps/deezer
/usr/share/nuvolaruntime/web_apps/deezer/icons
/usr/share/nuvolaruntime/web_apps/deezer/icons/scalable.svg
/usr/share/nuvolaruntime/web_apps/deezer/icons/24.png
/usr/share/nuvolaruntime/web_apps/deezer/icons/16.png
/usr/share/nuvolaruntime/web_apps/deezer/icons/48.png
/usr/share/nuvolaruntime/web_apps/deezer/icons/32.png
/usr/share/nuvolaruntime/web_apps/deezer/icons/256.png
/usr/share/nuvolaruntime/web_apps/deezer/icons/128.png
/usr/share/nuvolaruntime/web_apps/deezer/icons/64.png
/usr/share/nuvolaruntime/web_apps/deezer/icons/22.png
/usr/share/nuvolaruntime/web_apps/deezer/CONTRIBUTING.md
/usr/share/nuvolaruntime/web_apps/deezer/LICENSE
/usr/share/nuvolaruntime/web_apps/deezer/README.md
/usr/share/nuvolaruntime/web_apps/deezer/CHANGELOG.md
/usr/share/nuvolaruntime/web_apps/deezer/integrate.js`
/usr/share/nuvolaruntime/web_apps/deezer/metadata.json
[snip]
/usr/share/nuvolaplayer3/web_apps/deezer

So the main player is apparently looking for Deezer in /usr/share/nuvolaplayer3 while it is actually in /usr/share/nuvolaruntime. /usr/share/nuvolaplayer3/web_apps/deezer/ exists but is empty.

Thanks @Evpok for reporting this issue. /usr/share/nuvolaplayer3/web_apps/deezer/ should be a symlink to /usr/share/nuvolaruntime/web_apps/deezer. I need to find out what went wrong.

With that information I rmdir-ed /usr/share/nuvolaplayer3/web_apps/deezer/ and did a aptitude reinstall nuvolaplayer3-deezer and that fixed the issue.

Hm, so it seems that Debian packaging tools cannot replace a directory with a symlink. I'll change the symlink name (deezer-symlink) to workaround the issue.

@Evpok, could you test following?

apt remove nuvolaplayer3-deezer
rm -f /usr/share/nuvolaplayer3/web_apps/deezer
mkdir /usr/share/nuvolaplayer3/web_apps/deezer
apt update
apt install nuvolaplayer3-deezer

Same result as before
$ nuvolaplayer3
Master: [WARNING  Nuvola] WebAppRegistry.vala:165: Unable to load web app from /usr/share/nuvolaplayer3/web_apps/deezer: /usr/share/nuvolaplayer3/web_apps/deezer/metadata.json is not a file
$ file /usr/share/nuvolaplayer3/web_apps/deezer
/usr/share/nuvolaplayer3/web_apps/deezer: directory

And how about ls -l /usr/share/nuvolaplayer3/web_apps/deezer-link?

I mean when I run nuvolaplayer3 -D it shows ... Found web app Deezer at /usr/share/nuvolaplayer3/web_apps/deezer-link, version 2.7 ... with nuvolaplayer3-deezer 2.7-5. Does that also work on your system? If yes, that Unable to load web app from /usr/share/nuvolaplayer3/web_apps/deezer: /usr/share/nuvolaplayer3/web_apps/deezer/metadata.json is not a file warning can be ignored.

Oh yes, I forgot to check if the deezer app was in the launcher and it actually is. So it is working after all, sorry.


Hello, friend

I see you wanna add voice calling, but what about video screen sharing?

I mean that could be a good idea, but it'll take a lot of time to add...

I mean that could be a good idea, but it'll take a lot of time to add...

yep it will take a long ass time.


Linalg ops

[x] Apply
[x] Intersect
[x] Union
[x] MatrixMultiply
[x] Select
[x] SelectMask
[x] ReduceToVector
[x] ReduceToScalar
[x] Transpose
[x] Diag

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Files with Coverage Reduction
New Missed Lines
%

mlir_graphblas/engine.py
1
75.84%

mlir_graphblas/tests/test_profile.py
4
51.32%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
4563

Relevant Lines:
5314

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
29 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.09%) to 85.962%

Files with Coverage Reduction
New Missed Lines
%

mlir_graphblas/mlir_builder.py
29
91.86%

Totals

Change from base Build<PHONE_NUMBER>:
0.09%

Covered Lines:
4568

Relevant Lines:
5314

💛  - Coveralls


BUG: Unable to use scipy development environment from IDE

Describe your issue.
After following the steps to build scipy from source (https://scipy.github.io/devdocs/building/index.html#building-from-source):
mamba env create -f environment.yml
mamba activate scipy-dev
python dev.py build

I was unable to use the environment in the IDE (e.g. in the Jupyter Interactive Window in VSCode), as the scipy package cannot be imported:
ModuleNotFoundError: No module named 'scipy'
scipy is not present in the list of packages in the environment:
conda list | grep scipy
Presumably, this might be fixed once support for editable installs is added (https://github.com/scipy/scipy/issues/16293).
 For now you can either export the PYTHONPATH manually or use python dev.py shell or python dev.py ipython which does it for you.

Presumably, this might be fixed once support for editable installs is added (#16293).

This works already, you can use pip install -e . --no-build-isolation. See https://meson-python.readthedocs.io/en/latest/how-to-guides/editable-installs.html. Note that it's important to then only use that, and never dev.py; it's one or the other.

Observation from the SciPy 2023 sprints: several contributors were surprised when SciPy did not work immediately in an IDE after following the "Building from source for SciPy development" instructions. Perhaps they did not notice the absence of an IDE in the suggested uses:

You can then run tests (python dev.py test), drop into IPython (python dev.py ipython), or take other development steps like build the html documentation or running benchmarks.

or know to look for Meson's instructions about editable installs.
I have confirmed that editable installs work, but I have had trouble rebuilding after switching branches. git clean -dxf does not seem to be enough, and I've only been successful at rebuilding after a branch switch if I remove and re-install the environment. I imagine there is a way around this (@tupui didn't you suggest a way?), and perhaps it is documented somewhere, but I have not found it yet.

Another observation from the sprints: There was some confusion about the difference between "Building from source to use SciPy" and "Building from source for SciPy development". How should I answer these questions in the future:

Why might one want to build from source if not to do development?
What are the limitations of each approach?

Comment: I spent a few hours trying to use IDEs after dev.py build, so I thought it would be helpful to record the findings here.

In Spyder and PyCharm, it was relatively easy to add the build-install version of SciPy to the PYTHONPATH. After that, I could use SciPy in the IDE's console.
In Spyder and PyCharm, I was unsuccessful at getting dev.py to run automatically before running/testing/debugging. Both IDEs have some sort of option for running scripts or external commands before running/debugging, but I was unable to get them to work, so after making changes to SciPy source, I had to run dev.py manually for those changes to be useable in the IDE.
In PyCharm, I could open the build-install version of a test file to run tests using the features of the IDE.
In PyCharm, I could open the build-install version of a source file to add debug breakpoints, and they worked. when using the debug features of the IDE.

I imagine one could approximate an editable build workflow using these ideas if preferred over editable builds.

but I have had trouble rebuilding after switching branches. git clean -dxf does not seem to be enough, and I've only been successful at rebuilding after a branch switch if I remove and re-install the environment

You shouldn't have to rebuild explicitly, that's supposed to work automatically with editable installs. What happens if you switch branches and then run pytest path/to/a/changes/test_file.py? What should happen is that it rebuilds by itself, and the changes get picked up.

What happens if you switch branches...

I will test it, but I've already used dev.py. What should I do if I want to switch to an editable install? (E.g. is git clean -dxf enough, or should I do more?)

OK git clean -dxf seemed to be enough to switch from dev.py build to an editable install.
I created a fresh scipy-dev environment according to the quickstart instructions and then did an editable build. I added the git-controlled scipy folder to the PYTHONPATH (or equivalent) using a feature of my IDE (Pycharm "Mark Directory as Sources Root") and confirmed that it behaved as I would expect an in-place build to behave. I can interact with SciPy in the consol, run tests in the IDE, and debug. I can make changes to the source, and when I run in a fresh console, the changes have taken effect. I can even change branches as you suggested, and it continues to work. Great!
My problem was that before I knew it was supposed to work seamlessly, I was running python -m pip install --no-build-isolation --editable . after changing branches. When I do that, I get this error:

Obtaining file:///Users/matthaberland/Desktop/scipy
  Checking if build backend supports build_editable ... done
  Preparing editable metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing editable metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [47 lines of output]
      + meson setup --reconfigure /Users/matthaberland/Desktop/scipy /Users/matthaberland/Desktop/scipy/build/cp310 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/Users/matthaberland/Desktop/scipy/build/cp310/meson-python-native-file.ini
      The Meson build system
      Version: 1.2.0
      Source dir: /Users/matthaberland/Desktop/scipy
      Build dir: /Users/matthaberland/Desktop/scipy/build/cp310
      Build type: native build
      Project name: SciPy
      Project version: 1.12.0.dev0
      C compiler for the host machine: arm64-apple-darwin20.0.0-clang (clang 15.0.7 "clang version 15.0.7")
      C linker for the host machine: arm64-apple-darwin20.0.0-clang ld64 609
      C++ compiler for the host machine: arm64-apple-darwin20.0.0-clang++ (clang 15.0.7 "clang version 15.0.7")
      C++ linker for the host machine: arm64-apple-darwin20.0.0-clang++ ld64 609
      Cython compiler for the host machine: cython (cython 3.0.0)
      Host machine cpu family: aarch64
      Host machine cpu: aarch64
      Program python found: YES (/Users/matthaberland/mambaforge/envs/scipy-dev/bin/python)
      Program cython found: YES (/Users/matthaberland/mambaforge/envs/scipy-dev/bin/cython)
      Compiler for C supports arguments -Wno-unused-but-set-variable: YES (cached)
      Compiler for C supports arguments -Wno-unused-function: YES (cached)
      Compiler for C supports arguments -Wno-conversion: YES (cached)
      Compiler for C supports arguments -Wno-misleading-indentation: YES (cached)
      Library m found: YES
      Fortran compiler for the host machine: /Users/matthaberland/mambaforge/envs/scipy-dev/bin/arm64-apple-darwin20.0.0-gfortran (gcc 12.2.0 "GNU Fortran (GCC) 12.2.0")
      Fortran linker for the host machine: /Users/matthaberland/mambaforge/envs/scipy-dev/bin/arm64-apple-darwin20.0.0-gfortran ld64 609
      Compiler for Fortran supports arguments -Wno-conversion: YES (cached)
      Checking if "-Wl,--version-script" : links: NO (cached)
      Program pythran found: YES (/Users/matthaberland/mambaforge/envs/scipy-dev/bin/pythran)
      Found pkg-config: /Users/matthaberland/mambaforge/envs/scipy-dev/bin/pkg-config (0.29.2)
      Did not find CMake 'cmake'
      Found CMake: NO
      Run-time dependency xsimd found: NO (tried pkgconfig, framework and cmake)
      Dependency threads found: YES unknown (cached)
      Library npymath found: YES
      Library npyrandom found: YES
      Dependency pybind11 found: YES 2.11.1 (cached)

      ../../scipy/meson.build:92:21: ERROR: Command `/Users/matthaberland/mambaforge/envs/scipy-dev/bin/python -c 'import os
      os.chdir(os.path.join("..", "tools"))
      import pythran
      try:
        incdir = os.path.relpath(pythran.get_include())
      except Exception:
        incdir = pythran.get_include()
      print(incdir)
      '` failed with status 1.

      A full log can be found at /Users/matthaberland/Desktop/scipy/build/cp310/meson-logs/meson-log.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

When I try to use SciPy in my IDE again, I get this.

Traceback (most recent call last):
  File "/Users/matthaberland/mambaforge/envs/scipy-dev/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-2-d158660f93e2>", line 1, in <module>
    runfile('/Users/matthaberland/Library/Application Support/JetBrains/PyCharm2023.1/scratches/scratch.py', wdir='/Users/matthaberland/Library/Application Support/JetBrains/PyCharm2023.1/scratches')
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 198, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "/Users/matthaberland/Library/Application Support/JetBrains/PyCharm2023.1/scratches/scratch.py", line 1, in <module>
    from scipy.stats import ttest_1samp
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 945, in _find_spec
  File "/Users/matthaberland/mambaforge/envs/scipy-dev/lib/python3.10/site-packages/_scipy_editable_loader.py", line 268, in find_spec
    tree = self.rebuild()
  File "/Users/matthaberland/mambaforge/envs/scipy-dev/lib/python3.10/site-packages/_scipy_editable_loader.py", line 309, in rebuild
    subprocess.run(self._build_cmd, cwd=self._build_path, env=env, stdout=stdout, check=True)
  File "/Users/matthaberland/mambaforge/envs/scipy-dev/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/Users/matthaberland/mambaforge/envs/scipy-dev/bin/ninja']' returned non-zero exit status 1.

git clean -dxf and hard reset doesn't make the build work again. Uninstalling and re-installing the environment does.
I first noticed this on a 2013 running High Sierra. I just screen-captured the whole process on a 2020 M1 running Ventura, so it's repeatable.
The fix on the user's side is very easy - don't run the editable install command more than once.
On Meson's side, can the build not break if the editable install command is inadvertently re-run?

My problem was that before I knew it was supposed to work seamlessly, I was running python -m pip install --no-build-isolation --editable . after changing branches. When I do that, I get this error

Ah okay, I get the problem now, and can reproduce it. A non-editable build can be re-run, while an editable one cannot. The meson-log.txt file contains:
ERROR: Some other Meson process is already using this build directory. Exiting

before the pythran traceback above. It actually chokes on pythran/tables.py, which tries to import scipy.special and all this hits some weird recursion error when that import hits the editable install import hook. Should be fixable.

git clean -dxf and hard reset doesn't make the build work again. Uninstalling and re-installing the environment does.

The issue is caused by the editable import hook for scipy, which consists of two files in site-packages, namely _scipy_editable_loader.py and scipy-editable.pth. A pip uninstall scipy will get rid of those, and then you can re-run pip install -e . --no-build-isolation. Same if you want to switch back to dev.py - run pip uninstall scipy first.

The fix on the user's side is very easy - don't run the editable install command more than once.

Indeed.

On Meson's side, can the build not break if the editable install command is inadvertently re-run?

It's definitely fixable somewhere - probably more on the Pythran and/or SciPy side though.

Thanks. I can test this on Windows if there is a way to limit the number of parallel jobs with editable installs (https://github.com/scipy/scipy/issues/18443#issuecomment-1647064551).

I can test this on Windows if there is a way to limit the number of parallel jobs with editable installs (#18443 (comment)).

Great, thanks. And yes there is: http://scipy.github.io/devdocs/building/compilers_and_options.html#controlling-build-parallelism:
pip install -e . --no-build-isolation -Ccompile-args="-j6"

@tupui didn't you suggest a way?

Yes that was what Ralf is suggesting, uninstalling SciPy and re-running the install.
On my side I have this failure now:
Traceback (most recent call last):
  File "_sobol.pyx", line 71, in scipy.stats._sobol.get_poly_vinit
  File "_sobol.pyx", line 143, in scipy.stats._sobol._initialize_direction_numbers
  File ".../envs/scipy-dev-311/lib/python3.11/site-packages/numpy/lib/npyio.py", line 427, in load
    fid = stack.enter_context(open(os_fspath(file), "rb"))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '.../scipy/build/cp311/scipy/stats/_sobol_direction_numbers.npz'

The file _sobol_direction_numbers.npz is not being copied although it is in the meson.build
py3.install_sources([
    '_sobol_direction_numbers.npz'
  ],
  subdir: 'scipy/stats'
)

Last time we discussed editable installed, you mentioned it was not ready for prime time. Has this changed or are we still waiting for some changes?
Should we start adding the capability to dev.py?

Last time we discussed editable installed, you mentioned it was not ready for prime time. Has this changed or are we still waiting for some changes?

I think it's ready for early adopters, but as Matt found it is still a little rough unless you know exactly what to do. I have a plan to fix the double pip install -e . --no-build-isolation thing in Pythran. I've verified that for NumPy that actually works fine; the problem in SciPy is a recursion error where scipy builds with pythran, and pythran tries to import scipy during the build.

Should we start adding the capability to dev.py?

Maybe / perhaps / not sure. We've always had a split between in-place builds and dev.py/runtests.py. In a way it's quite attractive to unify them, as long as it's equally robust. I think once the above pythran-related issue is resolved, we can try it.

If I use pip install -e . --no-build-isolation to build, what command should be used to run all tests (the equivalent of python dev.py test)?

what command should be used to run all tests

Standard pytest usage. E.g. to run all tests, pytest scipy, and to run only cluster tests, pytest scipy/cluster`.

Also since you are using VSCode, you should be able from the IDE to select the file or single test you want to run and that should work. (It does on PyCharm at least)

What is the best way to build the docs (the equivalent of python dev.py doc) after running pip install -e . --no-build-isolation?

cd doc && make html

cd doc && make html

That is giving me:
scipy not found, cannot build documentation without successful "import scipy"
make: *** [Makefile:60: version-check] Error 1

Then your editable install did not work, or you are in the wrong environment. Or it's picking up the wrong Sphinx. If the former, then python -c "import scipy" will fail with the same message. If the latter, please install Sphinx and the other doc dependencies in your active env.

Then your editable install did not work, or you are in the wrong environment. Or it's picking up the wrong Sphinx. If the former, then python -c "import scipy" will fail with the same message. If the latter, please install Sphinx and the other doc dependencies in your active env.

That was my bad - I was trying to run it from the wrong environment.
Once in the editable environment, I got this error:
# for testing
# @echo installed scipy aad99b4 matches git version aad99b4; exit 1
mkdir -p build/html build/doctrees
LANG=C python3 -msphinx -WT --keep-going  -b html -d build/doctrees  source build/html
Running Sphinx v5.3.0
SciPy (VERSION 1.12.0.dev)
/home/artem/git/scipy/venv/lib/python3.11/site-packages/sphinx/util/images.py:4: DeprecationWarning: 'imghdr' is deprecated and slated for removal in Python 3.13
  import imghdr

Traceback (most recent call last):
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/sphinx/cmd/build.py", line 276, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/sphinx/application.py", line 223, in __init__
    self.setup_extension(extension)
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/sphinx/application.py", line 398, in setup_extension
    self.registry.load_extension(self, extname)
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/sphinx/registry.py", line 472, in load_extension
    metadata = setup(app)
               ^^^^^^^^^^
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/myst_nb/__init__.py", line 8, in setup
    from .sphinx_ext import sphinx_setup
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/myst_nb/sphinx_ext.py", line 20, in <module>
    from myst_nb.ext.eval import load_eval_sphinx
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/myst_nb/ext/eval/__init__.py", line 10, in <module>
    from myst_nb.core.execute.base import EvalNameError
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/myst_nb/core/execute/__init__.py", line 7, in <module>
    from .cache import NotebookClientCache
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/myst_nb/core/execute/cache.py", line 13, in <module>
    from jupyter_cache.executors.utils import single_nb_execution
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/jupyter_cache/executors/utils.py", line 7, in <module>
    from nbclient import execute as executenb
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/nbclient/__init__.py", line 5, in <module>
    from .client import NotebookClient, execute  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/nbclient/client.py", line 15, in <module>
    from jupyter_client import KernelManager
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/jupyter_client/__init__.py", line 3, in <module>
    from .asynchronous import AsyncKernelClient
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/jupyter_client/asynchronous/__init__.py", line 1, in <module>
    from .client import AsyncKernelClient  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/jupyter_client/asynchronous/client.py", line 9, in <module>
    from ..client import KernelClient, reqrep
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/jupyter_client/client.py", line 20, in <module>
    from .connect import ConnectionFileMixin
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/jupyter_client/connect.py", line 20, in <module>
    from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/jupyter_core/paths.py", line 208, in <module>
    deprecation(
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/jupyter_core/utils/__init__.py", line 89, in deprecation
    warnings.warn(message, DeprecationWarning, stacklevel=stacklevel + 1)
DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs
given by the platformdirs library.  To remove this warning and
see the appropriate new directories, set the environment variable
`JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`.
The use of platformdirs will be the default in `jupyter_core` v6

Exception occurred:
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/jupyter_core/utils/__init__.py", line 89, in deprecation
    warnings.warn(message, DeprecationWarning, stacklevel=stacklevel + 1)
DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs
given by the platformdirs library.  To remove this warning and
see the appropriate new directories, set the environment variable
`JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`.
The use of platformdirs will be the default in `jupyter_core` v6
The full traceback has been saved in /tmp/sphinx-err-ba_2e_7a.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [Makefile:110: html-build] Error 2

Setting JUPYTER_PLATFORM_DIRS=1 seems to have solved it, but then it hit the next issue:
# for testing
# @echo installed scipy aad99b4 matches git version aad99b4; exit 1
mkdir -p build/html build/doctrees
LANG=C python3 -msphinx -WT --keep-going  -b html -d build/doctrees  source build/html
Running Sphinx v5.3.0
SciPy (VERSION 1.12.0.dev)
/home/artem/git/scipy/venv/lib/python3.11/site-packages/sphinx/util/images.py:4: DeprecationWarning: 'imghdr' is deprecated and slated for removal in Python 3.13
  import imghdr

Traceback (most recent call last):
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/sphinx/cmd/build.py", line 276, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/sphinx/application.py", line 223, in __init__
    self.setup_extension(extension)
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/sphinx/application.py", line 398, in setup_extension
    self.registry.load_extension(self, extname)
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/sphinx/registry.py", line 472, in load_extension
    metadata = setup(app)
               ^^^^^^^^^^
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/myst_nb/__init__.py", line 10, in setup
    return sphinx_setup(app)
           ^^^^^^^^^^^^^^^^^
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/myst_nb/sphinx_ext.py", line 98, in sphinx_setup
    add_css(app)
  File "/home/artem/git/scipy/venv/lib/python3.11/site-packages/myst_nb/sphinx_ext.py", line 189, in add_css
    with import_resources.path(static, "mystnb.css") as source_path:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/resources/_legacy.py", line 18, in wrapper
    warnings.warn(
DeprecationWarning: path is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.

Exception occurred:
  File "/usr/local/lib/python3.11/importlib/resources/_legacy.py", line 18, in wrapper
    warnings.warn(
DeprecationWarning: path is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
The full traceback has been saved in /tmp/sphinx-err-6i_y6hfv.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [Makefile:110: html-build] Error 2

Oh I am surprised. I will try to reproduce but I never saw that although I am on 3.11 and building (I have other parallelisation issues but not that.)
To unblock you, maybe just try to silence the warning itself. You should be able to edit doc/source/conf.py and around L147 add part of the message.

In https://github.com/scipy/scipy/issues/18900#issuecomment-1646745115, I wrote:

I can even change branches as https://github.com/scipy/scipy/issues/18900#issuecomment-1646665715 and it continues to work. Great!

I haven't been able to replicate what I thought I had seen. For instance, I am trying to switch branches between main and a feature branch whose latest commit is a merge with main. After switching branches, opening a fresh console in my IDE (PyCharm), and trying to import scipy, I get the following error:
Traceback (most recent call last):
  File "/Users/matthaberland/mambaforge/envs/scipy-dev/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-2-4363d2be0702>", line 1, in <module>
    import scipy
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 945, in _find_spec
  File "/Users/matthaberland/mambaforge/envs/scipy-dev/lib/python3.10/site-packages/_scipy_editable_loader.py", line 268, in find_spec
    tree = self.rebuild()
  File "/Users/matthaberland/mambaforge/envs/scipy-dev/lib/python3.10/site-packages/_scipy_editable_loader.py", line 309, in rebuild
    subprocess.run(self._build_cmd, cwd=self._build_path, env=env, stdout=stdout, check=True)
  File "/Users/matthaberland/mambaforge/envs/scipy-dev/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/Users/matthaberland/mambaforge/envs/scipy-dev/bin/ninja']' returned non-zero exit status 1.

However, if I do the same thing in a Python prompt in the terminal (without using my IDE), there is no problem. Furthermore, I have even observed the following sequence:

switch branches
import scipy in a fresh console in my IDE - error
import scipy in the terminal - no error
import scipy in the same console in the IDE as before - no error

I know that IDEs can throw variables into the mix that are a pain to deal with, but any guesses?

No idea really, "returned non-zero exit status 1" isn't very informative. Maybe you can change the exec line in /IPython/core/interactiveshell.py to something like the suggestion in https://stackoverflow.com/questions/27920837/subprocess-check-output-returned-non-zero-exit-status-1 in order to see the actual error in the ninja invocation?

Standard pytest usage. E.g. to run all tests, pytest scipy, and to run only cluster tests, pytest scipy/cluster.

I've tried running all tests from source root using pytest scipy, but got these three errors:
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.11.3, pytest-7.4.0, pluggy-1.2.0
rootdir: /home/artem/git/scipy
configfile: pytest.ini
plugins: xdist-3.3.1, timeout-2.1.0
collected 58027 items / 3 errors / 1 skipped

===================================================================================================== ERRORS ======================================================================================================
_________________________________________________________________________ ERROR collecting scipy/_build_utils/tests/test_scipy_version.py _________________________________________________________________________
ImportError while importing test module '/home/artem/git/scipy/scipy/_build_utils/tests/test_scipy_version.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'scipy._build_utils'
_____________________________________________________________ ERROR collecting scipy/_lib/highs/src/interfaces/highspy/highspy/tests/test_highspy.py ______________________________________________________________
ImportError while importing test module '/home/artem/git/scipy/scipy/_lib/highs/src/interfaces/highspy/highspy/tests/test_highspy.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/_lib/highs/src/interfaces/highspy/highspy/__init__.py:1: in <module>
    from .highs import (
scipy/_lib/highs/src/interfaces/highspy/highspy/highs.py:1: in <module>
    from .highs_bindings import (
E   ModuleNotFoundError: No module named 'highspy.highs_bindings'
________________________________________________________________________________ ERROR collecting scipy/special/tests/test_data.py ________________________________________________________________________________
.venv/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
        cls        = <class '_pytest.runner.CallInfo'>
        duration   = 0.007315864000702277
        excinfo    = <ExceptionInfo FileNotFoundError(2, 'No such file or directory') tblen=17>
        func       = <function pytest_make_collect_report.<locals>.<lambda> at 0x7f5300662200>
        precise_start = 28024.274867782
        precise_stop = 28024.282183646
        reraise    = None
        result     = None
        start      =<PHONE_NUMBER>.0433958
        stop       =<PHONE_NUMBER>.050713
        when       = 'collect'
.venv/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
        collector  = <Module test_data.py>
.venv/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
        __class__  = <class '_pytest.python.Module'>
        self       = <Module test_data.py>
.venv/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
        has_nose   = True
        self       = <Module test_data.py>
.venv/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
        obj        = None
        self       = <Module test_data.py>
.venv/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
        self       = <Module test_data.py>
.venv/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
        importmode = 'prepend'
        self       = <Module test_data.py>
.venv/lib/python3.11/site-packages/_pytest/pathlib.py:565: in import_path
    importlib.import_module(module_name)
        mode       = <ImportMode.prepend: 'prepend'>
        module_name = 'scipy.special.tests.test_data'
        names      = ['scipy', 'special', 'tests', 'test_data']
        p          = PosixPath('/home/artem/git/scipy/scipy/special/tests/test_data.py')
        path       = PosixPath('/home/artem/git/scipy/scipy/special/tests/test_data.py')
        pkg_path   = PosixPath('/home/artem/git/scipy/scipy')
        pkg_root   = PosixPath('/home/artem/git/scipy')
        root       = PosixPath('/home/artem/git/scipy')
/usr/local/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
        level      = 0
        name       = 'scipy.special.tests.test_data'
        package    = None
<frozen importlib._bootstrap>:1206: in _gcd_import
    ???
        level      = 0
        name       = 'scipy.special.tests.test_data'
        package    = None
<frozen importlib._bootstrap>:1178: in _find_and_load
    ???
        import_    = <function _gcd_import at 0x7f530ca87d80>
        module     = <object object at 0x7f530cabc050>
        name       = 'scipy.special.tests.test_data'
<frozen importlib._bootstrap>:1149: in _find_and_load_unlocked
    ???
        child      = 'test_data'
        import_    = <function _gcd_import at 0x7f530ca87d80>
        name       = 'scipy.special.tests.test_data'
        parent     = 'scipy.special.tests'
        parent_module = <module 'scipy.special.tests' from '/home/artem/git/scipy/scipy/special/tests/__init__.py'>
        parent_spec = ModuleSpec(name='scipy.special.tests', loader=<_scipy_editable_loader.SourceFileLoader object at 0x7f52d3c533d0>, origin='/home/artem/git/scipy/scipy/special/tests/__init__.py', submodule_search_locations=[])
        path       = []
        spec       = ModuleSpec(name='scipy.special.tests.test_data', loader=<_scipy_editable_loader.SourceFileLoader object at 0x7f52d3603810>, origin='/home/artem/git/scipy/scipy/special/tests/test_data.py')
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
        module     = <module 'scipy.special.tests.test_data' from '/home/artem/git/scipy/scipy/special/tests/test_data.py'>
        spec       = ModuleSpec(name='scipy.special.tests.test_data', loader=<_scipy_editable_loader.SourceFileLoader object at 0x7f52d3603810>, origin='/home/artem/git/scipy/scipy/special/tests/test_data.py')
<frozen importlib._bootstrap_external>:940: in exec_module
    ???
        code       = <code object <module> at 0x55bd2633f740, file "/home/artem/git/scipy/scipy/special/tests/test_data.py", line 1>
        module     = <module 'scipy.special.tests.test_data' from '/home/artem/git/scipy/scipy/special/tests/test_data.py'>
        self       = <_scipy_editable_loader.SourceFileLoader object at 0x7f52d3603810>
<frozen importlib._bootstrap>:241: in _call_with_frames_removed
    ???
        args       = (<code object <module> at 0x55bd2633f740, file "/home/artem/git/scipy/scipy/special/tests/test_data.py", line 1>, {'Fu...ception'>, ...}, '__cached__': '/home/artem/git/scipy/scipy/special/tests/__pycache__/test_data.cpython-311.pyc', ...})
        f          = <built-in function exec>
        kwds       = {}
scipy/special/tests/test_data.py:26: in <module>
    DATASETS_BOOST = np.load(os.path.join(os.path.dirname(__file__),
        FuncData   = <class 'scipy.special._testutils.FuncData'>
        IntegrationWarning = <class 'scipy.integrate._quadpack_py.IntegrationWarning'>
        __builtins__ = <builtins>
        __cached__ = '/home/artem/git/scipy/scipy/special/tests/__pycache__/test_data.cpython-311.pyc'
        __doc__    = None
        __file__   = '/home/artem/git/scipy/scipy/special/tests/test_data.py'
        __loader__ = <_scipy_editable_loader.SourceFileLoader object at 0x7f52d3603810>
        __name__   = 'scipy.special.tests.test_data'
        __package__ = 'scipy.special.tests'
        __spec__   = ModuleSpec(name='scipy.special.tests.test_data', loader=<_scipy_editable_loader.SourceFileLoader object at 0x7f52d3603810>, origin='/home/artem/git/scipy/scipy/special/tests/test_data.py')
        bdtrik     = <ufunc 'bdtrik'>
        beta       = <ufunc 'beta'>
        betainc    = <ufunc 'betainc'>
        betaincinv = <ufunc 'betaincinv'>
        binom      = <ufunc 'binom'>
        btdtr      = <ufunc 'btdtr'>
        btdtri     = <ufunc 'btdtri'>
        btdtria    = <ufunc 'btdtria'>
        btdtrib    = <ufunc 'btdtrib'>
        cbrt       = <ufunc 'cbrt'>
        chndtr     = <ufunc 'chndtr'>
        digamma    = <ufunc 'psi'>
        ellip_harm = <function ellip_harm at 0x7f52e37367a0>
        ellip_harm_2 = <function ellip_harm_2 at 0x7f52e3736700>
        ellipe     = <ufunc 'ellipe'>
        ellipeinc  = <ufunc 'ellipeinc'>
        ellipk     = <ufunc 'ellipk'>
        ellipkinc  = <ufunc 'ellipkinc'>
        ellipkm1   = <ufunc 'ellipkm1'>
        elliprc    = <ufunc 'elliprc'>
        elliprd    = <ufunc 'elliprd'>
        elliprf    = <ufunc 'elliprf'>
        elliprg    = <ufunc 'elliprg'>
        elliprj    = <ufunc 'elliprj'>
        erf        = <ufunc 'erf'>
        erfc       = <ufunc 'erfc'>
        erfcinv    = <ufunc 'erfcinv'>
        erfinv     = <ufunc 'erfinv'>
        eval_genlaguerre = <ufunc 'eval_genlaguerre'>
        eval_hermite = <ufunc 'eval_hermite'>
        eval_laguerre = <ufunc 'eval_laguerre'>
        eval_legendre = <ufunc 'eval_legendre'>
        exp1       = <ufunc 'exp1'>
        expi       = <ufunc 'expi'>
        expm1      = <ufunc 'expm1'>
        expn       = <ufunc 'expn'>
        gamma      = <ufunc 'gamma'>
        gammainc   = <ufunc 'gammainc'>
        gammaincc  = <ufunc 'gammaincc'>
        gammainccinv = <ufunc 'gammainccinv'>
        gammaincinv = <ufunc 'gammaincinv'>
        gammaln    = <ufunc 'gammaln'>
        gdtr       = <ufunc 'gdtr'>
        gdtrc      = <ufunc 'gdtrc'>
        gdtrib     = <ufunc 'gdtrib'>
        gdtrix     = <ufunc 'gdtrix'>
        iv         = <ufunc 'iv'>
        ivp        = <function ivp at 0x7f52e36f2700>
        jn         = <ufunc 'jv'>
        jv         = <ufunc 'jv'>
        jvp        = <function jvp at 0x7f52e36f2520>
        kn         = <ufunc 'kn'>
        kv         = <ufunc 'kv'>
        kvp        = <function kvp at 0x7f52e36f2660>
        log1p      = <ufunc 'log1p'>
        lpmn       = <function lpmn at 0x7f52e36f2f20>
        lpmv       = <ufunc 'lpmv'>
        lpn        = <function lpn at 0x7f52e36f3240>
        lqmn       = <function lqmn at 0x7f52e36f3060>
        lqn        = <function lqn at 0x7f52e36f32e0>
        mathieu_a  = <ufunc 'mathieu_a'>
        mathieu_b  = <ufunc 'mathieu_b'>
        mathieu_cem = <ufunc 'mathieu_cem'>
        mathieu_modcem1 = <ufunc 'mathieu_modcem1'>
        mathieu_modcem2 = <ufunc 'mathieu_modcem2'>
        mathieu_modsem1 = <ufunc 'mathieu_modsem1'>
        mathieu_modsem2 = <ufunc 'mathieu_modsem2'>
        mathieu_sem = <ufunc 'mathieu_sem'>
        nbdtrik    = <ufunc 'nbdtrik'>
        np         = <module 'numpy' from '/home/artem/git/scipy/.venv/lib/python3.11/site-packages/numpy/__init__.py'>
        os         = <module 'os' (frozen)>
        owens_t    = <ufunc 'owens_t'>
        pdtrik     = <ufunc 'pdtrik'>
        poch       = <ufunc 'poch'>
        pytest     = <module 'pytest' from '/home/artem/git/scipy/.venv/lib/python3.11/site-packages/pytest/__init__.py'>
        sph_harm   = <ufunc 'sph_harm'>
        spherical_jn = <function spherical_jn at 0x7f52e3736ac0>
        spherical_yn = <function spherical_yn at 0x7f52e3736980>
        suppress_warnings = <class 'numpy.testing._private.utils.suppress_warnings'>
        wright_bessel = <ufunc 'wright_bessel'>
        yn         = <ufunc 'yn'>
        yv         = <ufunc 'yv'>
        yvp        = <function yvp at 0x7f52e36f25c0>
        zeta       = <function zeta at 0x7f52e3734400>
.venv/lib/python3.11/site-packages/numpy/lib/npyio.py:427: in load
    fid = stack.enter_context(open(os_fspath(file), "rb"))
E   FileNotFoundError: [Errno 2] No such file or directory: '/home/artem/git/scipy/scipy/special/tests/data/boost.npz'
        allow_pickle = False
        encoding   = 'ASCII'
        file       = '/home/artem/git/scipy/scipy/special/tests/data/boost.npz'
        fix_imports = True
        max_header_size = 10000
        mmap_mode  = None
        pickle_kwargs = {'encoding': 'ASCII', 'fix_imports': True}
        stack      = <contextlib.ExitStack object at 0x7f52d3603850>
============================================================================================= short test summary info =============================================================================================
ERROR scipy/_build_utils/tests/test_scipy_version.py
ERROR scipy/_lib/highs/src/interfaces/highspy/highspy/tests/test_highspy.py
ERROR scipy/special/tests/test_data.py - FileNotFoundError: [Errno 2] No such file or directory: '/home/artem/git/scipy/scipy/special/tests/data/boost.npz'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================================================== 1 skipped, 3 errors in 15.29s ==========================================================================================

Yes I think it's the same issue I reported above. For now there is no fix. Locally you have to copy paste into the build folder the npz. I know you are working on QMC, in that case you need to copy the file _sobol_direction_numbers.npz and then all tests in QMC should pass.

In my case, the last error is
FileNotFoundError: [Errno 2] No such file or directory: '/home/artem/git/scipy/scipy/special/tests/data/boost.npz'

so it seems to be looking for the file in the source directory rather than the build directory.
There are also there two errors:
E   ModuleNotFoundError: No module named 'scipy._build_utils'
E   ModuleNotFoundError: No module named 'highspy.highs_bindings'

Let me try running just the tests in qmc though.

For Highs, can you try to update the submodules? git submodule update --init. For the test part if you are missing files that's a bit strange. It can happen when moving from one branch to another. You can try merging main to your branch.

I just thought I'd report that I've been using editable install + PyCharm on an M1 pretty successfully for a while now. I was able to do some development today using editable install + PyCharm on a Windows machine, too. I can run unit tests individually using the features of the IDE, I can run scripts using the "play" button, and I can debug tests and scripts, too. The only hiccup is https://github.com/scipy/scipy/issues/18900#issuecomment-1657258983, but I think that might just be on the Mac, and either way it might just be a PyCharm oddity.


about uncertainties

Hi, are there any possibilities to compute aleatoric uncertainty and epistemic uncertainty of each class of the model (BCNN), other than just one sample?

Hi.
Yes, it is possible. I will put the updated code on this repo in 2 days.
However, we calculate the uncertainties on the test data on a given batch. So class wise uncertainty can only be derived on the validation set.


Add argv for sharding and stuff

Concerning #167.
The first patch is to add use-sharding option for MongoDB. Sharding itself hasn't been added yet.
The other is to separate a common part of MongoDBStandaloneLauncher into MongoDBLauncher, as it can be used in another MongoDB instance launchers.
@sgkim126 @murmur76 @kimchoco, please review this.

PR updated.
I couldn't find a way to get Java command line args in Play, so I've just implemented a patch using --Dbeyond.mongodb.type. By that, inevitably I used a config val again. If there's any better way, please feel free to comment here.

LGTM

Merged.


dynamic-vs-static-shared-memo [Not for merge]

This is to investigate the execution time difference between the dynamic vs static shared memory.
If we use the linear index for shared memory (instead of the 2d index), the execution time is indeed the same.
Just made a few changes from the original dynamic shared memory implementation and obtained a "copy" of the same implementation with static shared memory (linear index form).
Three forms are benchmarked in the T4 GPU below.  Dynamic shared mem has the same runtime as the static shared memo with linear index.

The full notebook can be previewed in this PR or from Kaggle notebook
cc @jph00

Thanks for sharing @lancerts -- check out the posted YouTube video, in which I actually figured out the source of the slow-down and managed to fix it! (The fix is at the end of the notebook in the repo)


Rspec and state_machine

I have the following state machine
class Test < ActiveRecord::Base
  def end_call
    # Called twice
  end

  state_machine :state, :initial => :brand_new do
    after_transition :to => :end, :do => :end_call

    event :start do
      transition :start => :end
    end
  end
end

and the following test in rspec
it "should test the test" do
  Test = Factory(:test)
  test.start!
end

What happens is that end_call gets called twice. Do know its probably not an issue here. But googled everywhere and couldnt find an answer. Probably more people having the same problem as med out there.

Hi @popdevelop -
This will happen if you evaluate the class more than once.  Can you put a puts statement before your Test class and validate that you're only seeing the class evaluated once?

Yes you are correct the Class is evaluated twice. I guess I have to find out why. Thanks for helping me out.

Seems like my problem is that I am using spork and reloads the models every iteration however I am using ActiveSupport::Dependencies.clear to get rid of the dependencies for ActiveSupport can I do something equivalent for state_machine. Thanks for your support.

My question is, is there a way to remove the already loaded state_machine since I need to reload the Class without having the callback beeing triggered twice.

Ah, sorry I didn't realize you were asking a question in your previous comment.  There's no support way for clearing out the callbacks for a state machine.  You can certainly dig your way into the StateMachine::Machine instance, but I wouldn't recommend that.
I'd recommend taking a look at issue #67 where I've addressed this before.  You'll see near the end of that issue that the real problem had to do with how Spork was being configured for that particular user.  The conversation spilled over to here as well where a solution to the Spork issue was proposed and worked for everyone involved: https://github.com/mongoid/mongoid/issues/1752

+1 I'm getting the same problem with and without spork.


Revert the default port forwarder to SSH

The GRPC port forwarder is still too unstable (issue #2859, etc.)

Note for the release notes that this means 1.0.1 will not support UDP forwarding, as that relies on the gRPC forwarder.


Merge default storagepool changes from PR openebs/maya#265 to master.

The changes are merged to v0.5 towards release 0.5.3.
Using this bug to track the merge of https://github.com/openebs/maya/pull/265 to master branch.

https://github.com/openebs/openebs/issues/1266


 The 🚑 is standing by.
Notes:

Disregard the invalid cross reference(s) "fundamentals/metapackage-app" warning ... that topic will be landing shortly in the repo.
Generic Host sample is on -rtm- packages until RTM. I've added this sample to the 2.1 sample update tracking issue (#5495) to make sure the work is done.
I recommend and use "Web Host" and "Generic Host" as proper nouns throughout.
I (mostly) match the topic outline sections to the sample extension method calls in order of appearance. I think this layout composes well.
I'm a tad concerned on IHost StartAsync and StopAsync versus the same methods on HostingAbstractionsHostExtensions. The Manage the host section deserves careful scrutiny on API references and the examples used.
I'm not entirely happy with the way the original Hosting topic (now Web Host) handles the "external control" example. I'm not sweating reorganizing the content on it in the Web Host topic here; however, I am trying to fix it in the new Generic Host topic to take us forward: I prefer to split that out into its own subsection, so that's what I do here. Let's see if it works.
This PR moves the background tasks topic (hosted-services.md) to this new host node. We'll update that topic and add a Generic Host sample (which I already have in-hand) on #3352 immediately after we merge this.
Finally, I need to add a note WRT running the sample in an external console or internal terminal. Trying to run the sample in VSC in the internal console leads to a :boom: :cry:. I'll do that on an upcoming commit.

@Tratcher Ok ... see how that looks.
I didn't remove the AddConfiguration bits; however, I did add back the GH issue link and note as we have over the Web Host topic. I think if that's a scenario that's tripping up a lot of devs that it should remain. Your call.

StopAsync(TimeSpan) looks best. No need to distinguish between first class and extension methods here.

@guardrex Personally, I think the en dash with spaces looks nicer. Let's roll with that, and we can always address this later. I'd hate for something as minor as that to hold up publishing.

Yeah ... I think they just didn't consider it. Their blanket rule seems to indicate that they were thinking 100% inline usages.


package version conflict while launching leaderboard2 eval

what version of omegaconf , hydra-core and antlr4-python3-runtime should we use ! i got error precising antlr4-python3-runtime should have version 4.11 , what is the consequent versions of omegaconf and hydra-core please ? @clefourrier
similar issue here https://github.com/facebookresearch/hydra/issues/2699#issuecomment-1635165162

It looks like omegaconf can be installed from main to get compatibility: https://github.com/omry/omegaconf/pull/1114
and same with hydra-core: https://github.com/facebookresearch/hydra/pull/2733 --no releases including this yet
It seems like omegaconf==2.4.0.dev2 and omegaconf==2.4.0.dev3 should do the trick (pre-release versions), though no equivalent for hydra-core is there yet.


Slack-IRC reconnects when adding/removing bans/quiets.

Users of Slack-IRC seem to experience a crash when ops add or remove a ban or quiet.
I'm not a user of Slack and I will never be so I can't help throubleshoot much further, but this sequence has become quite common to see in IRC channels when slack-irc is involved.
14:11 -!- mode/#salt [+o User] by ChanServ
14:11 -!- mode/#salt [-bo <redacted> User] by User
14:11 -!- slack [~slack@<redacted>] has quit [Remote host closed the connection]
14:11 -!- slack [~slack@<redacted>] has joined #salt

Do you have a stack trace or something from the bot when it crashes? I tried reproducing this, but nothing happened when I added/removed +b from users in channels the bot was in.


Fixed height bug in DrawTextRecEx()

Small error that prevented rendering the text inside a rectangle with sufficient height.
Sorry i didn't catch this earlier!

Hey @Demizdor! Thank you very much! :)


chore: update googleapis SHA circa 2024-12-22

To pick up parametermanager.
PiperOrigin-RevId: 708446642

This change is

This commit does not include parametermanager in the api-index, so I am going to sit on it.


add emscripten support

I'm currently using this in my own project and figured I'd at least make my fixes public so others could either take them from the PR or put them here so it can be upstreamed.

cool


Linux Firewall IPV4, can't see anything, not working

Hello,
it seems that Linux Firwall doesn't work as before for IPV4
I can't see anything, while before all the rules were there as expected.
here the screenshot

thanks

Even if I click on Showing IPtable nothing happens and the same clicking on the dropdown, no errors on console

Hi,
I wonder why it's submitted to theme repo?
Anyway - try applying this patch.

Sorry for delay, yes, I confirm that patch works 😄 thanks


UnsatisfiableError: The following specifications were found to be incompatible with each other:

Hey there,
i got a brand new installation of conda but I receive an dependency issue when following the instructions from the CODE.md file. Any help is appreciated.
Best,
Mo
The error is as follows:
conda create -n lsfm -c menpo python=3.5 lsfm
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
Package python conflicts for:
python=3.5
lsfm -> python=3.5
lsfm -> docopt[version='>=0.6.2'] -> python[version='2.7.|3.4.|>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.8,<3.9.0a0|>=3.6']

My System is :
lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.7 LTS
Release:	16.04
Codename:	xenial

I met this problem today, It's seemed no one maintains the repo for too long.   I have installed lsfm from source code, but it will take many steps.

I met this problem today, It's seemed no one maintains the repo for too long. I have installed lsfm from source code, but it will take many steps.

What do you mean by "install from the source code"? I am seeing this problem as well and get totally puzzled...

I met this problem today, It's seemed no one maintains the repo for too long. I have installed lsfm from source code, but it will take many steps.

What do you mean by "install from the source code"? I am seeing this problem as well and get totally puzzled...

Compile lsfm from source code to install.

Compile lsfm from source code to install.

Did that work? How long did it take you to get all done?

Compile lsfm from source code to install.

Did that work? How long did it take you to get all done?

Yeap, 4-5 days.

Yeap, 4-5 days.

WOW..... Thanks a lot. I can tell it's not an easy task..... Could you share the model you've got at the end? That would save weeks of me probably repeating what you have done... orz

Yeap, 4-5 days.

WOW..... Thanks a lot. I can tell it's not an easy task..... Could you share the model you've got at the end? That would save weeks of me probably repeating what you have done... orz

Ok,  If you're not in a hurry, I may have time on the weekend.

@a78239636 do you have any guide to compile lsfm from source?

@a78239636 do you have any guide to compile lsfm from source?

There is no complete guide, only some personal experience. When you try to install from source,  lsfm need menpo3d>0.6 & <0.7, so  you should first install menpo3d==0.6.0 from source.
If tripixel.pyx is missing, you can find it from https://github.com/menpo/menpo3d/tree/master/menpo3d/rasterize.
There may be some other issue, however I did not record it，Hope this may help you.

Yeap, 4-5 days.

WOW..... Thanks a lot. I can tell it's not an easy task..... Could you share the model you've got at the end? That would save weeks of me probably repeating what you have done... orz

Already sent to you.

@a78239636 I have met the same problem, and failed to compile from source. Could you share the model you've got at the end to me as well? Thanks a lot!!

@a78239636 I am facing the same problem, and failing to compile from the source code. Can you share the model you got?? Thank you in advance :)


knife org user add ORG_NAME USER_NAME works without pivotal.pem

There is a lack of documentation on docs.chef.io for the updated knife command knife org
This was previously contained with knife opc used as knife opc org but has since been moved, this new documentation has not been created.
https://docs.chef.io/workstation/plugin_knife_opc/#opc-org-user-add
The above docs says;
To manage organizations, or change a user’s assignment to an organization, the pivotal key is required.
In reality as shown below, a user can be added to an org without pivotal.pem.
root@chef-automate:/home/ubuntu# chef-server-ctl list-server-admins
/hab/pkgs/chef/chef-server-ctl/14.4.4/20210520120637/vendor/bundle/gems/bundler-1.17.2/lib/bundler/rubygems_integration.rb:200: warning: constant Gem::ConfigMap is deprecated
pivotal
r-goto
r-goto@Mac:~/.chef/repos/first-org-repo %knife user create test5 --email<EMAIL_ADDRESS>--password 123123 --user r-goto --key .chef/r-goto.pem
Created test5
root@chef-automate:/home/ubuntu# chef-server-ctl user-show test5 -l
display_name: test5
email<EMAIL_ADDRESS>first_name:
last_name:
organizations:
public_key: -----BEGIN PUBLIC KEY-----
~
-----END PUBLIC KEY-----
username: test5
root@chef-automate:/home/ubuntu#
r-goto@Mac:~/.chef/repos/first-org-repo %knife org user add first-org test5 --user r-goto --key .chef/r-goto.pem
root@chef-automate:/home/ubuntu# chef-server-ctl user-show test5 -l
display_name: test5
email<EMAIL_ADDRESS>first_name:
last_name:
organizations: first-org
public_key: -----BEGIN PUBLIC KEY-----
~
-----END PUBLIC KEY-----
username: test5
Please advise us whether pivotal is indeed required to add a user to an org or it's just a doc defect.
root@chef-automate:/home/ubuntu# chef-automate version
Version: 2
CLI Build:<PHONE_NUMBER>4108
Server Build:<PHONE_NUMBER>3549
root@chef-automate:/home/ubuntu# chef-server-ctl version
Chef Automate Chef server 14.4.4/20210614091959
To Reproduce
you'll need chef workstation 21.5.420 or greater that includes Chef Infra Client 17.x
the issue is that the documentation is not available at docs.chef.io
Expected behavior
https://docs.chef.io/workstation/knife_org/ should lead to valid documentation the same way that https://docs.chef.io/workstation/knife_user/ does
Actual behavior
there is no available documentation for knife org and the docs for knife opc org are possibly incorrect and need review.

https://github.com/chef/customer-bugs/issues/423

Hi, I have tried to replicate the issue on my side on latest chef version but its working fine please go through the steps I followed
I have created a new user and added to an existing org with `chefadmin` and I am not able to do that
$ knife user create "xyz" --email<EMAIL_ADDRESS>--password "xyz@123" -f xyz.pem
Created xyz

$ knife org user add zzz-org1 xyz
ERROR: You authenticated successfully to https://ec2-34-219-25-251.us-west-2.compute.amazonaws.com/organizations/4thcoffee as xyz but you are not authorized for this action.
Response:  'chefadmin' not associated with organization 'zzz-org1'

But same if I tried with pivotal user I am able to add it
$ knife org user add zzz-org1 xyz

$ knife user show xyz -l
display_name:  xyz
email<EMAIL_ADDRESS>first_name:
last_name:
organizations: zzz-org1
username:      xyz

I have added a separate ticket for documentation https://github.com/chef/chef-workstation/issues/2259. Please let us know if you still face this issue with some more details

closing in the behalf of comment https://github.com/chef/customer-bugs/issues/423#issuecomment-918068051


User interface recommendation inclusive of different TRE types (e.g. OpenSAFELY)

:white_check_mark: Checklist

[x] This pull request has a meaningful title.
[ ] If your changes are not yet ready to merge, you have marked this pull request as a draft pull request.

:ballot_box_with_check: Maintainers' checklist

[x] This pull request has had the appropriate labels assigned
[x] This pull request has been added to the SATRE backlog project board
[x] This pull request has been assigned to one or more maintainers

:arrow_heading_up: Summary
Currently the guidance is very specific to TREs that provide a virtual desktop interface for data scientists. We suggest that   "Custom developed TRE-specific software should be avoided when widely used open-source alternatives already exist", but sometimes they won't already exist and something new should be built.
:closed_umbrella: Related issues
Should close #54
Reviewers: please check if anything else in that issue is not covered.
:raising_hand: Acknowledging contributors

[x] All contributors to this pull request are already named in the table of contributors in the README file.
[ ] The following people should be added to the table of contributors in the README file:

@JimMadge Are you happy with the current wording?

I don't see what the GUI example adds. Saying GUI and 'intuitive design features' feels like a specific suggestion but I'm not sure what it is referring to.

The idea is that the interface should feel familiar because it is either a) a desktop or b) a GUI that the researchers will understand.
I'm happy to remove the GUI suggestion, I was hoping to capture that a workspace may or may not be a virtual desktop, but it should be "familiar" regardless

Same


fixes android_semantics_integration_test to expect long press for too…

…ltip
fixes https://github.com/flutter/flutter/issues/117479
Pre-launch Checklist

[ ] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] I read the Tree Hygiene wiki page, which explains my responsibilities.
[ ] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[ ] I signed the CLA.
[ ] I listed at least one issue that this PR fixes in the description above.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] I added new tests to check the change I am making, or this PR is test-exempt.
[ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

yes the goal for the pr that broke this test was to add a longpress semantics action to tooltip, so this is expected


[Dragon Riders] New Sheet

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: < Smoczy Jeźdźcy >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: < Lans Macabre Publishing  > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: < Year Zero Engine  > (i.e. Dungeons & Dragons, FATE)

[x] I have followed the Character Sheets Standards when building this sheet.

[x] This sheet has been made on behalf of, or by, the game's publisher.
[x] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <
https://wspieram.to/smoczyjezdzcy?fbclid=IwAR1EfLQf1fGaRcPdViH5oHt8xS162ADkwpaoNXxzuimssN7ns7PQmATdjDU
https://preview.drivethrurpg.com/en/product/433695/Smoczy-Jezdzcy--podrecznik-glowny?fbclid=IwAR3p5MKKxg0tcL3SkophNwcxx1JmmG4WytDQvensbPDln7RdsqbtH7HpIWM  >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

Character Sheet Info Roll20 Internal Use only.

Sorry to do this to you @Velczer, but using <table> for layout purposes is not allowed, per our sheet standards. I'm going to go through and point out where things need to be changed to use a grid or flex box.

Hello @NorWhal
Thanks for info I changed all tables.

Hi @Velczer
Thank you for making the requested changes.
You may encounter an issue with this sheet with regards to your font choice. If the sheet or rolltemplates end up unstyled after merge, you may need to replace the font request in the css to use a Google font instead.

@nmbradley
Hello,
Hmm let's see I've already submitted some sheets with custom fonts loaded via files and they don't have any issues.
Fingers crossed for this to be worked again as this font is officialy created for this RPG :)


sustanence "you are now fed/hydrated" spam

With sustenance enabled, there is a bug that occurs when you change weapons or open your scanner, it will rehydrate or refeed you without using food. Also sometimes this happens when 5ish minutes go by

Details
I don't know how to fix it, but the trigger for the bug seems to be when you eat or drink outside in the world, not in your menu. So If I find a sandwich on a table and eat it directly, it will trigger the bug to persist until you pass the time. I've been able to reproduce this with either food, water, or both. If you drink something but don't eat something in the world, it will only trigger for hydration and not food. Both will do both. So whatever it actually causing the bug seems to be caused by something related to consuming from the world and not in the main menu
Game Version
<IP_ADDRESS>
Language
English (EN)
New Game
Yes
Reproduction Steps
see details

oh now i'm getting it from inventory food, so idk

It seems to occur when you rehydrate or re-eat while already hydrated or fed


Add this Website!

URL: http://www.erickarjaluoto.com/
Author's Twitter Handle: (optional) @karj
The fun feature I like most about this site is the „hamburger” menu. It's quite minimal, but loads fast this way.

I like the "click my head" nav - added!


M5stack Core2 + SD card Same SPI Bus issue

I am using M5Stack Core2 and it uses TFT_eSPI library. I am facing issues with god knows what.
I am using SD card and TFT_eSPI on same bus. SD card initializes properly and so does the display.
But sometimes i face issues sometimes while accessing SD card, and i get an error
[ 88619][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed
I read suggestion somewhere of  using flag USE_HSPI_PORT using HSPI but then it does not load the screen.
I have read somewhere that it is because of ILI9341 using half-duplex mode and causing error to SD card as they are on the same SPI bus.
SD card initializing script
SD.begin(SS_PIN, SPI, 40000000);
Please help if you can on this issue, ill really appreciate any kind of help.

Hi, sorry for the late reply, have you tried to execute the TFcard sample program, there is no problem to turn on the LCD and read/write to TFcard in my case.
https://user-images.githubusercontent.com/44396641/180679887-8212f399-01c4-4a16-a1a1-d245ae26cdad.MOV

The problem is when you are transferring data at high speed and refreshing screen as well. For example, showing accelerometer data on graph and storing data at the same time. Anyways the problem was solved using semaphores


can't upload on Arduino IDE

I'm using the sketch is the example with the T-SIMCAM and I keep having this error:
A fatal error occurred: Could not open COM6, the port doesn't exist
also another question, what board should I use in the board manager? I can't find the exact one for the T-SIMCAM.

Press and hold the BOOT button (don't let go), then insert it into the USB, and then click upload to try