Updating YAML-template-based CloudFormation stacks fails due to internal JSON parsing attempt

When updating a CloudFormation stack written in YAML, calling
awsArchitect.deployTemplate(stackTemplate, stackConfiguration, parameters)

when using aws-architect v6.6.15 fails with the following error:
SyntaxError: Unexpected token A in JSON at position 0
    at JSON.parse (<anonymous>)
    at CloudFormationDeployer.deployTemplate (/$home/$project/node_modules/aws-architect/lib/CloudFormationDeployer.js:196:24)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async /$home/$project/bin/deploy.js:53:9

The following excerpt from CloudFormationDeployer.js seems to be the culprit:
    if (stackExists) {
      const currentStackTemplate = await this.cloudFormationClient.getTemplate({ StackName: options.stackName, TemplateStage: 'Original' }).promise();
      const currentStackData = await this.cloudFormationClient.describeStacks({ StackName: options.stackName }).promise().then(data => data.Stacks[0]);
      if (isEqual(JSON.parse(currentStackTemplate.TemplateBody.trim()), JSON.parse(templateString.trim()))
        && Object.keys(parameters).every(key => currentStackData.Parameters.find(p => p.ParameterKey === key && p.ParameterValue === parameters[key]))) {
        console.log('Skipping deployment of stack because template matches existing CF stack template');
        return Object.assign({ title: 'Change set skipped, no changes detected.', code: 'SKIPPED' }, currentStackData);
      }
    }

The return value of this.cloudFormationClient.getTemplate(...) appears to include the original YAML version of the template. Calling JSON.parse(...) on it results in a SyntaxError.
Workaround
Version 6.5.649 works.

Should we just exclude the optimization for yaml based templates, or is there an alternative that would allow us to compare the current version to the what is saved?

My assumption being that the YAML template is not modified by AWS, I suspect that first converting both the local and the remote template version from YAML to JSON and only then comparing them could yield the intended result.
Admittedly, I haven't read much into what the optimization at that point in the code is, but I think my way is sound as a highly localized fix.

The prevents deploying a change set and short circuiting if the CF template is semantically the same as what is already deployed.

The short term fix is to wrap the code block in a try/catch. (feel free to put a PR, or let me know here, and I can do it).
The long term fix would be to actually understand what happens with a yaml template, and whether or not there is something that can be compared at all, and if so how, is a blanket string compare sufficient or do we need to convert to JSON. if we convert to JSON, does the check even work, or is there something about the conversion that makes it non-deterministic because of what is saved in AWS.

Updated this to handle the yaml, it will do a straight comparison so if what is returned from CFN doesn't match the optimization won't work. I recommend trying it out and potentially validating it with a yaml template and see what the api returns. Otherwise you can find the fix in the latest version of the library.


Doesn't work under FreeBSD 13.1

$ env RUST_BACKTRACE=full clapboard
thread 'main' panicked at 'Failed to start command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/main.rs:104:10
stack backtrace:
   0:        0xe2717ef4f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h919bef3d5abebde9
   1:        0xe271973be - core::fmt::write::h6413343c5226105f
   2:        0xe2715d945 - std::io::Write::write_fmt::had0ddcb25461208f
   3:        0xe2717ed05 - std::sys_common::backtrace::print::h5ed9962f90e9b258
   4:        0xe2716bd0f - std::panicking::default_hook::{{closure}}::h3978a8a8f5c1f893
   5:        0xe2716b9a1 - std::panicking::default_hook::h0cdbdd5201407347
   6:        0xe2716c3cb - std::panicking::rust_panic_with_hook::h15bc8b6da20c2af3
   7:        0xe2717f2a7 - std::panicking::begin_panic_handler::{{closure}}::h082a693f9436206b
   8:        0xe2717f09c - std::sys_common::backtrace::__rust_end_short_backtrace::h56343aa2331ff455
   9:        0xe2716bf52 - rust_begin_unwind
  10:        0xe27196663 - core::panicking::panic_fmt::hf18d1d226927e137
  11:        0xe2719bbb3 - core::result::unwrap_failed::ha5725a0b4539229c
  12:        0xe27144816 - clapboard::main::hb1a1464cfff07260
  13:        0xe27145933 - std::sys_common::backtrace::__rust_begin_short_backtrace::hde3d401afab08dba
  14:        0xe27137229 - std::rt::lang_start::{{closure}}::hc50cfc3e00971e09
  15:        0xe271623a4 - std::rt::lang_start_internal::hadf3843363799440
  16:        0xe27144fb5 - main

Hey! Thanks for reporting. just to confirm, do you have tofi installed, and is it in your $PATH?

I have wofi installed and it's in my $PATH.

Clapboard defaults to using tofi. If you want to use wofi, you need to create a configuration file and specify the launcher parameter, like the README mentions. Did you do this?

There is no mention that I should change default config in case I use anything other except tofi. I thought that the program in case it cannot find tofi will look for other menu-like program from the list above. It would be great to fix this missunderstanding in documentation.
What is the correct way to run with wofi? In ~/.config/clapboard/config.toml I have:
launcher = [ "wofi", "--dmenu" ]
When I launch clapboard I see list of clipboard entries and when I click on it nothing happen. As far as I understood, it should paste word/line to STDOUT. Is it correct?

it doesn't automatically paste, it just moves the entry to the clipboard. you should then paste using Ctrl+V or however you're normally pasting. It's a nice idea to automatically paste, I'll consider that!

Ok, got it. Let's close this issue.


overload with float and int

Hi,
with the following example class
class Foo
{
public:
  Foo() {}
  Foo withAlpha(float alpha) const
  {
    return *this;
  }
  Foo withAlpha(uint8_t alpha) const
  {
    return *this;
  }
};

and this binding
      lua.new_usertype<Foo>("Foo"
                             , sol::constructors<Foo()>()
                             , sol::call_constructor, sol::constructors<Foo()>()
                             , "withAlpha", sol::overload(static_cast<Foo(Foo::*) (uint8_t) const>(&Foo::withAlpha), static_cast<Foo(Foo::*) (float) const>(&Foo::withAlpha))
                             );

the following lua code
foo = Foo()
foo:withAlpha(0.1)

calls the uint8_t version.
Is this normal ?
I am using lua 5.3.4
Thanks !

SOL_CHECK_ARGUMENTS fixes the issue.
Intended ?

SOL_CHECK_ARGUMENTS probably turns off SOL_NO_NUMBER_PRECISION and turns on SOL_SAFE_NUMERICS, which is the baseline required to make this work reliably.
I should probably add a note....

oki doki !

Reopened this issue because I need to remind myself to update the documentation concerning this.


Check in which component the translate.instant function can be replaced by the marker (also seen as _)

I think the function translate.instant (provided by the TranslateService) is only in services and pipes required. In components, the marker function should be used and sufficient.

Looked through the components using translate.instant and it seems the only uses are for titles, dialog titles and content, snackbars, errors, dynamically created strings and other places where an instant translation is necessary, so I'm closing this.


Caffeine Utility (macOS)

Hi!
Could you please add the following link to the list of macOS apps?
Caffeine Utility (macOS)
https://testflight.apple.com/join/WHIbsose
Thanks!

done


absolute image inside column

when put absolute image inside col  its work in desktop mode ( col l ) but does not work in mobile mode . its go on each other .
Better explanation

         <--con-is-relative-->

            <--both-image-are-absolute-->

         test

when we put absolute image inside relative container it should change base on Container but it doesn't.
In Large Mode :

In Small Mode :

What is your intended behavior?

Thanks for answer , actually that pizza should go bellow that test panel .
like this :

absolute positioned elements will not give their parent a height, this is seems to be related to CSS concepts rather than the framework. Searching on Stack Overflow will give you help on the topic.

when you put absolute item inside relative item . absolute item react base on his parent . so absolute item goes left and right base on where relative item is .

I don't quite understand what you mean, but absolute elements are removed from the document flow so it so its parent has no height, just set a height on the parent if you want to achieve the result you want

Dear @Dogfalo , its a Bug and i found the solution . i will make pull request today .


Nested sv-handle doesn't work

When you have something similar to this structure:

        {{task.description}}

        <button sv-handle class="btn btn-warning btn-sm" tabindex="-1"></button>

                {{option.name}}

                <button sv-handle class="btn btn-warning btn-sm" tabindex="-1"></button>

All of the sv-handles will reorder the outmost sortable.
I guess it should be possible to allow for either sv-handle="id", to make sure that the sv-handle knows to which sv it is linked, or that sv-handle only sorts the closest sv-root (when going 'up' in the tree).
Also, it doesn't seem to matter if I put that 'inner' editor inside of a new angular directive (I thought, if I create a new directive then it will probably work, but apparently it doesn't).

@mrft,
I also use a similar code for the ng-repeat, and i've found out that the "track by $index" is causing sv to not reorder OR to be sortable.
I know that it's not a proper solution, however can you try removing the "track by" - and confirm this?
@kamilkp fyi

Well,
I am happily using https://github.com/angular-ui/ui-sortable now, and
everything works as expected.
So I couldn't say what would happen removing 'track by'.
2015-10-08 16:42 GMT+02:00 Oren Farhi<EMAIL_ADDRESS>
@mrft https://github.com/mrft,
I also use a similar code for the ng-repeat, and i've found out that the
"track by $index" is causing sv to not reorder OR to be sortable.
I know that it's not a proper solution, however can you try removing the
"track by" - and confirm this?
@kamilkp https://github.com/kamilkp fyi
—
Reply to this email directly or view it on GitHub
https://github.com/kamilkp/angular-sortable-view/issues/58#issuecomment-146567036
.


publish<EMAIL_ADDRESS>

Requested by: @philipphofmann
Merge target: (default)
Quick links:

View changes
View check runs

Assign the accepted label to this issue to approve the release.
Leave the #retract comment under this issue to retract the release (original issuer only).
Targets

[ ] github
[ ] cocoapods
[ ] registry

Targets marked with a checkbox have already been executed.  Administrators can manually tick a checkbox to force craft to skip it.

A test failed. I created an issue for this flaky test https://github.com/getsentry/sentry-cocoa/issues/1779.


phpMyAdmin version 5.1 exclusion plugin

As URL structure is much different from version 5.1, new exclusion package/plugin needs to be created for versions above 5.1.
This exclusion rules plugin is ready and needs testing.

Hey @williamdes! Would you like to test this?
@lifeforms hm?

Sorry I don't have a phpMyAdmin 5 in production. I could set one up, but I have almost no time so that could take a while.

The biggest challenge of these exclusions was new URL structure which was introduced in version 5.1 of phpMyAdmin - all requests are routed through one script. The idea itself is good but the selection of the script name, index.php, made this difficult to implement without opening a huge hole it the firewall. Finally, i was able to come up with a solution which allows activation of this plugin without degrading the security of the whole web server.
Main idea is in the never-before-used-in-CRS mechanizm of dynamic URIs based on user configuration. First, user can define a subdirectory in which phpMyAdmin is running (and, of course, it must be really placed in that subdirectory*):
setvar:'tx.phpmyadmin5-plugin_directory=/phpmyadmin5'"
Then all exclusion rules are using this setting while matching the REQUEST_FILENAME:
SecRule REQUEST_FILENAME "@endsWith %{tx.phpmyadmin5-plugin_directory}/index.php" \
So, instead of binding to extremely common /index.php we are binding to quite unique /phpmyadmin5/index.php.

User should create a redirection / -> /phpmyadmin5 so it's not needed to type /phpmyadmin5 while accessing phpMyAdmin.

Hey @aus-coder, would you like to check this out?

Hey @williamdes! Would you like to test this? @lifeforms hm?

Hi !
You can use my nginx regex to determine all the allowed routes. It should be up to date and working.
See: https://github.com/sudo-bot/gh-deployer-container/blob/7f72d26f3a971cde2a5b3ee046b13c2980e97493/docker/nginx-default.conf#L29

If you provide me some docker setup for testing the next rules I can validate them with some good testing :)

@azurit I'm trying to write up the instructions but I fail to find the plugin. I thought you already did all the work, didn't you? Is it just https://github.com/coreruleset/phpmyadmin-rule-exclusions-plugin?

Hi @williamdes. Thanks for offering to help. The following instructions should help you set up everything for testing (I'm not familiar with this plugin, so maybe wait for @azurit's response, unless you already know more than I do :) ).

Checkout branch v3.4/dev of the coreruleset repo
Copy the files from the phpMyAdmin plugin into the plugins directory of the coreruleset repo
Adapt the configuration of the docker compose file to what you need:

BACKEND: attach your own backend if you want
MODSEC_RULE_ENGINE: disable detection only mode if that helps you test
PARANOIA: change the paranoia level to what you need
...

Make sure your images are up to date:

docker pull owasp/modsecurity-crs:apache
docker pull owasp/modsecurity-crs:nginx

Run the containers:

docker compose -f tests/docker-compose.yml up modsec2-apache

With https://github.com/coreruleset/modsecurity-crs-docker/pull/66 merged, the containers will automatically load the plugin configuration files from the plugins directory.

It's different from current phpmyadmin RE plugin. I didn't post it anywhere yet because i decided to integrate it into current phpmyadmin RE plugin (phpmyadmin version will be configurable).
Attaching phpmyadmin 5.1 RE plugin, it's work in progress and will be probably integrated into current phpmyadmin plugin (as i said above): phpmyadmin5.tar.gz

This issue has been open 120 days with no activity. Remove the stale label or comment, or this will be closed in 14 days

Still on my todo list

Please look here:
https://github.com/coreruleset/phpmyadmin-rule-exclusions-plugin/pull/5

Any news on this one? We would like to have this tested for the next major release!

Removed from V4.

Any news on this one? We would like to have this tested for the next major release!

It's a bit complicated for me to test, the rules syntax are a bit complicated
Still on my infinite todo list
Very sorry for the very long long delay

I think @fzipi tries to clean up the todo list for v4 removing everything that is not essential. Given plugins are distributed separately from mainline CRS nothing
really changes outside of the v4 todo list.

That's exactly what I'm doing. Unless you plan to have it working in the next weeks, this is not essential for v4.

@azurit Sorry if my comment was a bit out of context. Going over the decisions in the last meeting we decided that anything plugin was not needed for v4 release. I just implemented that by removing from the milestone anything plugin related.
As this will not be released at the same time than v4, there is no need to tail the results from this effort to the v4 release.

I can work onto it in the following days or weeks
Do you have documentation so I can try to write the ruleset from zero?
I need some way to gain knowledge on this blob of text filled with rules

Here is my latest work:
https://github.com/azurit/phpmyadmin-rule-exclusions-plugin/tree/v51support
I have already fully tested plugin for phpMyAdmin < 5.1 and, few days ago, started testing for phpMyAdmin > 5.1.

Done.

Feel free to ping me to on PRs for phpMyAdmin or ask questions :)


refactor(yarn): switch back from pnpm to yarn

We found pnpm wasn't compatible with dependabot (see: https://github.com/guardian/commercial-core/pull/436)

Do the dance! 👯

I think it’s supported, now!


Correct typo in 'specify exact number of matches' challenge

Pre-Submission Checklist

[x] Your pull request targets the staging branch of freeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Closes currently open issue (replace XXXX with an issue no): Closes #13952

Description

I changed this line of code:
Your regex should match \"Timber\" with 30 m\\'s in it
to this:
Your regex should not match \"Timber\" with 30 m\\'s in it
Because:
The last test is: Your regex should match "Timber" with 30 m's in it.
It should be NOT match Timber with 30 m's in it because the assignment is:
Change the regex timRegex to match the word "Timber" only when it has four letter m's.
closes #13952

@makkBit merged! Happy Coding!

@BerkeleyTrue thanks! :smile:

@makkBit thanks again for your help with this! 😄


TypeError: Cannot read property 'thisCompilation' of undefined at ExtractTextPlugin.apply

Im getting this error at running webpack
TypeError: Cannot read property 'thisCompilation' of undefined
at ExtractTextPlugin.apply (C:\Paginas Web\Oricao\node_modules\extract-text-webpack-plugin\dist\index.js:183:20)
at Compiler.apply (C:\Paginas Web\Oricao\node_modules\tapable\lib\Tapable.js:375:16)
at webpack (C:\Paginas Web\Oricao\node_modules\webpack\lib\webpack.js:33:19)
at processOptions (C:\Paginas Web\Oricao\node_modules\webpack\bin\webpack.js:335:15)
at yargs.parse (C:\Paginas Web\Oricao\node_modules\webpack\bin\webpack.js:397:2)
at Object.Yargs.self.parse (C:\Paginas Web\Oricao\node_modules\yargs\yargs.js:533:18)
at Object. (C:\Paginas Web\Oricao\node_modules\webpack\bin\webpack.js:152:7)
at Module._compile (module.js:649:30)
at Object.Module._extensions..js (module.js:660:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)
at Function.Module.runMain (module.js:690:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:666:3
I have webpack 3
"webpack": "^3.11.0",
"webpack-cli": "^2.0.12"

I tried running from local or global package and still the same, I also don't know why when I run webpack, it keeps asking to install webpack-cli, I read it was because the new webpack 4 version but I have 3 installed.

I ran into the same problem.
What is your version of the plugin? The fourth major version branch is compatible only with webpack 4. It is a breaking change.
So if you have 4.0.0-beta version of the plugin, just regrade to the 3.0.2 version.

v4 of this plugin is not compatible with webpack v3.

If you are using webpack@3, use<EMAIL_ADDRESS>If you are using webpack@4, use mini-css-extract-plugin if applicable


New GitScrum - https://gitscrum.com/login

GitScrum is a new generation of tool for managing projects and their daily tasks focused on IT teams,  highly intuitive for the non-technical manager, without ever compromising the requirements and needs of the manager and technical team.
Site : https://gitscrum.com/login

@renatomarinho  hi sir how can i get this login page.i have recently download gitscrum.but login page seems github and gitlub login.how can i installed in my local host?


Error : No distribution matching

Good morning,
I tried to install OSMnx with pip on my Debian distro, but then I'd got this error :
Could not find a version that satisfies the requirement osmnx (from versions: 0.1a1.dev6, 0.1a1.dev5, 0.1a1.dev1, 0.1a1.dev4, 0.1a1.dev2, 0.1a1.dev7, 0.1a1.dev8, 0.1a1.dev4, 0.1a1.dev3, 0.1a1.dev9, 0.1a1.dev7, 0.1a1.dev11, 0.1a1.dev10, 0.1a1.dev10, 0.1a1.dev8, 0.1a1.dev6, 0.1a1.dev11, 0.1a1.dev9, 0.1a1, 0.1a1.dev3, 0.1a1.dev2, 0.1a1, 0.1a1.dev5)
Cleaning up...
No distributions matching the version for osmnx
Storing debug log for failure in /root/.pip/pip.log
(Geopandas is installed and works fine, I checked it before writing this issue)

Can you give me your platform details? Python version, architecture, system info?

Of course !
My laptop runs on Linux SMP Debian 3.16.7-ckt25-2 (kernel release 3.16.0-4-amd64), and I can switch between Python 2.7.9 and Python 3.4.2. But the error is strictly the same with sudo pip install osmnx or sudo pip3 install osmnx command.
Do you need some hardware info ?
Many thanks to you and have a nice day :-)

The current OSMnx release on pypi is 0.1a1. As this is an alpha release, your system might be ignoring it if you're configured to ignore pre-releases.
Try: sudo pip install osmnx --pre
If that does not work, run: sudo pip install -vvv osmnx
This will provide more verbose output that you can copy and paste in here so I can see what's going on.

Thanks for new commands !
Unfortunately, one worked...
Here's the log for the command with --pre :
Downloading/unpacking osmnx
  Downloading OSMnx-0.1a1-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): geopy>=1.11 in /usr/local/lib/python3.4/dist-packages (from osmnx)
Downloading/unpacking matplotlib>=1.5 (from osmnx)
  Downloading matplotlib-2.0.0b4.tar.gz (53.3MB): 53.3MB downloaded
  Running setup.py (path:/tmp/pip-build-_kg3d9v3/matplotlib/setup.py) egg_info for package matplotlib
    ============================================================================
    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB
                matplotlib: yes [2.0.0b4]
                    python: yes [3.4.2 (default, Oct  8 2014, 10:45:20)  [GCC
                            4.9.1]]
                  platform: yes [linux]

    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [version 1.8.2]
                       six: yes [The installed version of six is 1.8.0 but a the
                            minimum required version is 1.10. pip/easy install
                            will attempt to install a newer version.]
                  dateutil: yes [using dateutil version 2.2]
               functools32: yes [Not required]
              subprocess32: yes [Not required]
                      pytz: yes [using pytz version 2012c]
                    cycler: yes [cycler was not found. pip will attempt to
                            install it after matplotlib.]
                   tornado: yes [using tornado version 3.2.2]
                 pyparsing: yes [using pyparsing version 2.0.3]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found. Using local copy.]
                  freetype: yes [version 2.5.2]
                       png: yes [version 1.2.50]
                     qhull: yes [pkg-config information for 'qhull' could not be
                            found. Using local copy.]

    OPTIONAL SUBPACKAGES
               sample_data: yes [installing]
                  toolkits: yes [installing]
                     tests: yes [using nose version 1.3.4 / using unittest.mock]
            toolkits_tests: yes [using nose version 1.3.4 / using unittest.mock]

    OPTIONAL BACKEND EXTENSIONS
                    macosx: no  [Mac OS-X only]
    /usr/local/lib/python3.4/dist-packages/Cython/Distutils/old_build_ext.py:30: UserWarning: Cython.Distutils.old_build_ext does not properly handle dependencies and is deprecated.
      "Cython.Distutils.old_build_ext does not properly handle dependencies "
                    qt5agg: no  [PyQt5 not found]
                    qt4agg: yes [installing, Qt: 4.8.6, PySide: 1.2.2; PyQt4 not
                            found]
    No protocol specified

    ** (-c:1811): WARNING **: Could not open X display
    No protocol specified
    Unable to init server: Impossible de se connecter : Connexion refusée
    No protocol specified
    Unable to init server: Impossible de se connecter : Connexion refusée
                   gtk3agg: yes [installing, version 3.5.14]
    No protocol specified

    ** (-c:1819): WARNING **: Could not open X display
    No protocol specified
    Unable to init server: Impossible de se connecter : Connexion refusée
    No protocol specified
    Unable to init server: Impossible de se connecter : Connexion refusée
                 gtk3cairo: yes [installing, version 3.5.14]
                    gtkagg: no  [Requires pygtk]
                     tkagg: yes [installing; run-time loading from Python Tcl /
                            Tk]
                     wxagg: no  [requires wxPython]
                       gtk: no  [Requires pygtk]
                       agg: yes [installing]
                     cairo: yes [installing, pycairo version 1.10.0]
                 windowing: no  [Microsoft Windows only]

    OPTIONAL LATEX DEPENDENCIES
                    dvipng: yes [version 1.14]
               ghostscript: yes [version 9.06]
                     latex: yes [version 3.14159265]
                   pdftops: yes [version 0.26.5]

    OPTIONAL PACKAGE DATA
                      dlls: no  [skipping due to configuration]

Downloading/unpacking requests>=2.11 (from osmnx)
  Downloading requests-2.12.1-py2.py3-none-any.whl (574kB): 574kB downloaded
Downloading/unpacking shapely>=1.5 (from osmnx)
  Downloading Shapely-1.6a2.tar.gz (212kB): 212kB downloaded
  Running setup.py (path:/tmp/pip-build-_kg3d9v3/shapely/setup.py) egg_info for package shapely
    /usr/local/lib/python3.4/dist-packages/Cython/Distutils/old_build_ext.py:30: UserWarning: Cython.Distutils.old_build_ext does not properly handle dependencies and is deprecated.
      "Cython.Distutils.old_build_ext does not properly handle dependencies "

Downloading/unpacking rtree>=0.8 (from osmnx)
  Downloading Rtree-0.8.2.tar.gz (55kB): 55kB downloaded
  Running setup.py (path:/tmp/pip-build-_kg3d9v3/rtree/setup.py) egg_info for package rtree
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-_kg3d9v3/rtree/setup.py", line 4, in <module>
        import rtree
      File "/tmp/pip-build-_kg3d9v3/rtree/rtree/__init__.py", line 1, in <module>
        from .index import Rtree
      File "/tmp/pip-build-_kg3d9v3/rtree/rtree/index.py", line 6, in <module>
        from . import core
      File "/tmp/pip-build-_kg3d9v3/rtree/rtree/core.py", line 110, in <module>
        rt.Error_GetLastErrorNum.restype = ctypes.c_int
      File "/usr/lib/python3.4/ctypes/__init__.py", line 364, in __getattr__
        func = self.__getitem__(name)
      File "/usr/lib/python3.4/ctypes/__init__.py", line 369, in __getitem__
        func = self._FuncPtr((name_or_ordinal, self))
    AttributeError: /usr/bin/python3: undefined symbol: Error_GetLastErrorNum
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-_kg3d9v3/rtree/setup.py", line 4, in <module>

    import rtree

  File "/tmp/pip-build-_kg3d9v3/rtree/rtree/__init__.py", line 1, in <module>

    from .index import Rtree

  File "/tmp/pip-build-_kg3d9v3/rtree/rtree/index.py", line 6, in <module>

    from . import core

  File "/tmp/pip-build-_kg3d9v3/rtree/rtree/core.py", line 110, in <module>

    rt.Error_GetLastErrorNum.restype = ctypes.c_int

  File "/usr/lib/python3.4/ctypes/__init__.py", line 364, in __getattr__

    func = self.__getitem__(name)

  File "/usr/lib/python3.4/ctypes/__init__.py", line 369, in __getitem__

    func = self._FuncPtr((name_or_ordinal, self))

AttributeError: /usr/bin/python3: undefined symbol: Error_GetLastErrorNum

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-_kg3d9v3/rtree
Storing debug log for failure in /root/.pip/pip.log

And here the -vvv version :
Downloading/unpacking osmnx
  Getting page https://pypi.python.org/simple/osmnx/
  URLs to search for versions for osmnx:
  * https://pypi.python.org/simple/osmnx/
  Analyzing links from page https://pypi.python.org/simple/osmnx/
    Found link https://pypi.python.org/packages/02/93/437e7073df2332f17582e86a460cdffe0c89cc1092eecd6206349c22e67a/OSMnx-0.1a1.dev6.tar.gz#md5=31dc8bd743f3b3917ef3a7a85760193e (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev6
    Found link https://pypi.python.org/packages/05/94/0eb9681f3eb312023b7db4c4985569820a2e71b4331d8fe9e0dcb9b6283a/OSMnx-0.1a1.dev5-py2.py3-none-any.whl#md5=138ed6e79d26d0d2626d409a82a0b5d8 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev5
    Found link https://pypi.python.org/packages/3d/e3/ba2d1db1d32f8858c4fa26a3630b40d03024da870dfd5a72171ba7f63353/OSMnx-0.1a1.dev1.tar.gz#md5=99890e6a14d66849c6c16af77f657cd1 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev1
    Found link https://pypi.python.org/packages/46/da/bb9a33f782ded45ccce8f206257ec5cea8bb281f5f6f119f95179e934acd/OSMnx-0.1a1.dev4-py2.py3-none-any.whl#md5=8407498f769269e2a5cae304e7d4e325 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev4
    Found link https://pypi.python.org/packages/49/1b/f3e671669227bb9b7f97ce5f49eb9acfd3b5fcf258695e59a883c9249a7d/OSMnx-0.1a1.dev2-py2.py3-none-any.whl#md5=78e759e4962a12cf4b696a53d707f88e (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev2
    Found link https://pypi.python.org/packages/56/ec/2a77df36b395f4590765f3ca57d9d6d173f9142be35747a84abec9622fc8/OSMnx-0.1a1.dev7-py2.py3-none-any.whl#md5=922f5af1e681eee63c7edc166cb418bd (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev7
    Found link https://pypi.python.org/packages/5f/83/501f83807f145df67a20d921f35e4e23eeea83d675b3aa55cc78ba8ff6d4/OSMnx-0.1a1.dev8-py2.py3-none-any.whl#md5=7e9af6feb7967ba7b0080b2287dc7233 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev8
    Found link https://pypi.python.org/packages/66/91/53b4a8d1dc873e48030be64da82111db2b79de65db8326290a386623bf31/OSMnx-0.1a1.dev4.tar.gz#md5=b15b539227a1bac3f43f032465efd42f (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev4
    Found link https://pypi.python.org/packages/67/b6/7536ed5e0a1c238fa1a08082af03877665b51dba0e29ca46f8ba7b09eff1/OSMnx-0.1a1.dev3.tar.gz#md5=1b7e622f1e68b8d030cfed8eff48ce48 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev3
    Found link https://pypi.python.org/packages/79/14/977ec401c129abcbf4f60dc2a34dcb63b9a1761e2c5ad9b4f8cb26e978e2/OSMnx-0.1a1.dev9-py2.py3-none-any.whl#md5=b5d1e9ca78d336003a746da2f3253e3b (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev9
    Found link https://pypi.python.org/packages/7a/9c/829741ce57a766da4cc766ad85d870af8393f67b92d979b85160bd636ca6/OSMnx-0.1a1.dev7.tar.gz#md5=c078e2f8788443665feb34eb5f070186 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev7
    Found link https://pypi.python.org/packages/7f/d8/51eaf26ed1f8e478aac3bc2e9dd3d6941fffcb96f197c617ebac5fb70d58/OSMnx-0.1a1.dev11-py2.py3-none-any.whl#md5=ccebbd7fcfd8516c006335aaa1727377 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev11
    Found link https://pypi.python.org/packages/8f/b9/5e6ed9f510ebeb8e541464169b0b4dfebd89fb57094962dd647944f40a8e/OSMnx-0.1a1.dev10-py2.py3-none-any.whl#md5=439536bf4663682211df244f117cba49 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev10
    Found link https://pypi.python.org/packages/99/b9/f41eb8c52c2d472ae28695028b773116a5a4e4cde16406465db02d00a98c/OSMnx-0.1a1.dev10.tar.gz#md5=e7b49aec854f929034fd7ce2ed75bbab (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev10
    Found link https://pypi.python.org/packages/a4/45/e33d857666d50dce4a68b01db4433a59e974b3caeb28aca5845f49c4219d/OSMnx-0.1a1.dev8.tar.gz#md5=3852cbc221e98e7ab5d1a7ca86469e5e (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev8
    Found link https://pypi.python.org/packages/ac/cc/d2798bfa8070343fde8e46d5192ec2e9941124cd7568b70d0afb35d690e8/OSMnx-0.1a1.dev6-py2.py3-none-any.whl#md5=7bc3c6563dd838296666c03d69890be7 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev6
    Found link https://pypi.python.org/packages/af/81/6b6b6159665e5c0c9652e0ba502a42af1f61a7da9a1f391fc7dc8ef99e61/OSMnx-0.1a1.dev11.tar.gz#md5=19b6349a5be52570b25ca96d2f6da370 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev11
    Found link https://pypi.python.org/packages/bb/66/47d8213727e772197707804ff25e582d65500fa1d87e5891457815ead079/OSMnx-0.1a1.dev9.tar.gz#md5=004d7ea2d90b1c229ea22eb8bf5f2d7a (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev9
    Found link https://pypi.python.org/packages/c9/5c/6a582c29df55c6d1d2a3528a692c705de4ad6db636cee7c4d9dbc03e54f4/OSMnx-0.1a1.tar.gz#md5=44ee479f5b7e9f8c67394a057b7c8e58 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1
    Found link https://pypi.python.org/packages/cc/34/3ca691144688c58790fd090186db2d5b4f1c2f4d15ae89bcff145daf9285/OSMnx-0.1a1.dev3-py2.py3-none-any.whl#md5=6edfdea3c87e3248e9e407eb1961cf2e (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev3
    Found link https://pypi.python.org/packages/cd/f6/17729ae1989c73447333ff9f9b517dc80239c81521b5ca46cb2519907f5c/OSMnx-0.1a1.dev2.tar.gz#md5=71d7dcffcc7a1388a876f6536b85cf63 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev2
    Found link https://pypi.python.org/packages/e8/cc/c4787615c6dfab28dc6b26d64e7d69c03f194a2766f605b9d47c1e194e58/OSMnx-0.1a1-py2.py3-none-any.whl#md5=76cd1cdec7fff31456e09e104a6459d2 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1
    Found link https://pypi.python.org/packages/ed/96/926a8f6bd016e9231b2655319b57bb8f8fed7eaa8743a188fbc7e1c821f1/OSMnx-0.1a1.dev5.tar.gz#md5=7f420d4eb25598643837c15e5ae8d784 (from https://pypi.python.org/simple/osmnx/), version: 0.1a1.dev5
  Ignoring link https://pypi.python.org/packages/02/93/437e7073df2332f17582e86a460cdffe0c89cc1092eecd6206349c22e67a/OSMnx-0.1a1.dev6.tar.gz#md5=31dc8bd743f3b3917ef3a7a85760193e (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev6 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/05/94/0eb9681f3eb312023b7db4c4985569820a2e71b4331d8fe9e0dcb9b6283a/OSMnx-0.1a1.dev5-py2.py3-none-any.whl#md5=138ed6e79d26d0d2626d409a82a0b5d8 (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev5 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/3d/e3/ba2d1db1d32f8858c4fa26a3630b40d03024da870dfd5a72171ba7f63353/OSMnx-0.1a1.dev1.tar.gz#md5=99890e6a14d66849c6c16af77f657cd1 (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev1 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/46/da/bb9a33f782ded45ccce8f206257ec5cea8bb281f5f6f119f95179e934acd/OSMnx-0.1a1.dev4-py2.py3-none-any.whl#md5=8407498f769269e2a5cae304e7d4e325 (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev4 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/49/1b/f3e671669227bb9b7f97ce5f49eb9acfd3b5fcf258695e59a883c9249a7d/OSMnx-0.1a1.dev2-py2.py3-none-any.whl#md5=78e759e4962a12cf4b696a53d707f88e (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev2 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/56/ec/2a77df36b395f4590765f3ca57d9d6d173f9142be35747a84abec9622fc8/OSMnx-0.1a1.dev7-py2.py3-none-any.whl#md5=922f5af1e681eee63c7edc166cb418bd (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev7 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/5f/83/501f83807f145df67a20d921f35e4e23eeea83d675b3aa55cc78ba8ff6d4/OSMnx-0.1a1.dev8-py2.py3-none-any.whl#md5=7e9af6feb7967ba7b0080b2287dc7233 (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev8 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/66/91/53b4a8d1dc873e48030be64da82111db2b79de65db8326290a386623bf31/OSMnx-0.1a1.dev4.tar.gz#md5=b15b539227a1bac3f43f032465efd42f (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev4 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/67/b6/7536ed5e0a1c238fa1a08082af03877665b51dba0e29ca46f8ba7b09eff1/OSMnx-0.1a1.dev3.tar.gz#md5=1b7e622f1e68b8d030cfed8eff48ce48 (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev3 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/79/14/977ec401c129abcbf4f60dc2a34dcb63b9a1761e2c5ad9b4f8cb26e978e2/OSMnx-0.1a1.dev9-py2.py3-none-any.whl#md5=b5d1e9ca78d336003a746da2f3253e3b (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev9 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/7a/9c/829741ce57a766da4cc766ad85d870af8393f67b92d979b85160bd636ca6/OSMnx-0.1a1.dev7.tar.gz#md5=c078e2f8788443665feb34eb5f070186 (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev7 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/7f/d8/51eaf26ed1f8e478aac3bc2e9dd3d6941fffcb96f197c617ebac5fb70d58/OSMnx-0.1a1.dev11-py2.py3-none-any.whl#md5=ccebbd7fcfd8516c006335aaa1727377 (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev11 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/8f/b9/5e6ed9f510ebeb8e541464169b0b4dfebd89fb57094962dd647944f40a8e/OSMnx-0.1a1.dev10-py2.py3-none-any.whl#md5=439536bf4663682211df244f117cba49 (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev10 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/99/b9/f41eb8c52c2d472ae28695028b773116a5a4e4cde16406465db02d00a98c/OSMnx-0.1a1.dev10.tar.gz#md5=e7b49aec854f929034fd7ce2ed75bbab (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev10 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/a4/45/e33d857666d50dce4a68b01db4433a59e974b3caeb28aca5845f49c4219d/OSMnx-0.1a1.dev8.tar.gz#md5=3852cbc221e98e7ab5d1a7ca86469e5e (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev8 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/ac/cc/d2798bfa8070343fde8e46d5192ec2e9941124cd7568b70d0afb35d690e8/OSMnx-0.1a1.dev6-py2.py3-none-any.whl#md5=7bc3c6563dd838296666c03d69890be7 (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev6 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/af/81/6b6b6159665e5c0c9652e0ba502a42af1f61a7da9a1f391fc7dc8ef99e61/OSMnx-0.1a1.dev11.tar.gz#md5=19b6349a5be52570b25ca96d2f6da370 (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev11 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/bb/66/47d8213727e772197707804ff25e582d65500fa1d87e5891457815ead079/OSMnx-0.1a1.dev9.tar.gz#md5=004d7ea2d90b1c229ea22eb8bf5f2d7a (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev9 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/c9/5c/6a582c29df55c6d1d2a3528a692c705de4ad6db636cee7c4d9dbc03e54f4/OSMnx-0.1a1.tar.gz#md5=44ee479f5b7e9f8c67394a057b7c8e58 (from https://pypi.python.org/simple/osmnx/), version 0.1a1 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/cc/34/3ca691144688c58790fd090186db2d5b4f1c2f4d15ae89bcff145daf9285/OSMnx-0.1a1.dev3-py2.py3-none-any.whl#md5=6edfdea3c87e3248e9e407eb1961cf2e (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev3 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/cd/f6/17729ae1989c73447333ff9f9b517dc80239c81521b5ca46cb2519907f5c/OSMnx-0.1a1.dev2.tar.gz#md5=71d7dcffcc7a1388a876f6536b85cf63 (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev2 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/e8/cc/c4787615c6dfab28dc6b26d64e7d69c03f194a2766f605b9d47c1e194e58/OSMnx-0.1a1-py2.py3-none-any.whl#md5=76cd1cdec7fff31456e09e104a6459d2 (from https://pypi.python.org/simple/osmnx/), version 0.1a1 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/ed/96/926a8f6bd016e9231b2655319b57bb8f8fed7eaa8743a188fbc7e1c821f1/OSMnx-0.1a1.dev5.tar.gz#md5=7f420d4eb25598643837c15e5ae8d784 (from https://pypi.python.org/simple/osmnx/), version 0.1a1.dev5 is a pre-release (use --pre to allow).
  Could not find a version that satisfies the requirement osmnx (from versions: 0.1a1.dev6, 0.1a1.dev5, 0.1a1.dev1, 0.1a1.dev4, 0.1a1.dev2, 0.1a1.dev7, 0.1a1.dev8, 0.1a1.dev4, 0.1a1.dev3, 0.1a1.dev9, 0.1a1.dev7, 0.1a1.dev11, 0.1a1.dev10, 0.1a1.dev10, 0.1a1.dev8, 0.1a1.dev6, 0.1a1.dev11, 0.1a1.dev9, 0.1a1, 0.1a1.dev3, 0.1a1.dev2, 0.1a1, 0.1a1.dev5)
Cleaning up...
No distributions matching the version for osmnx
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 290, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 1178, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/usr/lib/python3/dist-packages/pip/index.py", line 322, in find_requirement
    raise DistributionNotFound('No distributions matching the version for %s' % req)
pip.exceptions.DistributionNotFound: No distributions matching the version for osmnx

Storing debug log for failure in /root/.pip/pip.log

I'm sorry, it's quite long... But hope that could help !

Ok, this is getting clearer now. There are two issues. The first was what I suspected: you needed to use the pre-release flag (sudo pip install osmnx --pre) to get OSMnx, given your configuration. That worked. But it revealed a new issue: your machine failed to install one of the dependencies, rtree. Try to install rtree first, per the developer's instructions in that link. Then try to install OSMnx again with the --pre command. If another dependency fails in the future, just install that dependency first according to its developer's instructions. When all the dependencies are installed, OSMnx should install like a piece of cake because it is pure Python - nothing to compile, etc.

Wonderful ! I do my best to quickly install rtree on my laptop, and I come back here once it's done :-)
Thank you again

Voilà, installation worked :-) !
It's strange, because the basic example with Modena brings me an error, but that's not the subject of the issue... Module is correctly imported !
Thanks again.


Empty "error" in JSON response.

Hi There,
I'm using Devise/Warden to do token authentication on the API. When calling the authenticate_user! before filter in my API controller with invalid credentials a 401 appears to be returned as expected, however the error packet in the JSON response is empty. i.e.
{"error:""}

I would have expected to see the Unauthenticated error details here, as I do if I manual throw error! :unauthenticated
This is using devise 3.0 and RocketPants 1.9.1
Any advice greatly appreciated.
Robert

Hey @SirRawlins, unless there was any follow up to this I'm going to close this error as I have nothing to go on - sorry!

Hi Darcy, by all means close this off, I ended up moving on to other
projects and haven't looked back at it. Someone can always reopen the
ticket if it crops up in future.
Cheers,
Rob
On 25 May 2015 1:56 pm, "Darcy Laycock"<EMAIL_ADDRESS>wrote:

Hey @SirRawlins https://github.com/SirRawlins, unless there was any
follow up to this I'm going to close this error as I have nothing to go on

sorry!

—
Reply to this email directly or view it on GitHub
https://github.com/Sutto/rocket_pants/issues/99#issuecomment-105228173.


Retry deleting testing S3 bucket in Elastictranscoder integration tests

Our Elastictranscoder integration tests delete their buckets when they finish. However, sometimes the S3 API responds with a "bucket not found" error and they aren't deleted.
We should modify the behavior so if the bucket isn't deleted, sleep a second or two and try again. This way we won't have leftover buckets after running the tests if the API responds with the bucket not existing. 👍

Maybe the scope of this should be expanded slightly to "ensure that the buckets are deleted". One common reason for S3 bucket delete to fail is that they are not empty. It might be a good idea to add logic for emptying the buckets before attempting the delete, in addition to the retry logic.

Found a fun new error due to the tests not cleaning up after themselves:
Running target/debug/deps/elastictranscoder-4c2dd2bc8f440b6b

running 7 tests
test list_jobs_by_status ... ok
test delete_preset ... FAILED
test list_pipelines ... ok
test create_preset ... ok
test read_preset ... ok
test list_presets ... FAILED
test create_pipeline_without_arn ... ok

failures:

---- delete_preset stdout ----
thread 'delete_preset' panicked at 'called `Result::unwrap()` on an `Err` value: Service(LimitExceeded("The account already has the maximum number of presets allowed: account=(acct#), maximum number of presets=50"))', src/libcore/result.rs:1084:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

---- list_presets stdout ----
thread 'list_presets' panicked at 'assertion failed: response.next_page_token.is_some()', tests/elastictranscoder.rs:329:13

failures:
    delete_preset
    list_presets

We should also clean up presets created during the tests.
@staffan-einarsson yes, ensure the buckets are deleted is a better way of phrasing desired behavior.
I'm not sure if there's any API call we can make that's more authoritative than what we currently use. Sometimes it takes a while for bucket states (created, available, etc...) to propagate in AWS.

Is this the same issue as #1522?

They are similar but not quite the same. This issue has S3 buckets not being deleted after a test run. https://github.com/rusoto/rusoto/issues/1522 describes conditions S3 buckets are created but we try to use them before they are ready, causing test failures.
An argument could be made for moving my earlier comment to a new issue so PRs can be more targeted. 😄


TL;DR; i like this, but think it's not something we should have in the TwigComponent but more in the incoming "recipe" system.

This features clearly has a lot of supporters, and i can see the sexyness in its syntax.
My reaction across different "scopes" :)
Component Implementation
In term of code, not sure if you really need classes there, as they do nothing more than an anonymous component.
I suppose it's because we still are discussing anonymous components namespacing/importing ?
Also, i would use "form" or "form_view" instead of "form" to be coherent with Symfony form functions / theming.
{{ form_label(field, label, { label_attr: attributes.all() }) }}

The problem here for me is that this offer a lot less possibilities than their Twig functions / blocks equivalents.
Lastly, in term of performance, as the TwigComponent work today, this could have a negative impact on performances.. if this is "just" a syntaxic sugar, i wonder if we should not compile them directly their Twig function / blocks ?
UX Bundle
We cannot "reserve" the <twig:Form prefix like this, as many people already use it in their apps.
I also believe (not tested to be honest) it would work weirdly with the form theming / overriding in Symfony
But above all, i really think we should orientate (re-orientate?) this bundle as a fondation for other ones, not as concrete solution/bundles.
One day (difficult right now for multiple reasons, but i'm 100% convinced this is the good direction) i'd like to move everything linked with Forms in one single UXForm component.
Recipe ?
The recipe system would allow us to make available components, code to install in userland. And a <twig:Form> syntax was one of the first @kbond and @weaverryan discussed back then :)
@kbond @WebMamba are very motivated to work on this system after holiday, and i'm also eager to find good DX for people to use it.

So my personal opinion on this PR: i don't think we should merge it in TwigComponent right now, but i'd love we have something very similar as one of our first recipes.
In the meantime, we also could show in documentation and/or the website how one user can do this if they want to ?

In term of code, not sure if you really need classes there, as they do nothing more than an anonymous component.

Anonymous components, does not add strict typehints, so I chose class based component to have proper typehints for props.

The problem here for me is that this offer a lot less possibilities than their Twig functions / blocks equivalents.

Can you elaborate what are less possibilities with components?
There is always some restrictions if you use something higher level, nobody forces to it, you can always fallback to old way.

Lastly, in term of performance, as the TwigComponent work today, this could have a negative impact on performances.. if this is "just" a syntaxic sugar, i wonder if we should not compile them directly their Twig function / blocks ?

Probably I agree :thinking: but forms are not the components that are repeatedly 100 times per page..

We cannot "reserve" the <twig:Form prefix like this, as many people already use it in their apps.

That's why I think we should not have a global registry and allow component imports #801.
My aim was to trigger a discussion about this, so thank you

Anonymous components, does not add strict typehints, so I chose class based component to have proper typehints for props.

That's a valid point, even if one could add the check is done right after in the method. But not the same DX i agree.

That's why I think we should not have a global registry and allow component imports #801.

Did not saw #801 ... but i can tell you, with HTML syntax with no prefix and dynamic import names it's almost impossible, as it would be a hell to parse..
.. but on a similar PR i was saying this could be done, but only with NodeVisitors (like trans_default_domain or form_theme for instance) .... and only per template (needing a lot of those tags when people do embeds (same pb with trans_default_domain or form_theme ;) )

Can you elaborate what are less possibilities with components?

You prevent any form theme to be used i guess.. but also you allow only 'attr' to be passed, but form_row should accept label argument too for instance (same for all methods)

My aim was to trigger a discussion about this, so thank you

Very happy to have this discussion too! I love when "end users" explain their need and bring differents solutions to the table :)

You prevent any form theme to be used i guess..

That's not true :) you can apply theme on the whole form or on different fields in the same way as before, I even tested on a real project :)

you can apply theme on the whole form or on different fields in the same way as before, I even tested on a real project :)

Well that's a good news!
Just to check some "not-frequent-but" use cases
{# templates/contact.html.twig #}

{% form_theme form 'my_theme.html.twig' %}

<twig:Form :form="form">
  <twig:Form:Errors :field="form" />
   {# ... #}

  <twig:Form:Row :field="form.name" />

</twig:Form>

Form errors would use my_theme here ?  Will "form.name" too ?
If you define a block in templates/contact and use form_theme with self, same thing ?


Add explanation for how to use config file when plotting

Explain how to use the config file with plot_samples.R. It has three tab-delimited columns (Id, Name, and Type), and is used to order, filter, and rename the Metabolite, Reaction, and Group variables to be plotted.

Explanation added in bb0ef15.


Core Services REST Handler code duplication reduction

Resolve the following Sonar Cloud code duplication issues in REST Handlers:

Writing the Content-Type header and values using constants.

Create and leverage utility methods which perform error type-checking.

Remove superfluous logging of error via LoggingClient.

Create and leverage utility methods which parse URL/query parameters.

Signed-off-by Jason Bonafide<EMAIL_ADDRESS>

Just wanted to note some of the discussions held amonst the Core Services team and this issue.
The change-set here has an objective in reducing some of the Sonar Cloud duplication errors. The better solution would likely be to rework the REST Handlers to use some sort of general purpose error handling which would include proper type-checking. There is an issue for a greater solution regarding duplicate code for REST Handlers in general across the Core Services (https://github.com/edgexfoundry/edgex-go/issues/1734).
Given the fact that #1734 is slated for the geneva release and will likely rework the REST Handlers at a greater level, the scope here was shrunk a bit so as to make Sonar Cloud happy before the geneva release.

Certainly

https://github.com/edgexfoundry/edgex-go/issues/1745

Codecov Report

Merging #1768 into master will decrease coverage by 0.29%.
The diff coverage is 37.81%.

@@            Coverage Diff            @@
##           master    #1768     +/-   ##
=========================================
- Coverage   38.36%   38.06%   -0.3%
=========================================
  Files         149      149
  Lines       11816    11620    -196
=========================================
- Hits         4533     4423    -110
+ Misses       7081     6995     -86
  Partials      202      202

Impacted Files
Coverage Δ

internal/support/notifications/utils.go
0% <0%> (ø)
:arrow_up:

internal/core/metadata/rest_devicereport.go
0% <0%> (ø)
:arrow_up:

internal/core/data/router.go
8.15% <0%> (ø)
:arrow_up:

internal/support/scheduler/router.go
0% <0%> (ø)
:arrow_up:

internal/core/metadata/router.go
0% <0%> (ø)
:arrow_up:

internal/core/metadata/rest_provisionwatcher.go
0% <0%> (ø)
:arrow_up:

internal/core/metadata/rest_command.go
100% <100%> (ø)
:arrow_up:

internal/export/client/router.go
78.57% <100%> (ø)
:arrow_up:

internal/support/logging/router.go
74.84% <100%> (ø)
:arrow_up:

internal/export/distro/router.go
57.77% <100%> (ø)
:arrow_up:

... and 4 more

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 562ef9a...1170ce4. Read the comment docs.

@michaelestrin This is one item I wanted to call out early on. In effort to retain the ability to provide a custom error string, I added this new type which is used in the ExplicitHandle function. My approach is that the ExplicitErrorConceptType will require 2 additional methods to be implemented. Those 2 methods give us the flexibility to invoke a handler which will allow for a more specific error message.
Thoughts on this approach?

I wonder if there's value in having two separate approaches -- ErrorConceptType/Handle() and ExplicitErrorConceptType/ExplicitHandle()... why not retain just the explicit approach (and rename it to remove "explicit" from the implementation)?
Is there an instance where the logging and http message content diverge (e.g. can the contract's httpError() and logMessage() methods be combined into a message() method)?  If they do diverge, should they (i.e. does the divergence add any value)?

There were instances in the code where an error-type check would look something like this:
switch err.(type) { case: ErrServiceClient: http.Error(w, err, err.(ErrServiceClient).StatusCode)) ... ... }
With that, I had to come up with some way to follow the existing pattern to handle cases such as this one. After some thought, nothing came to mind as how to better handle this so any feedback would be great regarding this.

It's a good logical approach.   I'd leave the clean up of the code returning an ErrServiceClient (which requires your implementation) as future work.

@michaelestrin Awesome thanks for the feedback. I will go ahead and just apply the ExplicitHandle approach to Handle like you mentioned. This will result in a single handler method.
To answer the question of instances where the httpError and logMessage diverge, there were some instances where this was the case (only a handful). From what I gathered, I don't think the divergence was actually necessary with regard to those cases. I can definitely see combining httpError and logMessage into a single method without causing any disruption.

@michaelestrin I have updated the PR to include the changes mentioned regarding the consolidation of ExplicitHandle and Handle methods in the generic handle.

Recheck

@jbonafide623 Please create additional issue(s) to convert the remaining services and cross-reference this issue.

@michaelestrin Created a new issue here https://github.com/edgexfoundry/edgex-go/issues/1860. Thanks


Store clock as setting if none is found on boot

Great - thanks!

Actually just spotted a minor issue here:
clockApp = require("Storage").read(clockApp.src);
s.clock = clockApp.src;

But will push a fix in now


Use on arm64

Heya, I'd like to use this project on arm64 but it's apparently not supported? Is it possible to try building it anyway?

Theoretically this will work on arm64, see this for the wasmtime support: https://docs.wasmtime.dev/stability-platform-support.html
That lists linux-aarch64 as supported, not sure if that fits.
That said, this project is very unstable. I'm trying to complete some work to support the WIT proposals, but still have quite a ways to go on that. Just a warning if you end up trying to go that route.


fix: Container jump temporary undroppable state of dragging widget

Description
This issue was mainly regarding the undroppable state of dragging widget immediately after timeout is triggered and the container is reflowed. Passing down the Limits of the dragging widget to recalculate it's state fixed the issue.
Fixes #19667
Media
https://user-images.githubusercontent.com/71900764/211822454-b8f032ec-ac06-4003-9b3b-3a4f78864265.mp4
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manual

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

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

Checklist:
Dev activity

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

QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

/ok-to-test sha=ba5b720

/ok-to-test sha=e45a4d5


12.6.3 procedure return value regression

Driver version
12.6.3.jre11
Provide the JDBC driver version (e.g. 10.2.0).
SQL Server version
Microsoft SQL Server 2019 (RTM-CU25) (KB5033688) - 15.0.4355.3 (X64)
Jan 30 2024 17:02:22
Copyright (C) 2019 Microsoft Corporation
Developer Edition (64-bit) on Windows Server 2019 Datacenter 10.0  (Build 17763: ) (Hypervisor)
Client Operating System
macos sonoma 14.5
JAVA/JVM version
17.0.11
Table schema
CREATE or alter PROCEDURE dbo.SpReturnTest (
    @Arg1 VARCHAR(128)
)
AS
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
    SET NOCOUNT ON
    SET XACT_ABORT ON

DECLARE
    @ReturnCode INT

    RETURN 1
go

jdbc code
try (Connection con = DriverManager.getConnection("jdbc:sqlserver://redacted;", "redcated", "redacted")) {
            try (CallableStatement cs = con.prepareCall("{? = call dbo.SpReturnTest(@Arg1 = ?)}")) {
                cs.registerOutParameter(1, Types.INTEGER);
                cs.setString(2, "foo");
                cs.execute();
                assertThat(cs.getInt(1)).isEqualTo(1);
            }
        }

Problem description
With 12.6.2, 1 is returned by cs.getInt(1), as expected and appropriate, but with 12.6.3, 0 is returned. Without the second input argument, the problem does not occur, the issue appears to depend on having 2 arguments.

java0.log.0.tgz
attached trace logs

java0.log.0.tgz
attached trace logs with 12.6.2, working

This seems similar to #2463. Can you try preview driver 12.7.1 where issues #2463 was fixed?

@Jeffery-Wasty runtimeOnly("com.microsoft.sqlserver:mssql-jdbc:12.7.1.jre11-preview") still returns 0, when it should return 1.

Thanks for testing. We'll look into the issue and get back to you with our conclusion.


Experimental shadowing output

Possible error output for #5

looks great (both the code and the output 😺), we could use a library for colorized output, rainbow for example

Let's leave this one like this and then improve it with monads 😸


Null safety

@jumperchen
Here is a migration to null-safety. Let me know if things need to change, or feel free to merge and edit yourself. I tried to keep to what I thought was the original intent. A lot of fields became late fields, ideally they would move to the initializer list instead of being set in the constructor, but I think those sort of refinements are outside of the scope of the initial migration. There was a lot of shadowing of class variables and with changes in nullability I changed the name of some local variables to make it clearer. Since there isn't really much test coverage, this could probably use some more testing before publishing.
Addresses #33

Thanks for the contribution, I change a little bit from your commits.


kyverno fails - option to copy cosign signature from source to target registry

When I enabled k8s-image-swapper it turned out that kyverno's image signature verification is failing.
So while k8s-image-swapper works fine for pulling/pushing docker images and mutating their references, I’m getting errors in replicasets like:
admission webhook "mutate.kyverno.svc-ignore" denied the request: policy Pod/my-pod/ for resource violation: image-signature-valid: verify-cosign-signature: | failed to verify image <my-account-id>.dkr.ecr.us-west-1.amazonaws.com/<my-account-id>.dkr.ecr.us-west-2.amazonaws.com/<my-docker-image>: .attestors[0].entries[0].keys: no matching signatures:

..which makes sense, because k8s-image-swapper currently does not fetch signatures from a source ECR while fetching a corresponding docker image. And because image name is mutated, kyverno is looking for a signature in a target ECR created by k8s-image-swapper.
So it would be nice to have option to enable copying signatures (if exist) from source to target registry.
And nope, unfortunately there is no option in kyverno to point to a separate registry for signatures :(

Referencing #633 as it also mentions sigstore signatures.

Discussion on slack for reference: https://kubernetes.slack.com/archives/C04LETF7KEC/p1718703080654259


VMS custom attributes are empty on vsphere 7

Describe the bug
VMS custom attributes are empty on vsphere 7
To Reproduce
Steps to reproduce the behavior:

Create new vms with vsphere 7

Expected behavior
Should works as vpshere 6.x
Screenshots

Release Version & Related Info (please complete the following information):

CPI Version: v54.1.0
BOSH Director Version: 271.2.0
Stemcell Name & Version: ubuntu-xenial/621.93
vCenter Version: 7.0.1
NSX(T/V) Version (If using)

Issue not happend on another vsphere with version 7.
Looks our own issue.


Error Handling

solve #26 #22

add 2 errors: UndeclaredVar, NonFunctionApp

change return type on Either Error for eval, compile and betaReduce

Fixed.

Since we're using show, can we maybe "relax" the type from Identifier to String (so we're not relying on the actual representation of the former)?


fix: rendering an amp characters in the wallet name for QMenu

In the current implementation Qt uses '&' as a signal to underscore letter and use it as a hot-key, which is not expected for case of wallet name.
The comment in the code is misleading, if you replace one & to double &&, the next & will be a "single one". All of them in the string should be replaced, not only the first occurrence.
See screenshots before & after:

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews
See the guideline for information on the review process.
A summary of reviews will appear here.

In the current implementation Qt uses '&' as a signal to underscore letter and use it as a hot-key, which is not expected for case of wallet name.

Does this hold for all supported Qt versions?

The comment in the code is misleading, if you replace one & to double &&, the next & will be a "single one". All of them in the string should be replaced, not only the first occurrence.

I'm not certain about that, but the mentioned comment might have been correct for some earlier version of Qt.

I'm not certain about that, but the mentioned comment might have been correct for some earlier version of Qt.
I tested with 2 version: Qt 5.15.14 and Qt 5.15.11.

Doc for qt 6 says:

The ampersand in the menu item's text sets Alt+F as a shortcut for this menu. (You can use "&&" to get a real ampersand in the menu bar.)

Doc for qt 5 says the same:

The ampersand in the menu item's text sets Alt+F as a shortcut for this menu. (You can use "&&" to get a real ampersand in the menu bar.)

And even doc for qt 4 says the same:

The ampersand in the menu item's text sets Alt+F as a shortcut for this menu. (You can use "&&" to get a real ampersand in the menu bar.)

I believe that in original PR introduced a "partial fix" which works for the first ampersand no one just tested a wallet with several ampersands.

I believe that in original PR introduced a "partial fix" which works for the first ampersand no one just tested a wallet with several ampersands.

It might be a platform-specific issue though. See https://bugreports.qt.io/browse/QTBUG-63361.

cc @achow101 @jarolrod

It might be a platform-specific issue though. See https://bugreports.qt.io/browse/QTBUG-63361.

could someone test on Mac?
I will make probably platform's depend implementation of char replacement


update documentation

add support request best practices
if production outage or blocker, explain production outage or blocker, and move to SEVA.
add subscription invoice pay: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/spot-cli
add recommended mount options

mount -o hard,nointr,proto=tcp,mountproto=tcp,retry=30 ${VSERVER_IP_ADDRESS}:/${NAMESPACE_PATH} ${LOCAL_FILESYSTEM_MOUNT_POINT}

add security for terraform including how to use service princepal
set +o history
PASSWORD="somepassword" source ./loginAsServicePrincipal_azure.sh
set -o history

where the script has contents:
#!/bin/bash
export ARM_CLIENT_ID=00000000-0000-0000-0000-000000000000
export ARM_SUBSCRIPTION_ID=00000000-0000-0000-0000-000000000000
export ARM_TENANT_ID=00000000-0000-0000-0000-000000000000
export ARM_CLIENT_SECRET=$PASSWORD

add -UseBasicParsing to the page /vfxt/pipeline/windows

obsolete


App not being built

I'm using 2.0.2 build, but still the release folder is not being created. It seems there is some problem with Jetpack maybe?
Some console.log debugging in the generated files (lib/index.js) in the createWindowsInstaller function gives this output:
CONTEXT3 0 -> 0
CONTEXT3 0 -> 3
CONTEXT3 3 -> 6
CONTEXT3 13 -> end

which I got by putting this:
console.log('CONTEXT3', _context3.prev, '->', _context3.next);

in the generated files in the first line of the function:
174:   ...
175:   return _regenerator2.default.wrap(function _callee3$(_context3) {
176:      console.log('CONTEXT3', _context3.prev, '->', _context3.next);
177:      while (1) {

Seems like the control is not going beyond this line:
await jetpack.copyAsync(
    p`${__dirname}/../vendor/Update.exe`,
    p`${appDirectory}/Update.exe`);

I don't sure, but it seems to be, that I have the same issue.
I'm using grunt v 0.4.5
Here is example of my task:
grunt.registerTask('make_installer', 'Make Squirrel installer for Win32', () => {
     let done = grunt.task.current.async()
     electron_installer.createWindowsInstaller({
       appDirectory: 'Source',
       outputDirectory: 'Releases',
       authors: 'Example Ltd.',
       exe: 'HelloElectron.exe',
       noMsi: true,
       description: APP.description,
       version: APP.version,
       title: APP.productName,
       iconUrl: 'http://example.com/favicon.ico',
       setupIcon: 'favicon.ico',
       //remoteReleases: 'APP.updatesURL'
     }, () => {
       grunt.log.writeln('App: Build done!')
       done(true)
     })
   })

Looks like the task copies update.exe directly into your appDirectory and does not specify the {overwrite: true} (https://github.com/szwacz/fs-jetpack#copy)
should be an easy fix? work-around, clean and rebuild your app directory? anyone confirm this is the issue?

@lukeapage I have the same issue and tried with a clean working directory. I'll try to apply your PR.

There is another pr to fix path joining that could cause the same issue..

@lukeapage yep, I've already tried it and still have an error during building the application. I think you're talking about #22


Add formatting, linting

Thanks for doing God's work for the stuff I'm too lazy to do until a month down the line.
Merged

One of my favorite things to do on a new projects. Repo janny at your service.


Wrong import name implied by the documentation

Documentation uses the project name "github.com/jbarham/gopgsqldriver", but Makefile actually creates "github.com/jbarham/pgsqldriver" instead.

Import path is github.com/jbarham/gopgsqldriver but package name is pgsqldriver.


Make a Landing page for the project.

The project doesn't contain any landing page/home page describing the project/website itself.
I'd like to make a straightforward landing page that will give more clarity to users about what "Randall's Windows" is all about.

 I focused so much on a ReadMe that I didn't put info in the actual app anywhere. You are welcome to make a landing page and submit a PR. Otherwise I will write one out later this week. Thank you for contributing and I'll talk to you later!

Awesome! Will be working on it today then.


error: casting to type 'half' is not allowed on 7900xt

When I run the conversation.py example, it downloads the tensors, but fails on the line  toks, user_delim, resp_delim, start_pos, outputted = llama_prepare(llama, args.llama_temperature, args.llama_pre_prompt_path) and gives the following error:
raise RuntimeError(f"OpenCL Compile Error\n\n{ctypes.string_at(mstr, size=log_size.value).decode()}")
RuntimeError: OpenCL Compile Error

/tmp/comgr-28ed3d/input/CompileSource:19:70: error: casting to type 'half' is not allowed
  *((__global float4*)(data0+alu2)) = (float4)(float4)((float)((half)(((val0).x*val3*(val6).x))),(float)((half)(((val0).y*val3*(val6).y))),(float)((half)(((val0).z*val3*(val6).z))),(float)((half)(((val0).w*val3*(val6).w))));
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/comgr-28ed3d/input/CompileSource:20:70: error: casting to type 'half' is not allowed
  *((__global float4*)(data0+alu3)) = (float4)(float4)((float)((half)(((val1).x*val4*(val6).x))),(float)((half)(((val1).y*val4*(val6).y))),(float)((half)(((val1).z*val4*(val6).z))),(float)((half)(((val1).w*val4*(val6).w))));
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/comgr-28ed3d/input/CompileSource:21:70: error: casting to type 'half' is not allowed
  *((__global float4*)(data0+alu4)) = (float4)(float4)((float)((half)(((val2).x*val5*(val6).x))),(float)((half)(((val2).y*val5*(val6).y))),(float)((half)(((val2).z*val5*(val6).z))),(float)((half)(((val2).w*val5*(val6).w))));
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
Error: Failed to compile source (from CL or HIP source to LLVM IR).

I'm using Linux Mint 21.2 with ROCm 5.7.2 version drivers. I also have integrated Radeon graphics and a 7900xt.

What is the result of running clinfo?

clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3590.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback
  Platform Extensions function suffix             AMD
  Platform Host timer resolution                  1ns

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 2
  Device Name                                     gfx1100
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0
  Driver Version                                  3590.0 (HSA1.1,LC)
  Device OpenCL C Version                         OpenCL C 2.0
  Device Type                                     GPU
  Device Board Name (AMD)                         Radeon RX 7900 XT
  Device PCI-e ID (AMD)                           0x744c
  Device Topology (AMD)                           PCI-E, 0000:03:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               42
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                32
  SIMD instruction width (AMD)                    1
  Max clock frequency                             2175MHz
  Graphics IP (AMD)                               11.0
  Device Partition                                (core)
    Max number of sub-devices                     42
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             256
  Preferred work group size (AMD)                 256
  Max work group size (AMD)                       1024
  Preferred work group size multiple (kernel)     32
  Wavefront width (AMD)                           32
  Preferred / native vector sizes
    char                                                 4 / 4
    short                                                2 / 2
    int                                                  1 / 1
    long                                                 1 / 1
    half                                                 1 / 1        (cl_khr_fp16)
    float                                                1 / 1
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (cl_khr_fp16)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  Yes
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size<PHONE_NUMBER>4 (19.98GiB)
  Global free memory (AMD)                        20762624 (19.8GiB) 20762624 (19.8GiB)
  Global memory channels (AMD)                    10
  Global memory banks per channel (AMD)           4
  Global memory bank width (AMD)                  256 bytes
  Error Correction support                        No
  Max memory allocation<PHONE_NUMBER>8 (16.99GiB)
  Unified memory for Host and Device              No
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   Yes
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Preferred alignment for atomics
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Max size for global variable<PHONE_NUMBER>8 (16.99GiB)
  Preferred total size of global vars<PHONE_NUMBER>4 (19.98GiB)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        32768 (32KiB)
  Global Memory cache line size                   64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            134217728 pixels
    Max 1D or 2D image array size                 8192 images
    Base address alignment for 2D image buffers   256 bytes
    Pitch alignment for 2D image buffers          256 pixels
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             16384x16384x8192 pixels
    Max number of read image args                 128
    Max number of write image args                8
    Max number of read/write image args           64
  Max number of pipe args                         16
  Max active pipe reservations                    16
  Max pipe packet size<PHONE_NUMBER> (1010MiB)
  Local memory type                               Local
  Local memory size                               65536 (64KiB)
  Local memory size per CU (AMD)                  65536 (64KiB)
  Local memory banks (AMD)                        32
  Max number of constant args                     8
  Max constant buffer size<PHONE_NUMBER>8 (16.99GiB)
  Preferred constant buffer size (AMD)            16384 (16KiB)
  Max size of kernel argument                     1024
  Queue properties (on host)
    Out-of-order execution                        No
    Profiling                                     Yes
  Queue properties (on device)
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size                                262144 (256KiB)
    Max size                                      8388608 (8MiB)
  Max queues on device                            1
  Max events on device                            1024
  Prefer user sync for interop                    Yes
  Number of P2P devices (AMD)                     1
  P2P devices (AMD)                               [ 0x55a93789fbe0 ]
  Profiling timer resolution                      1ns
  Profiling timer offset since Epoch (AMD)        0ns (Thu Jan  1 03:00:00 1970)
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Thread trace supported (AMD)                  No
    Number of async queues (AMD)                  8
    Max real-time compute queues (AMD)            8
    Max real-time compute units (AMD)             42
  printf() buffer size                            4194304 (4MiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program

  Device Name                                     gfx1036
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0
  Driver Version                                  3590.0 (HSA1.1,LC)
  Device OpenCL C Version                         OpenCL C 2.0
  Device Type                                     GPU
  Device Board Name (AMD)                         AMD Radeon Graphics
  Device PCI-e ID (AMD)                           0x164e
  Device Topology (AMD)                           PCI-E, 0000:14:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               1
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                32
  SIMD instruction width (AMD)                    1
  Max clock frequency                             2200MHz
  Graphics IP (AMD)                               10.3
  Device Partition                                (core)
    Max number of sub-devices                     1
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             256
  Preferred work group size (AMD)                 256
  Max work group size (AMD)                       1024
  Preferred work group size multiple (kernel)     32
  Wavefront width (AMD)                           32
  Preferred / native vector sizes
    char                                                 4 / 4
    short                                                2 / 2
    int                                                  1 / 1
    long                                                 1 / 1
    half                                                 1 / 1        (cl_khr_fp16)
    float                                                1 / 1
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (cl_khr_fp16)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  Yes
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              536870912 (512MiB)
  Global free memory (AMD)                        497664 (486MiB) 497664 (486MiB)
  Global memory channels (AMD)                    4
  Global memory banks per channel (AMD)           4
  Global memory bank width (AMD)                  256 bytes
  Error Correction support                        No
  Max memory allocation                           402653184 (384MiB)
  Unified memory for Host and Device              No
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   Yes
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Preferred alignment for atomics
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Max size for global variable                    402653184 (384MiB)
  Preferred total size of global vars             536870912 (512MiB)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        16384 (16KiB)
  Global Memory cache line size                   64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            134217728 pixels
    Max 1D or 2D image array size                 8192 images
    Base address alignment for 2D image buffers   256 bytes
    Pitch alignment for 2D image buffers          256 pixels
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             16384x16384x8192 pixels
    Max number of read image args                 128
    Max number of write image args                8
    Max number of read/write image args           64
  Max number of pipe args                         16
  Max active pipe reservations                    16
  Max pipe packet size                            402653184 (384MiB)
  Local memory type                               Local
  Local memory size                               65536 (64KiB)
  Local memory size per CU (AMD)                  65536 (64KiB)
  Local memory banks (AMD)                        32
  Max number of constant args                     8
  Max constant buffer size                        402653184 (384MiB)
  Preferred constant buffer size (AMD)            16384 (16KiB)
  Max size of kernel argument                     1024
  Queue properties (on host)
    Out-of-order execution                        No
    Profiling                                     Yes
  Queue properties (on device)
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size                                262144 (256KiB)
    Max size                                      8388608 (8MiB)
  Max queues on device                            1
  Max events on device                            1024
  Prefer user sync for interop                    Yes
  Number of P2P devices (AMD)                     1
  P2P devices (AMD)                               [ 0x55a93788f010 ]
  Profiling timer resolution                      1ns
  Profiling timer offset since Epoch (AMD)        0ns (Thu Jan  1 03:00:00 1970)
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Thread trace supported (AMD)                  No
    Number of async queues (AMD)                  8
    Max real-time compute queues (AMD)            8
    Max real-time compute units (AMD)             1
  printf() buffer size                            4194304 (4MiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              Success [AMD]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx1100
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (2)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx1100
    Device Name                                   gfx1036
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (2)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx1100
    Device Name                                   gfx1036

Fixed in newer version of tinygrad

Still get this error on commit f018a55ea17708a3c5794f86837d0fe30a690fe3, which version solved your issue @michbogos

I can confirm this on iris+rusticl with tiny-llama.


Reviewer has the permission to delete/add/update the project.

Describe the bug
Role reviewer has permission to delete/add/update the project.
To Reproduce
Steps to reproduce the behavior:

Add a member to the team as reviewer
Reviewer goes to the Project Setting
Has the option to delete the project.
Reviewer also has the option to add and update the project

Expected behavior
Role reviewer should not have permission to delete/add/update the project.

Fixed.


chore: remove refs to deprecated io/ioutil

Looks good! Thanks for going through all that! I'll see what's up with the tests and get the ball rolling.


Pre-trained weights

Hi,
Thank you for this very clean repository! I wonder whether any checkpoints will be released? If yes, I'm interested in adding those to the HuggingFace Transformers library (the Reformer and LongFormer are already there, but the Linformer and the Nystromformer aren't yet). Since we only have to replace the self-attention mechanism, this seems quite straightforward in terms of modeling.
Kind regards,
Niels

Hi @NielsRogge , Thanks for your interest. I just finished some submissions. Here is the pretrained Nystromformer model on BookCorpus plus English Wikipedia for sequence length 512. I wonder if you can help add to the HuggingFace Transformers?

Sure I can help! Do you have an email address to set up a Slack channel?

Hi, wondering if this was progressed? Would love to experiment with the pretrained model from huggingface!


missing source map when swapping (re-ordering) ast nodes

I'm experimenting with writing transforms on oxc https://github.com/hi-ogawa/experiments/pull/47 and I found that source map is not generated when swapping around ast nodes.
For example, simple repro I found is to swap two statements by program.body.swap(0, 1). I created a repro in https://github.com/hi-ogawa/oxc/commit/4ffa0982c7e9f1c448f47ed2aef56f64a373ff29 and current output looks like this evanw.github.io/source-map-visualization

I'm not entirely sure but it looks like source map of "previously previous" node is not generated due to the following last_position check. I commented this out locally and the source map seems correct evanw.github.io/source-map-visualization
https://github.com/oxc-project/oxc/blob/4ffa0982c7e9f1c448f47ed2aef56f64a373ff29/crates/oxc_codegen/src/sourcemap_builder.rs#L78-L81
I also compared with babel's codegen and they seem to also support such "swapping" pattern. I made a quick example here for babel https://github.com/hi-ogawa/reproductions/blob/main/babel-swap-source-map/src/repro.js

My actual use case in https://github.com/hi-ogawa/experiments/pull/47 is for the transform of inline server action and it needs to move closure to a top level function. For example, missing source map of $$hoist_0 function looks like this source-map-visualization

@underfin can you help me on this one.

Awesome, thanks for the fix!
I verified it's working as expected on v0.16.0 https://github.com/hi-ogawa/experiments/pull/52. Here is an updated version sourcemap viz


Wrong duration in config-ui

Describe the bug
After run a pipeline, the duration always shows less than one minute
Screenshots

Additional context
Add any other context about the problem here.

Duplicated with #1618


Hello World

Simple problem where you are asked to print the Hello  followed by the characters provided as input.
This issue is created to use an example of linking to a GitHub Issue in the crifx report.

Clarifications to be made about a problem by judges can be left as comments on the GitHub Issue.


Store Parser and Template Stats

Parsers should store parsing and template stats in the Redis db. Stats should include:

logs read
matches / template / parser

Completed w/ commit
https://github.com/magneticstain/Inquisition/commit/170a8470cb48c549e3b2a68b1617b3d07ff0ada3


Improve message_ix reporting for message_data, part 1

This PR adds changes needed by iiasa/message_data#52.

Adjust for API changes in iiasa/ixmp#188.
Move computations that operate on pyam.IamDataFrame to reporting.pyam.
Import ixmp computations via message_ix.reporting.computations.
Expand documentation.

PR checklist:

[x] ~Tests added.~ N/A
[x] Documentation added.
[x] Release notes updated.

Checks all pass; merging without review in order to keep moving…


"order_by" of "Query" does not return a value (same for limit)

Describe the bug
total = query.order_by(None).count()
items = query.limit(10).offset(10).all()

mypy --strict test.py
error: "order_by" of "Query" does not return a value
error: "limit" of "Query" does not return a value

Expected behavior
This is a valid usage of Query. The doc states that ORM Query is considered legacy in v2, it is still usable.
To Reproduce
from typing import Any

from sqlalchemy.orm import Query

def paginate(query: Query) -> Any:
    total = query.order_by(None).count()
    items = query.limit(10).offset(10).all()
    return [total, items]

Error
mypy --strict test.py
test.py:7: error: "order_by" of "Query" does not return a value
test.py:8: error: "limit" of "Query" does not return a value
Found 2 errors in 1 file (checked 1 source file)

Versions.
❯ pip list
Package           Version
----------------- -------
greenlet          1.0.0
mypy              0.812
mypy-extensions   0.4.3
pip               21.0.1
setuptools        54.2.0
SQLAlchemy        1.4.11
sqlalchemy2-stubs 0.0.1a4
typed-ast         1.4.3
typing-extensions <IP_ADDRESS>

Have a nice day and thanks for the amazing work!

The stubs are being updated frequently and I believe this has been fixed in https://github.com/sqlalchemy/sqlalchemy2-stubs/pull/70. Can you try install the master branch of the stubs?

Indeed, works fine with master, thanks!

We will try to release an update shortly


This would always fail, because only the first command was sudo'd

@byxorna @maddalab @defect @roymarantz

Eh, LGTM.


Convert assets automatically

Currently the repository only contains the already compressed and converted assets, which makes it harder to view and modify them.
Ideally the banner generator could handle these processes itself.

What is compressed and converted from the repository?

Ideally the repository should contain the source files for the image assets, for which then they are all converted and packaged by the generator without the need for external tools (I'm sure the HBC also does this), which should ease future changes if any.
This isn't urgent by any means, but it's a nicety.
(What brought me to bring this up was that I was about to amplify the banner audio a bit to match that of other channels as to me it sounds a bit quiet, but seemingly it's already standard PCM S16LE instead of usual Nintendo ADPCM stuff as I was expecting to have to manually handle, so this doesn't much apply to that anyway.)


Cannot resolve  'com.getbase:floatingactionbutton:1.9.1'?

When i put it in the gradle file, when i'm beginning to build gradle, it says cannot resolve compile 'com.getbase:floatingactionbutton:1.9.1'?

It's available on Maven Central (http://search.maven.org/#artifactdetails|com.getbase|floatingactionbutton|1.9.1|aar), check your repositories section in build.gradle.

No response, closing.

Sorry i'm not available on internet for few days. but your solution did work me. Thanks anyway !