Installation issues on Windows

><EMAIL_ADDRESS>install C:\home\coding(projects)\mini_projects\books_db\node_modules\integer
> node-gyp rebuild

C:\home\coding(projects)\mini_projects\books_db\node_modules\integer>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Traceback (most recent call last):
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 16, in <module>
    sys.exit(gyp.script_main())
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 545, in script_main
    return main(sys.argv[1:])
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 538, in main
    return gyp_main(args)
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 514, in gyp_main
    options.duplicate_basename_check)
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 98, in Load
    generator.CalculateVariables(default_variables, params)
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1916, in CalculateVariables
    generator_flags.get('msvs_version', 'auto'))
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSVersion.py", line 434, in SelectVisualStudioVersion
    versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
KeyError: '2017'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\home\coding(projects)\mini_projects\books_db\node_modules\integer
gyp ERR! node -v v10.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN<EMAIL_ADDRESS>No description
npm WARN<EMAIL_ADDRESS>No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\Rundik\AppData\Roaming\npm-cache\_logs\2018-09-21T10_07_07_803Z-debug.log

I'd like to point out that the integer build is not the better-sqlite3 build, and in a LOT of cases I've seen with my own users (I made a module called enmap which relies on better-sqlite3 for persistence), it's at the integer build that they fail - they have no issue installing sqlite, sqlite3, or other node-gyp module. But integer just fails miserably.
Is there any specific, feature-breaking reason why integer is needed with better-sqlite3 but not with other sqlite modules?

for example:
https://media.discordapp.net/attachments/364868291149168640/493724394758078467/unknown.png
https://media.discordapp.net/attachments/473491355520204800/493706304922058752/unknown.png
C:\Users\Administrator\Documents\Moonglow\node_modules\integer>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Users\Administrator\Documents\Moonglow\node_modules\integer\build\integer.vcxproj(20,3): error

MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Administrator\Documents\Moonglow\node_modules\integer
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

@eslachance The integer module enables 64-bit-integer support which is something that is lacking from all other sqlite libraries for Node.js. The integer library is much simpler than better-sqlite3, and its build process is also simpler. My guess is that if integer fails to build, better-sqlite3 would have failed to build right afterwards

@JoshuaWise I think my major pain point is that I've never had any issue building it myself, and have always been unable to reproduce the issue on my own, in several PCs and VMs with various versions of Windows. So it's not an easy thing to troubleshoot, and must have a very specific cause that I'd love to pinpoint.

@eslachance Yeah it's these hard-to-replicate issues that are the worst. I appreciate your interest in helping solve some of these issues.

Many installation-related bugs were fixed in version 5.0.0. It could be worth trying the new version.

I'll definitely take a look! I'm using better-sqlite-pool so I'll have to fork it for testing, but I'm happy to hear this might be progressing! I'll let you know. Thanks :D

Unfortunately, there's still an issue with the integer package:
https/i.typicalbot.com/57b817

@eslachance I found this thread which looks relevant:
https://github.com/npm/npm/issues/10421#issuecomment-378489898

I'd say that's awesome but that's already what I'm telling people to do. At this point, it sounds like I should start releasing a batch file that does this because the command's starting to look like
npm i -g --prodution --vs2015 --add-python-to-path windows-build-tools node-gyp
Quite a mouthful.

As a sidenote, --vs2015 is to counter the following error: ```
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools.  Alternatively, you may upgrade to the current Visual Studio
tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\Jackson\Desktop\Rino\node_modules\better-sqlite3\build\deps\action_before_build.vcxproj]

So even though https://github.com/npm/npm/issues/10421#issuecomment-378489898 indicates that the 2015 version is broken, it's the only way to get around that issue as far as I know.

With better-sqlite version 5.0.0, I had to update my windows build box setup to the following:

Install the latest node 8 or node 10. Earlier versions of node (like 10.2.x) will not compile.
Right-click start, Windows PowerShell (Admin)
Install both vs2015 and vs2017 libraries. Each line will take ~5-10 minutes.

npm install --global --production --vs2015 --add-python-to-path windows-build-tools
npm install --global --production --add-python-to-path windows-build-tools node-gyp

In your project, make sure you're not fighting with old build configurations. Delete both your $HOME/.node-gyp and your project's node_modules directories.
Set up ~/.npmrc correctly:

msvs_version=2015
python=python2.7

@enbermudas https://duckduckgo.com/?q=error+MSB4019

@mceachen I did it with and without that node_modules folder. The error is still there.

@mceachen I did it with and without that node_modules folder. The error is still there.

I'd look at the results of that DDG query.

I know i haven't posted in here but I still have an issue with the installation. In fact I cannot even install windows build tools. I've reinstalled node, started my pc, I don't know what could be causing this.  Saved to C:\Users<REDACTED USER>.windows-build-tools\python-2.7.15.amd64.msi.
Downloading BuildTools_Full.exe
[>                                            ] 0.0% (0 B/s)
Downloaded BuildTools_Full.exe. Saved to C:\Users<REDACTED USER>.windows-build-tools\BuildTools_Full.exe.
Starting installation...
Launched installers, now waiting for them to finish.
This will likely take some time - please be patient!
Status from the installers:
---------- Visual Studio Build Tools ----------
Still waiting for installer log file...
------------------- Python --------------------
Still waiting for installer log file...`

@Huskydog9988 You should really ask for help within the windows-builds-tools project...

`F:\zellybot-master\zellybot-master>npm i better-sqlite-pool

<EMAIL_ADDRESS>install F:\zellybot-master\zellybot-master\node_modules\integer
node-gyp rebuild

F:\zellybot-master\zellybot-master\node_modules\integer>if not defined npm_config_node_gyp (node "C:\Users\highl_000\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "node C:\Users\me\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module 'F:\zellybot-master\zellybot-master\node_modules\integer\node C:\Users\me\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of better-sqlite-pool@github:eslachance/better-sqlite-pool but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>No repository field.
npm WARN<EMAIL_ADDRESS>No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      C:\Users\highl_000\AppData\Roaming\npm-cache_logs\2019-02-22T01_42_43_767Z-debug.log`
I have the same issues and I have tried all of these suggestions, nothing seems to be fixing it.

@Huskydog9988 @VegeoStudios Did you do all 5 steps (they may not make sense, but don't skip any of them) in https://github.com/JoshuaWise/better-sqlite3/issues/170#issuecomment-441734343 ?
If you're still having issues after following those steps, try making a new project (npm --init) that only has better-sqlite3 as a dependency. It looks like you've got a number of native deps. They don't always play nicely together.

Can you explain steps 3 and 4 for me? I don't quite understand those 2.

I figured out what the instructions meant. Looks like it's all working now!

@mceachen the build tools installer gets stuck waiting for installer log files. So I cannot even begin to follow your directions past opening Admin powershell. I have removed everything related to windows build tools in the “user” folder and in “path”.

@Huskydog9988 I find myself in a world of hurt in windows land if I'm not running the latest update. I'm on 10.0.17763 Build 17763.
@JoshuaWise I think you can probably close this ticket or mark it sticky?
Should the steps in https://github.com/JoshuaWise/better-sqlite3/issues/170#issuecomment-441734343 be added to the readme or https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/compilation.md?

Just wanted to chime in that I had the issues described in this ticket.
I ran  npm install --global --production windows-build-tools --vs2015
then ran npm i && electron-builder install-app-deps
and got it working. Using node v11.13.0, better-sqlite3 5.4.0, electron-builder: 20.40.0

VS2017 and VS2019 are now supported in v5.4.3.

Hello i cant install this module on Repl.it


near_far_from_sphere

Hi, since the previous issue on this topic has been closed, I open up this new one.
the snippet:
  def near_far_from_sphere(self, rays_o, rays_d):
      a = torch.sum(rays_d**2, dim=-1, keepdim=True)
      b = 2.0 * torch.sum(rays_o * rays_d, dim=-1, keepdim=True)
      mid = 0.5 * (-b) / a
      near = mid - 1.0
      far = mid + 1.0
      return near, far

May I take it this way: the sphere is centered at the origin of world space and its radius is 1, so that c = torch.sum(rays_o**2, dim=-1, keepdim=True) - 1?
But if I calculate x = (-b + torch.sqrt(b**2 - 4*a*c))/(2*a), it is non of near or far.
What's the difference between the solution x and the near and far?
Thank you :-)

In my understanding, the near and far points in this snippet are hard coded as points 1 unit away from the middle point of the actual intersections. With this setup, the sampling is always performed on 2-unit line segments.


getting started ?

Hello,
I read the quick start but there is not much to read
as I click on next, there are configuration variables, I have no idea which file should be opened to define these variables
also how do I add carographer to one of my program, how do I declare sensors/odometers and how do I feed cartographer with these data
what format should they have, how do I normalize these data ?
thanks

Hi,
Did you follow our suggestion to try out the ROS integration? It gives you a good example how to use the Cartographer library should you decide not to use ROS and integrate directly with the library. I suggest getting the demos to run first: https://google-cartographer-ros.readthedocs.io/en/latest/
Regarding configuration variables, we provide example configurations for several use cases. Defaults are at https://github.com/googlecartographer/cartographer/tree/master/configuration_files and are overwritten, e.g., for the TurtleBot here: https://github.com/googlecartographer/cartographer_turtlebot/tree/master/cartographer_turtlebot/configuration_files
Please let me know if you have further questions.
Cheers,
Wolfgang

still a bit vague, I am not planning (and I am not familiar) with ROS
I thought that cartographer was a c/c++ library

It is a C++ library and you can use it without ROS. If you want to know how it is intended to be used, you should find it informative to look at how the ROS integration is implemented as an example.


Migrate old DC terms to new CG ones

Some of our older custom metadata fields are living in the DC namespace, which is ugly, confusing, and just makes me lose sleep at night. For example:

ILRI subject: dc.isubject.ilrisubject
CRP subject: dc.crsubject.crpsubject

We learned to behave better, and started prefixing custom fields with "cg", for example:

CIAT subject: cg.subject.ciat
CIP subject: cg.subject.cip

We should find all instances of these and kill them one by one, including in dspace.cfg, input-forms, XMLUI themes, spreadsheet templates by the content staff... etc.

These were migrated last week and removed from the metadata registry.


Abstract snapshot storage

Possibly we can store everything in memory at the moment. But still we should do the abstractions and data model.

Possibly we can store everything in memory at the moment. But still we should do the abstractions and data model.

The data is stored in memory, isn't it stored on disk?

@shy-share you can regard the in-memory solution as a simple / for testing one, and if we want to provide a consistent key-value store, sooner or later we must investigate storing data on disk. I'm unfamiliar with this domain yet, though.

@shy-share you can regard the in-memory solution as a simple / for testing one, and if we want to provide a consistent key-value store, sooner or later we must investigate storing data on disk. I'm unfamiliar with this domain yet, though.
So here we have two aspects to work on:

Abstract data model.
Store the data model just in memory or also on the disk.

ok i want to get involved but i don't know exactly what to do, can you give some specific advice

@shy-share thanks for your interest! This is a side project and I'm still learning the storage part.
A more determinate task in the RoadMap is #8. You can check out RMap.proto definitions, try to support more command and data model in our simple proto.
Also, the current dryad-client is a handy example script. It may be extended to more encapsulated interfaces like etcd clients.
These are rough thoughts in my mind now. If you're interested in these topics, feel free to comment in #8 or create issues correspondingly.
If you're interested in the data model and storage part, I'd like to learn from how ZooKeeper and etcd store their data model. I know that ZooKeeper implements its DataTree and stores data barely on files with jute serialized, but implementing as is once more is boring :)

@tisonkun ok，iI learned about proto and ratis in the past two days. I found that I have a lot to learn, so take it slow


[Backport] NETOBSERV-844 Unable to have a working statusUrl in FlowCollector with Loki Operator 5.6

backport of https://github.com/netobserv/network-observability-console-plugin/pull/312

/lgtm

/approve


Howto compile Development Branch

What do i execute at the command line to compile the development branch?

MERRRP, take a look at the other closed issues on this topic.

On a side note, you can grab an older revision of the development branch.

This one should compile:
https://github.com/DarkStorm652/DarkBot/commit/8a7234b136e8d24d910c0d96c3f4b1fbd5691847


Namespaces include the node name where they previously appear to not do so

While reviewing this tutorial for ROS Lunar:
http://wiki.ros.org/ROS/Tutorials/UnderstandingTopics
I noticed that the current rqt_graph rendering looks different than the historical screenshots in the wiki page. For example:

If I uncheck the namespaces option it looks like the screenshot currently on the wiki:

However, I feel that it should not require me doing that. That's why I think that the namespace is incorrectly including the node name at all times. Based on the code and rosnode info I do not believe these nodes are actually in namespaces:
% rosnode info /turtlesim
--------------------------------------------------------------------------------
Node [/turtlesim]
Publications:
 * /turtle1/color_sensor [turtlesim/Color]
 * /rosout [rosgraph_msgs/Log]
 * /turtle1/pose [turtlesim/Pose]

Subscriptions:
 * /turtle1/cmd_vel [geometry_msgs/Twist]

Services:
 * /clear
 * /turtle1/teleport_relative
 * /turtlesim/set_logger_level
 * /spawn
 * /reset
 * /kill
 * /turtlesim/get_loggers
 * /turtle1/teleport_absolute
 * /turtle1/set_pen

contacting node http://injera:37136/ ...
Pid: 28751
Connections:
 * topic: /rosout
    * to: /rosout
    * direction: outbound
    * transport: TCPROS
 * topic: /turtle1/cmd_vel
    * to: /teleop_turtle (http://injera:46066/)
    * direction: inbound
    * transport: TCPROS

Addressed in #8.

Another patch to get rid of the unintentional color item: ros-visualization/qt_gui_core#86


Remove ExpirationCaveat from unit tests (or replace with non-expiration example)

The ExpirationCaveat example is confusing because "expires" is a core property of zcaps now. It can mislead people to use it instead of the "expires" feature. It should be removed or replaced with another example.

Addressed by #73.


Fix tox

The format and lint tox targets are incomplete. This will make it in line with the other rocks.

Should be merged after: https://github.com/canonical/fluent-bit-rock/pull/1


Adding new kind of action which is performed in response to the error.

Related to #17

Hi @NeoAnomaly , thanks very much for your PR. This looks like a reasonable addition.
I wanted to reach out to you and ask if you could also make the .NET/managed version include the changes your PR.
I checked the CI build output for this PR and (BugTrapDN.dll) and found enum ActivityType still having MailReport, SaveReport, SendReport, and ShowUI. I don't see a new Custom value with an ability to register a callback in the .NET version of BugTrap.
If you could make the .NET version match up with the changes you made in the native version of BugTrap, that would be really great!
Let me know your thoughts. Thanks!

Hi @bchavez. I tried to made suitable changes for managed version. At first glance nothing complicated. But it would be better if someone who knows/works with c++/cli reviewed changes before merging.
Example usage(C#):
class Program
    {
        static void Main(string[] args)
        {
            ExceptionHandler.AppName = "Your application name";
            ExceptionHandler.Flags = FlagsType.DetailedMode;
            ExceptionHandler.DumpType = MinidumpType.Normal;

            ExceptionHandler.Activity = ActivityType.Custom;
            ExceptionHandler.CustomActivity += ExceptionHandler_CustomActivity;

            throw new NotImplementedException("My test exception");
        }

        private static void ExceptionHandler_CustomActivity(object sender, string reportFilePath)
        {
            Console.WriteLine(reportFilePath);
            Console.ReadLine();
        }
    }

Hi @NeoAnomaly , this looks great! Thanks so much for getting the managed version up to feature parity with your PR.
It looks good to me. I'll probably wait until the end of day before merging your code to give others a chance to review this PR.
If we don't have any objections, we'll merge tonight (Los Angeles/Pacific Time) and publish a fresh build of your changes.
Again, thank you for your contribution! Great work m8!

Related to #17

Good!


Services: first build: abs added

{package} {version} {:snowflake:}
Destination channel: {Snowflake | defaults}
Links

{ticket_number}
Upstream repository
Upstream changelog/diff
Relevant dependency PRs:

...

Explanation of changes:

...

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_d69vr9yc6r/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:63: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:52: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
===== Final Report: =====
0 Errors and 2 Warnings were found

Linter check found the following problems:
Traceback (most recent call last):
  File "/opt/conda/envs/linter/lib/python3.12/site-packages/anaconda_linter/run.py", line 159, in main
    sys.exit(prime())
             ^^^^^^^
  File "/opt/conda/envs/linter/lib/python3.12/site-packages/anaconda_linter/run.py", line 138, in prime
    result = linter.lint(recipes, subdir, args.variant_config_files, args.exclusive_config_files, args.fix)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/linter/lib/python3.12/site-packages/anaconda_linter/lint/__init__.py", line 735, in lint
    msgs = self.lint_file(
           ^^^^^^^^^^^^^^^
  File "/opt/conda/envs/linter/lib/python3.12/site-packages/anaconda_linter/lint/__init__.py", line 842, in lint_file
    self.lint_recipe(
  File "/opt/conda/envs/linter/lib/python3.12/site-packages/anaconda_linter/lint/__init__.py", line 902, in lint_recipe
    res = self.check_instances[check].run(recipe, fix)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/linter/lib/python3.12/site-packages/anaconda_linter/lint/__init__.py", line 294, in run
    self.check_recipe(recipe)
  File "/opt/conda/envs/linter/lib/python3.12/site-packages/anaconda_linter/lint/check_syntax.py", line 36, in check_recipe
    has_constraints = constraints.search(spec)
                      ^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
ERROR conda.cli.main_run:execute(125): conda run conda-lint /tmp/abs_25yfw_j4u1/clone failed. (See above for error)

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_4dxtjdjikb/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:56: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:69: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:68: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:94: missing_description: The recipe is missing a description

===== ERRORS =====

clone/recipe/meta.yaml:94: missing_documentation: The recipe is missing a doc_url or doc_source_url
clone/recipe/meta.yaml:94: http_url: http://www.pyinstaller.org is not https
clone/recipe/meta.yaml:51: patch_must_be_in_build: patch must be in build when source/patches is set.
clone/recipe/meta.yaml:83: has_run_test_and_commands: Test commands are not executed when run_test.sh (.bat...) is present.
clone/recipe/meta.yaml:83: missing_pip_check: For pypi packages, pip check should be present in the test commands
clone/recipe/meta.yaml:58: missing_wheel: For pypi packages, wheel should be present in the host section
===== Final Report: =====
6 Errors and 4 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_1fndy263sk/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:68: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:69: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:56: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:94: missing_description: The recipe is missing a description

===== ERRORS =====

clone/recipe/meta.yaml:94: missing_documentation: The recipe is missing a doc_url or doc_source_url
clone/recipe/meta.yaml:58: missing_wheel: For pypi packages, wheel should be present in the host section
clone/recipe/meta.yaml:51: patch_must_be_in_build: patch must be in build when source/patches is set.
clone/recipe/meta.yaml:83: has_run_test_and_commands: Test commands are not executed when run_test.sh (.bat...) is present.
clone/recipe/meta.yaml:94: http_url: http://www.pyinstaller.org is not https
clone/recipe/meta.yaml:83: missing_pip_check: For pypi packages, pip check should be present in the test commands
===== Final Report: =====
6 Errors and 4 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_89i7t776r1/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:98: missing_description: The recipe is missing a description
clone/recipe/meta.yaml:56: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:71: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:70: python_build_tool_in_run: The python build tool setuptools is in run depends

===== ERRORS =====

clone/recipe/meta.yaml:1: missing_test_requirement_pip: pip is required in the test requirements.
clone/recipe/meta.yaml:51: patch_must_be_in_build: patch must be in build when source/patches is set.
clone/recipe/meta.yaml:98: missing_documentation: The recipe is missing a doc_url or doc_source_url
clone/recipe/meta.yaml:75: has_run_test_and_commands: Test commands are not executed when run_test.sh (.bat...) is present.
===== Final Report: =====
4 Errors and 4 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_5ckwn71ux3/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:71: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:70: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:98: missing_description: The recipe is missing a description
clone/recipe/meta.yaml:56: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.

===== ERRORS =====

clone/recipe/meta.yaml:51: patch_must_be_in_build: patch must be in build when source/patches is set.
clone/recipe/meta.yaml:1: missing_test_requirement_pip: pip is required in the test requirements.
clone/recipe/meta.yaml:98: missing_documentation: The recipe is missing a doc_url or doc_source_url
clone/recipe/meta.yaml:75: has_run_test_and_commands: Test commands are not executed when run_test.sh (.bat...) is present.
===== Final Report: =====
4 Errors and 4 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_4bylqr8qsg/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:56: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:70: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:98: missing_description: The recipe is missing a description
clone/recipe/meta.yaml:71: python_build_tool_in_run: The python build tool setuptools is in run depends

===== ERRORS =====

clone/recipe/meta.yaml:1: missing_test_requirement_pip: pip is required in the test requirements.
clone/recipe/meta.yaml:51: patch_must_be_in_build: patch must be in build when source/patches is set.
clone/recipe/meta.yaml:98: missing_documentation: The recipe is missing a doc_url or doc_source_url
clone/recipe/meta.yaml:75: has_run_test_and_commands: Test commands are not executed when run_test.sh (.bat...) is present.
===== Final Report: =====
4 Errors and 4 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_39p0nkbsf5/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:70: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:71: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:56: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:98: missing_description: The recipe is missing a description

===== ERRORS =====

clone/recipe/meta.yaml:75: has_run_test_and_commands: Test commands are not executed when run_test.sh (.bat...) is present.
clone/recipe/meta.yaml:1: missing_test_requirement_pip: pip is required in the test requirements.
clone/recipe/meta.yaml:51: patch_must_be_in_build: patch must be in build when source/patches is set.
clone/recipe/meta.yaml:98: missing_documentation: The recipe is missing a doc_url or doc_source_url
===== Final Report: =====
4 Errors and 4 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_aaz957xh8_/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:56: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:71: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:98: missing_description: The recipe is missing a description
clone/recipe/meta.yaml:70: python_build_tool_in_run: The python build tool setuptools is in run depends

===== ERRORS =====

clone/recipe/meta.yaml:98: missing_documentation: The recipe is missing a doc_url or doc_source_url
clone/recipe/meta.yaml:51: patch_must_be_in_build: patch must be in build when source/patches is set.
clone/recipe/meta.yaml:75: has_run_test_and_commands: Test commands are not executed when run_test.sh (.bat...) is present.
clone/recipe/meta.yaml:1: missing_test_requirement_pip: pip is required in the test requirements.
===== Final Report: =====
4 Errors and 4 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_31_pdo47iv/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:56: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:70: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:99: missing_description: The recipe is missing a description
clone/recipe/meta.yaml:69: python_build_tool_in_run: The python build tool setuptools is in run depends

===== ERRORS =====

clone/recipe/meta.yaml:74: has_run_test_and_commands: Test commands are not executed when run_test.sh (.bat...) is present.
clone/recipe/meta.yaml:99: missing_documentation: The recipe is missing a doc_url or doc_source_url
clone/recipe/meta.yaml:1: missing_test_requirement_pip: pip is required in the test requirements.
clone/recipe/meta.yaml:51: patch_must_be_in_build: patch must be in build when source/patches is set.
===== Final Report: =====
4 Errors and 4 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_16omzwzkjt/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:70: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:100: missing_description: The recipe is missing a description
clone/recipe/meta.yaml:69: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:56: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.

===== ERRORS =====

clone/recipe/meta.yaml:1: missing_test_requirement_pip: pip is required in the test requirements.
clone/recipe/meta.yaml:74: has_run_test_and_commands: Test commands are not executed when run_test.sh (.bat...) is present.
clone/recipe/meta.yaml:51: patch_must_be_in_build: patch must be in build when source/patches is set.
===== Final Report: =====
3 Errors and 4 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_d3thiawisy/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:101: missing_description: The recipe is missing a description
clone/recipe/meta.yaml:70: python_build_tool_in_run: The python build tool setuptools is in run depends
clone/recipe/meta.yaml:57: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:71: python_build_tool_in_run: The python build tool setuptools is in run depends

===== ERRORS =====

clone/recipe/meta.yaml:52: patch_must_be_in_build: patch must be in build when source/patches is set.
clone/recipe/meta.yaml:75: has_run_test_and_commands: Test commands are not executed when run_test.sh (.bat...) is present.
clone/recipe/meta.yaml:1: missing_test_requirement_pip: pip is required in the test requirements.
===== Final Report: =====
3 Errors and 4 Warnings were found


Swagger UI v. 2.1.1-M2 Support?

Hello,
Perhaps an already known issue.
I am using Swagger Docs gem as part of my RoR application, and so far had one instance running Swagger UI v. 2.0.24
This version was fine, however, had problems supporting nested attributes or more precisely, the swagger_docs swagger_model concept, once rendering the pages. Not able to edit the attributes inline, losing all the value of using Swagger Docs, and having other developers of our team using HttpRequester or whatever Rest Client of their choice to actually test/submit requests.
I was somehow expecting this to be fixed in 2.1.1 (or under the asumption it would, based on my readings)
However when giving a try to 2.1.1-M2 recently, it appeared a whole new set of problems started to appear, starting from being unable to load/render our swagger_docs generated JSON files in that new UI.
A sample would be:
http://petstore.swagger.io/?url=http://data-api.smartzip-services.com/api/1.0/api-docs.json
Is there anyone actively working on that project and planning on such support?
Does the JSON have a different format now?
Are their any known workaround? Extra step to convert it to a valid JSON file that V2.2.1 can interpret?
Would be glad to help if need be!

Any update on version 2.0 support?

Known issue, swagger-docs doesn't support v2 (see https://github.com/richhollis/swagger-docs/issues/107).
If you're interested in a different project, I'm the maintainer of swagger-blocks which does have full support for Swagger v2.

Closing as not currently supported


Replace all // comments with -- comments

Since @AbigailBuccaneer mentioned this and I don't really like the C-style comments in glua, I decided to make it consistent.
There might still be C-style block-comments, but those can't easily be changed with a regular expression, so I'm not going to bother with those.
This is the command I ran in a (gnu) bash shell:
find . -type f -name *.lua -exec sed -i 's@\(^\s*\)//@\1--@g' {} \;
Untested and I only skimmed over the second half of the diff (I did check the first half properly, though.)

Closing this, as per my previous comment and other people's apathy.


Upgrade old version of lodash

While searching for older versions of lodash being pulled in as transitive dependencies in Ember projects, I noticed you were including a 2.x version of Lodash, which can take up a decent chunk of space:
➜  ember.js git:(master) du -sh ./node_modules/html-differ/node_modules/lodash
964K    ./node_modules/html-differ/node_modules/lodash

All tests are passing in Node 6.

Any chance of getting this landed and released? npm audit reports a minor security issue with the lodash included currently.


[ NEW GUIDE ] SQD intro

This guide should cover:

overview of SQD package
pip install instructions (and any specific package installation constraints)

Existing docs for reference:

SQD readme
SQD installation page

Closed by https://github.com/Qiskit/documentation/pull/2148


SW-2623 Use New Filters in Withdrawal Log Table

that was a lot of cleanup, nice @charlie-tf

that was a lot of cleanup, nice @charlie-tf

Thanks, @karthikbtf

Thanks for following up. Looks great. 🎉 🙌 One nit (for designers to review maybe) the placeholders for date range are truncated.. maybe the datepickers can be stacked instead of being placed in a single row..

Thanks for pointing this out. I'll make sure to call it out when this is QA'd.


[bug] NOT NULL constraint failed: django_loci_floorplan.floor #65

Closes #65

Travis tests have failed
Hey @Purhan,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
6th Build
View build log

     ./run-qa-checks

SUCCESS: Blank endline check successful!
Migration file 0002_auto_20201014_1334.py in directory ./django_loci/migrations must be renamed to something more descriptive.
ERROR: Migration name check on "./django_loci/migrations" with migrations-to-ignore: 0 failed!
SUCCESS: Migration name check on "./django_loci/tests/testdeviceapp/migrations" with migrations-to-ignore: 0 successful!
Skipped 2 files
SUCCESS: Isort check successful!
All done! ✨ 🍰 ✨
42 files would be left unchanged.
SUCCESS: Black check successful!
SUCCESS: Flake8 check successful!
SUCCESS: Commit message check successful!
No changes detected in app 'django_loci'
SUCCESS: Migrations check successful!

TravisBuddy Request Identifier: 71044ec0-0e12-11eb-964d-5d54b4986782

Travis tests have failed
Hey @Purhan,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
6th Build
View build log

     ./run-qa-checks

SUCCESS: Blank endline check successful!
Migration file 0002_auto_20201014_1334.py in directory ./django_loci/migrations must be renamed to something more descriptive.
ERROR: Migration name check on "./django_loci/migrations" with migrations-to-ignore: 0 failed!
SUCCESS: Migration name check on "./django_loci/tests/testdeviceapp/migrations" with migrations-to-ignore: 0 successful!
Skipped 2 files
SUCCESS: Isort check successful!
--- django_loci/migrations/0001_initial.py	2020-10-14 11:49:47.924741 +0000
+++ django_loci/migrations/0001_initial.py	2020-10-14 11:50:15.687945 +0000
@@ -135,13 +135,11 @@
                     django.contrib.gis.db.models.fields.GeometryField(
                         blank=True, null=True, srid=4326, verbose_name='geometry'
                     ),
                 ),
             ],
-            options={
-                'abstract': False,
-            },
+            options={'abstract': False,},
         ),
         migrations.CreateModel(
             name='ObjectLocation',
             fields=[
                 (
@@ -212,14 +210,12 @@
             field=models.ForeignKey(
                 on_delete=django.db.models.deletion.CASCADE, to='django_loci.Location'
             ),
         ),
         migrations.AlterUniqueTogether(
-            name='objectlocation',
-            unique_together=set([('content_type', 'object_id')]),
+            name='objectlocation', unique_together=set([('content_type', 'object_id')]),
         ),
         migrations.AlterUniqueTogether(
-            name='floorplan',
-            unique_together=set([('location', 'floor')]),
+            name='floorplan', unique_together=set([('location', 'floor')]),
         ),
     ]

would reformat django_loci/migrations/0001_initial.py
--- django_loci/tests/testdeviceapp/migrations/0001_initial.py	2020-10-14 11:49:47.924741 +0000
+++ django_loci/tests/testdeviceapp/migrations/0001_initial.py	2020-10-14 11:50:16.060639 +0000
@@ -41,11 +41,9 @@
                         verbose_name='modified',
                     ),
                 ),
                 ('name', models.CharField(max_length=75, verbose_name='name')),
             ],
-            options={
-                'abstract': False,
-            },
+            options={'abstract': False,},
         ),
     ]

would reformat django_loci/tests/testdeviceapp/migrations/0001_initial.py
--- django_loci/widgets.py	2020-10-14 11:49:47.924741 +0000
+++ django_loci/widgets.py	2020-10-14 11:50:16.130007 +0000
@@ -21,22 +21,15 @@

     def get_context(self, name, value, attrs):
         c = super().get_context(name, value, attrs)
         if value and hasattr(value, 'url'):
             c.update(
-                {
-                    'filename': value.name,
-                    'url': value.url,
-                    'thumbnail': self.thumbnail,
-                }
+                {'filename': value.name, 'url': value.url, 'thumbnail': self.thumbnail,}
             )
             try:
                 c.update(
-                    {
-                        'width': value.width,
-                        'height': value.height,
-                    }
+                    {'width': value.width, 'height': value.height,}
                 )
             except IOError:
                 msg = 'floorplan image not found while showing floorplan:\n{0}'
                 logger.error(msg.format(value.name))
         return c
would reformat django_loci/widgets.py
Oh no! 💥 💔 💥
3 files would be reformatted, 39 files would be left unchanged.
ERROR: Black check failed! Hint: did you forget running openwisp-qa-format?
SUCCESS: Flake8 check successful!
SUCCESS: Commit message check successful!
No changes detected in app 'django_loci'
SUCCESS: Migrations check successful!

TravisBuddy Request Identifier: 7a836110-0e13-11eb-964d-5d54b4986782

Travis tests have failed
Hey @Purhan,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
6th Build
View build log

     ./run-qa-checks

SUCCESS: Blank endline check successful!
Migration file 0002_auto_20201014_1334.py in directory ./django_loci/migrations must be renamed to something more descriptive.
ERROR: Migration name check on "./django_loci/migrations" with migrations-to-ignore: 0 failed!
SUCCESS: Migration name check on "./django_loci/tests/testdeviceapp/migrations" with migrations-to-ignore: 0 successful!
Skipped 2 files
SUCCESS: Isort check successful!
All done! ✨ 🍰 ✨
42 files would be left unchanged.
SUCCESS: Black check successful!
SUCCESS: Flake8 check successful!
SUCCESS: Commit message check successful!
No changes detected in app 'django_loci'
SUCCESS: Migrations check successful!

TravisBuddy Request Identifier: 732a7830-0e14-11eb-964d-5d54b4986782

Coverage remained the same at 99.772% when pulling b1a6d55b1b3fc5f88cf762c5a2c81224de6bab10 on Purhan:issues/65-fix-not-null-constraint into a7fbeeab818ee95fb55f14059df57331fa0733a4 on openwisp:master.

@atb00ker please take a look

Travis tests have failed
Hey @Purhan,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
6th Build
View build log

     coverage run -a --source=django_loci runtests.py

Creating test database for alias 'default'...
System check identified no issues (0 silenced).
floorplan image not found while showing floorplan:
floorplans/6e33adb5-6c74-448f-b2c0-686c66ca39b7.jpg
floorplan image not found while deleting test-admin-location-1 1st floor:
/home/travis/build/openwisp/django-loci/tests/media/floorplans/6e33adb5-6c74-448f-b2c0-686c66ca39b7.jpg
...floorplan image not found while showing floorplan:
floorplans/0ed362f9-2091-4189-b88b-24648c324804.jpg
floorplan image not found while deleting test-admin-location-1 1st floor:
/home/travis/build/openwisp/django-loci/tests/media/floorplans/0ed362f9-2091-4189-b88b-24648c324804.jpg
........F.FF..F.....FFF...floorplan image not found while deleting test-location 1st floor:
/home/travis/build/openwisp/django-loci/tests/media/floorplans/70b5fbea-cdea-4199-9fc9-3f37977aaa80.jpg
.........
======================================================================
FAIL: test_add_indoor_location_without_indoor_coords (django_loci.tests.test_admin_inline.TestAdminInline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/openwisp/django-loci/django_loci/tests/base/test_admin_inline.py", line 664, in test_add_indoor_location_without_indoor_coords
    self.assertNotContains(r, 'errors')
  File "/home/travis/virtualenv/python3.7.6/lib/python3.7/site-packages/django/test/testcases.py", line 481, in assertNotContains
    self.assertEqual(real_count, 0, msg_prefix + "Response should not contain %s" % text_repr)
AssertionError: 1 != 0 : Response should not contain 'errors'

======================================================================
FAIL: test_add_mobile (django_loci.tests.test_admin_inline.TestAdminInline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/openwisp/django-loci/django_loci/tests/base/test_admin_inline.py", line 475, in test_add_mobile
    self.assertNotContains(r, 'errors')
  File "/home/travis/virtualenv/python3.7.6/lib/python3.7/site-packages/django/test/testcases.py", line 481, in assertNotContains
    self.assertEqual(real_count, 0, msg_prefix + "Response should not contain %s" % text_repr)
AssertionError: 1 != 0 : Response should not contain 'errors'

======================================================================
FAIL: test_add_outdoor_existing (django_loci.tests.test_admin_inline.TestAdminInline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/openwisp/django-loci/django_loci/tests/base/test_admin_inline.py", line 108, in test_add_outdoor_existing
    self.assertNotContains(r, 'errors')
  File "/home/travis/virtualenv/python3.7.6/lib/python3.7/site-packages/django/test/testcases.py", line 481, in assertNotContains
    self.assertEqual(real_count, 0, msg_prefix + "Response should not contain %s" % text_repr)
AssertionError: 1 != 0 : Response should not contain 'errors'

======================================================================
FAIL: test_add_outdoor_new (django_loci.tests.test_admin_inline.TestAdminInline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/openwisp/django-loci/django_loci/tests/base/test_admin_inline.py", line 77, in test_add_outdoor_new
    self.assertNotContains(r, 'errors')
  File "/home/travis/virtualenv/python3.7.6/lib/python3.7/site-packages/django/test/testcases.py", line 481, in assertNotContains
    self.assertEqual(real_count, 0, msg_prefix + "Response should not contain %s" % text_repr)
AssertionError: 1 != 0 : Response should not contain 'errors'

======================================================================
FAIL: test_change_mobile (django_loci.tests.test_admin_inline.TestAdminInline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/openwisp/django-loci/django_loci/tests/base/test_admin_inline.py", line 509, in test_change_mobile
    self.assertNotContains(r, 'errors')
  File "/home/travis/virtualenv/python3.7.6/lib/python3.7/site-packages/django/test/testcases.py", line 481, in assertNotContains
    self.assertEqual(real_count, 0, msg_prefix + "Response should not contain %s" % text_repr)
AssertionError: 1 != 0 : Response should not contain 'errors'

======================================================================
FAIL: test_change_outdoor (django_loci.tests.test_admin_inline.TestAdminInline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/openwisp/django-loci/django_loci/tests/base/test_admin_inline.py", line 150, in test_change_outdoor
    self.assertNotContains(r, 'errors')
  File "/home/travis/virtualenv/python3.7.6/lib/python3.7/site-packages/django/test/testcases.py", line 481, in assertNotContains
    self.assertEqual(real_count, 0, msg_prefix + "Response should not contain %s" % text_repr)
AssertionError: 1 != 0 : Response should not contain 'errors'

======================================================================
FAIL: test_change_outdoor_to_different_location (django_loci.tests.test_admin_inline.TestAdminInline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/openwisp/django-loci/django_loci/tests/base/test_admin_inline.py", line 196, in test_change_outdoor_to_different_location
    self.assertNotContains(r, 'errors')
  File "/home/travis/virtualenv/python3.7.6/lib/python3.7/site-packages/django/test/testcases.py", line 481, in assertNotContains
    self.assertEqual(real_count, 0, msg_prefix + "Response should not contain %s" % text_repr)
AssertionError: 1 != 0 : Response should not contain 'errors'

----------------------------------------------------------------------
Ran 38 tests in 6.054s

FAILED (failures=7)
Destroying test database for alias 'default'...

TravisBuddy Request Identifier: 488be450-0e42-11eb-964d-5d54b4986782

Travis tests have failed
Hey @Purhan,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
6th Build
View build log

     coverage run -a --source=django_loci runtests.py

Creating test database for alias 'default'...
System check identified no issues (0 silenced).
floorplan image not found while showing floorplan:
floorplans/5964a0db-5742-4e6d-b4a3-427aecb1cbc1.jpg
floorplan image not found while deleting test-admin-location-1 1st floor:
/home/travis/build/openwisp/django-loci/tests/media/floorplans/5964a0db-5742-4e6d-b4a3-427aecb1cbc1.jpg
...floorplan image not found while showing floorplan:
floorplans/96ec2d60-8457-4994-90c4-4138bb04af06.jpg
floorplan image not found while deleting test-admin-location-1 1st floor:
/home/travis/build/openwisp/django-loci/tests/media/floorplans/96ec2d60-8457-4994-90c4-4138bb04af06.jpg
....FF..FF.....F..........floorplan image not found while deleting test-location 1st floor:
/home/travis/build/openwisp/django-loci/tests/media/floorplans/6dab6e32-79fc-4289-83ca-fcd4b3f7af82.jpg
.........
======================================================================
FAIL: test_add_indoor_existing_location_existing_floorplan (django_loci.tests.test_admin_inline.TestAdminInline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/openwisp/django-loci/django_loci/tests/base/test_admin_inline.py", line 315, in test_add_indoor_existing_location_existing_floorplan
    self.assertNotContains(r, 'errors')
  File "/home/travis/virtualenv/python3.7.6/lib/python3.7/site-packages/django/test/testcases.py", line 481, in assertNotContains
    self.assertEqual(real_count, 0, msg_prefix + "Response should not contain %s" % text_repr)
AssertionError: 1 != 0 : Response should not contain 'errors'

======================================================================
FAIL: test_add_indoor_existing_location_new_floorplan (django_loci.tests.test_admin_inline.TestAdminInline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/openwisp/django-loci/django_loci/tests/base/test_admin_inline.py", line 274, in test_add_indoor_existing_location_new_floorplan
    self.assertNotContains(r, 'errors')
  File "/home/travis/virtualenv/python3.7.6/lib/python3.7/site-packages/django/test/testcases.py", line 481, in assertNotContains
    self.assertEqual(real_count, 0, msg_prefix + "Response should not contain %s" % text_repr)
AssertionError: 1 != 0 : Response should not contain 'errors'

======================================================================
FAIL: test_add_indoor_location_without_indoor_coords (django_loci.tests.test_admin_inline.TestAdminInline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/openwisp/django-loci/django_loci/tests/base/test_admin_inline.py", line 664, in test_add_indoor_location_without_indoor_coords
    self.assertNotContains(r, 'errors')
  File "/home/travis/virtualenv/python3.7.6/lib/python3.7/site-packages/django/test/testcases.py", line 481, in assertNotContains
    self.assertEqual(real_count, 0, msg_prefix + "Response should not contain %s" % text_repr)
AssertionError: 1 != 0 : Response should not contain 'errors'

======================================================================
FAIL: test_add_indoor_new_location_new_floorplan (django_loci.tests.test_admin_inline.TestAdminInline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/openwisp/django-loci/django_loci/tests/base/test_admin_inline.py", line 230, in test_add_indoor_new_location_new_floorplan
    self.assertNotContains(r, 'errors')
  File "/home/travis/virtualenv/python3.7.6/lib/python3.7/site-packages/django/test/testcases.py", line 481, in assertNotContains
    self.assertEqual(real_count, 0, msg_prefix + "Response should not contain %s" % text_repr)
AssertionError: 1 != 0 : Response should not contain 'errors'

======================================================================
FAIL: test_change_indoor (django_loci.tests.test_admin_inline.TestAdminInline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/openwisp/django-loci/django_loci/tests/base/test_admin_inline.py", line 371, in test_change_indoor
    self.assertNotContains(r, 'errors')
  File "/home/travis/virtualenv/python3.7.6/lib/python3.7/site-packages/django/test/testcases.py", line 481, in assertNotContains
    self.assertEqual(real_count, 0, msg_prefix + "Response should not contain %s" % text_repr)
AssertionError: 1 != 0 : Response should not contain 'errors'

----------------------------------------------------------------------
Ran 38 tests in 6.271s

FAILED (failures=5)
Destroying test database for alias 'default'...

TravisBuddy Request Identifier: 95eba090-0e4d-11eb-964d-5d54b4986782

@nemesisdesign I have a question. I am going to make it such that it does not let you save if type is "indoor" and floor is NULL. However, there are tests that do exactly that (i.e test_add_indoor_location_without_indoor_coords). What should I do in this case?

When fixing bugs, the first thing to do is to confirm the bug and write a failing test, I think there's a problem with this issue. Please see my comment on the issue here: #65 (comment)
Keep this in mind for future bug fixes.

Got it. Since I was able to replicate the issue and it was not covered by tests already, I have to write a test that fails particularly for a scenario like this and think of a suitable patch accordingly. Thanks.

@nemesisdesign @atb00ker
As discussed in https://github.com/openwisp/django-loci/issues/65#issuecomment-709477481, we should allow users to save null as a value for floor.

because sometimes people need to create objects, flag them as indoor but they can't set the indoor coordinates in that moment, they defer that for the future

I have written tests that would fail for the steps mentioned in #65 and then went ahead to fix the errors thrown by the test. Please take a look.

It fixes the issue.
However, I noticed if floor number is set and then I edit the form to remove the floor number and save, the change is not honored and the hold floor number is retained.

@atb00ker
That should be fixed in the latest commit now (Waiting for checks to pass).

@nemesisdesign, please check 174a620. Now a validation error is raised if and only if any other fields are filled.

Hey @Purhan,
Something went wrong with the build.
TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.
View build log
TravisBuddy Request Identifier: e3c75fe0-1585-11eb-94fa-edf6748ec8ed


Remove check_permission() from BaseView

Follow-on from:

#1675

https://github.com/simonw/datasette/blob/e627510b760198ccedba9e5af47a771e847785c9/datasette/views/base.py#L69-L77
This is weirdly different from how check_permissions() used to work, in that it doesn't differentiate between None and False.
https://github.com/simonw/datasette/blob/4a4164b81191dec35e423486a208b05a9edc65e4/datasette/views/base.py#L79-L103


[Feature Request] Manage Vault lifecycle

Summary
Ability to manage the vault life cycle
Use cases
Sometimes one wants to create vaults and delete them when needed. I have a requirement to create a dedicated vault with
some naming convention, and then populate that vault. Also it would be great if I could define users and their permission for a
given vault.
Proposed solution
Check the community provider at: https://github.com/anasinnyk/terraform-provider-onepassword
This provider supports creation of vault, however deletion fails with an error.
Is there a workaround to accomplish this today?
No, because the Vault can only be created/deleted manually.
References & Prior Work
none

Maybe this might be helpful: https://github.com/1Password/terraform-provider-onepassword/issues/49#issuecomment-1071242702

Bump :)

Any chance to get this implemented?

Pretty sad that this is not already implemented 😞


Add capability to autoinstall guides from operator

OpenShift Quickstarts from here:
https://github.com/redhat-developer/app-services-guides/tree/main/devsandbox-quickstarts
will be updated in the operator by @DuncanDoyle
We will need to review changes that we have spiked here:
https://github.com/redhat-developer/app-services-operator/pull/169
and release guides with operator.
Additionally we need to ensure that guides are updated when we change them (we can control versions etc.)

https://github.com/redhat-developer/app-services-operator/pull/216

@secondsun this will require release of the operator and update of the sandbox environment.
We should have release schedule rather than release ad hoc so leaving that for you


[DO NOT MERGE] devnet testing for FIP-0079

Summary of changes
This PR runs Integration tests / Devnet checks with a custom lotus image LOTUS_IMAGE=ghcr.io/chainsafe/lotus-devnet:2024-05-14-0ac3cf4 that is built from the FIP0079-testing branch in lotus.
To run the devnet checks locally:

Install rust and docker toolchains
Checkout hm/devnet-test-FIP-0079 branch of forest
Run ./scripts/devnet/setup.sh
Run ./scripts/devnet/check.sh
Run docker logs -f [forest|lotus] to inspect logs

Reference issue to close (if applicable)

Closes
Other information and links

Change checklist

[ ] I have performed a self-review of my own code,
[ ] I have made corresponding changes to the documentation,
[ ] I have added tests that prove my fix is effective or that my feature works (if possible),
[ ] I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

@hanabi1224 shall we close this?

@LesnyRumcajs Yes! Done.


Add support for process-based credential providers

This allows users to configure an external process to provide
credentials using the credential_process config variable.
Note that this is built on top of the assume role provider since
there is rebasing necessary.

Codecov Report

Merging #1316 into develop will increase coverage by 0.04%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1316      +/-   ##
===========================================
+ Coverage    98.06%   98.11%   +0.04%
===========================================
  Files           46       46
  Lines         7460     7644     +184
===========================================
+ Hits          7316     7500     +184
  Misses         144      144

Impacted Files
Coverage Δ

botocore/credentials.py
98.31% <100%> (+0.58%)
:arrow_up:

botocore/exceptions.py
100% <100%> (ø)
:arrow_up:

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 01b5f93...1221ae5. Read the comment docs.


Example and Docs for matching Nav diffs per platform

Just a short note, I will be starting to work on a sample that takes Google's platform design example and reworks it to use this plugin.
It should help in as far getting to the point of adding more docs to this project.
I will  put it on my Gightub account so I can link it in here when I have it polished.

I am going to start pre-alpha stuff in  the form of mini-articles at medium under my @fredgrott profile  to assist this issue first article next week


Wrong Content-Type on uploading file using axios in react-native

Environment
React Native Environment Info:
System:
OS: Linux 4.15 Ubuntu 16.04.4 LTS (Xenial Xerus)
CPU: x64 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
Memory: 520.49 MB / 11.64 GB
Shell: 4.3.48 - /bin/bash
Binaries:
Node: 10.11.0 - ~/.nvm/versions/node/v10.11.0/bin/node
Yarn: 1.10.1 - ~/.nvm/versions/node/v10.11.0/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.11.0/bin/npm
SDKs:
Android SDK:
Build Tools: 23.0.1, 25.0.0, 25.0.2, 26.0.1, 26.0.2, 26.0.3, 27.0.3
API Levels: 23, 25, 26, 27
npmPackages:
react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728
react-native: 0.57.3 => 0.57.3
npmGlobalPackages:
react-native-cli: 2.0.1
Description
I tried to upload a file using axios in react-native  using the following sample code
const obj = {
            hello: "world"
        };

const json = JSON.stringify(obj);

const blob = new Blob([json], {
        type: 'application/json'
        });

const data = new FormData();

data.append("document", blob);

axios({
  url: 'SOME_URL',
  method: 'POST',
  headers:{...}
            },
  data: data
 })
 .then(res => console.log(res))
 .catch(res =>  console.log(res))

On react-native it is setting the content-type as "text/plain" but when I tried on the web it is setting the correct content-type as "multipart/form-data".
I tried setting Content-Type : 'multipart/form-data' but still it reverts back to text/plain in react-native.

Hey @vineethgeorge03, thanks for filling out this issue - given that this is for Axios please could you raise this issue on Axios.


added test 'should stop sending messages eventually after no more changes occur'

There is a problem with clock updates. If a peer gets a clock update, it will increment its msg_count and send out another clock update to all peers. This will cause each of them to send out another clock update, and so on, infinitely. This is just a test case that tests for this.

Thanks @skollmann! I updated the anything_to_send? condition to not send messages if there's only a clock update and nothing else, as discussed.


FR: keep vertical centering updated

I'm submitting a feature request

Library Version:
1.0.0-beta.1.1.0

Please tell us about your environment:

Operating System:
Linux (Ubuntu 16.04)
Node Version:
6.2.2
NPM Version:
3.9.5
JSPM OR Webpack AND Version
JSPM 0.16.29
Browser:
Chrome 51
Language:
TypeScript 1.8.9

Current behavior:
The dialog is vertically centered the moment it opens. The dialog top stays the same distance from the top of the screen after this. If bindings change and new content is added, or existing content is removed, the height of the dialog changes, but the distance from the top of the screen stays the same. If the dialog height increases, a scrollbar may appear and the user can scroll down to bring the dialog closer to the top of the screen.
Expected/desired behavior:

What is the expected behavior?
The ideal case would be that every time bindings change and content is re-rendered, the dialog is automatically re-aligned. However, this may be annoying if it happens too frequently, so this behavior should be influencable through dialog settings. An acceptable substitute is if the dialog's ViewModel can manually have the dialog re-aligned at pre-determined events, like when new content becomes available.
What is the motivation / use case for changing the behavior?
As it is, tall content displayed in a dialog after it opens causes vertical alignment to go awry. For example, I'm working on a wizard to restore backups. The backups are loaded only when the dialog is opened. When rendered, it looks like this (background blacked out as it is not relevant to this):

For now I've found a workaround:
util/dialog.ts
import {DOM} from 'aurelia-framework';

export function vCenterWithBodyObserver(modalContainer: HTMLElement) {
	const wrapper = <HTMLElement>modalContainer.children[0];
	recenter(wrapper);
	let observer = new MutationObserver(() => recenter(wrapper));
	observer.observe(modalContainer.querySelector("ai-dialog-body"), { attributes: true, childList: true });
}

function recenter(element: HTMLElement) {
	const vh = Math.max((<HTMLElement>DOM.querySelectorAll('html')[0]).clientHeight, window.innerHeight || 0);
	element.style.marginTop = Math.max(((vh - element.offsetHeight) / 2), 30) + 'px';
}

my-dialog-opener.ts
import {vCenterWithBodyObserver} from "util/dialog";

export MyDialogOpener {

// ...

	openDialog() {
		this.dialogService.open({
			model: this.getDialogModel(),
			viewModel: this.getDialogViewModel(),
			position: vCenterWithBodyObserver
		});
	}
}

This re-centers after every change to the attributes or direct children of <ai-dialog-body>. To also re-center after a change at a deeper level, data-bind some dialog body attribute to change at the same time, like so:
<ai-dialog-body data-subitems-fetched="${fetcher.done}">

${subitem}

</ai-dialog-body>

Not the most elegant solution, but it'll do the job for now.

@jedd-ahyoung Ping.

For me the simplest workaround is to use a couple of css rules:
ai-dialog-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
ai-dialog-container > div {
  margin: auto !important;
}

@lulumetro nice trick, i've tested it and works very well!

I've also noticed another difference between my own solution and the one implemented in aurelia-dialog: I'm placing the dialog by only adjusting margin-top, while the standard solution also adjusts margin-bottom. Any reason for this? It often causes the entire div to be so large that a scrollbar appears on the whole viewport, even though the modal fits the viewport just fine, like in the screenshot I posted.

@lulumetro Works great in evergreen browsers, but in Internet Explorer (even 11) it looks funky.

I found something configuring the plugin in my main.js:
aurelia.use
.standardConfiguration()
.plugin('aurelia-validation')
.plugin('aurelia-dialog', config => {
config.useDefaults();
  // Center automatically (vertical/horizontal) the dialog
  config.cssText += "ux-dialog-container{display: flex;}ux-dialog-container>div{display: flex;flex: 1 1 auto;justify-content: center;align-items: center;}";

})

Hope it will help :)


feat: make keys editable at runtime

Usually I build my docker images via GitHub Actions, and I try to make sure that any env variable like secrets and keys are available at runtime.
Are there any limitations for not letting both keys editable via NUXT_PUBLIC_* runtimeConfigs?

release.yml
name: New Release

on:
  push:
    tags:
      - 'v[0-9]*'

env:
  GHCR_IMAGE: ghcr.io/${{ github.repository }}

jobs:
  create-release:
    name: Create Release
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Create release
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: gh release create "$GITHUB_REF_NAME" --notes "$GITHUB_REF_NAME"

  build-image:
    permissions:
      contents: write
      packages: write
    name: Build Image
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Setup QEMU
        uses: docker/setup-qemu-action@v2

      - name: Setup Docker Buildx
        uses: docker/setup-buildx-action@v2

      - name: Cache Docker layers
        uses: actions/cache@v3
        with:
          path: /tmp/.buildx-cache
          key: ${{ runner.os }}-buildx-${{ github.sha }}
          restore-keys: |
            ${{ runner.os }}-buildx-

      - name: Extract metadata for Docker image
        id: meta
        uses: docker/metadata-action@v4
        with:
          images: ${{ env.GHCR_IMAGE }}
          tags: |
            type=semver,pattern={{version}}
            type=semver,pattern={{major}}.{{minor}}
            type=semver,pattern={{major}}

      - name: Login to GHCR
        uses: docker/login-action@v2
        if: env.GHCR_IMAGE
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

      - name: Build and push
        uses: docker/build-push-action@v4
        with:
          context: .
          file: ./dockerfile.nuxt
          tags: ${{ steps.meta.outputs.tags }}
          labels: ${{ steps.meta.outputs.labels }}
          platforms: linux/amd64
          # platforms: linux/amd64,linux/arm64 ---> Disabled because not used and increased the build time by 10x
          push: true
          cache-from: type=local,src=/tmp/.buildx-cache
          cache-to: type=local,dest=/tmp/.buildx-cache-new

      # Temp fix:
      # https://github.com/docker/build-push-action/issues/252
      # https://github.com/moby/buildkit/issues/1896
      - name: Move cache
        run: |
          rm -rf /tmp/.buildx-cache
          mv /tmp/.buildx-cache-new /tmp/.buildx-cache

Hey @Sandros94 thanks for the message :) Are you referring the api key and publishable key ? If yes the api can't be available in public as it is suppose to be secret. and public variables can be accessible by the final user.

Ok I did test to delete those checks, I imagine that there will be some hydration issues if no keys are provided.
I'm opening a PR to discuss this a bit more.

Oh yeah. We can think of a way to disable this check also. If its something that is useful. Would this help you ?

Hey I have done a PR that should handle the behavior you are expecting. It will be loaded only the first time you will use it. Check the PR. This will be merge this week. It will create a breaking change as we are going to harmonize the api config

Hey I have done a PR that should handle the behavior you are expecting. It will be loaded only the first time you will use it. Check the PR. This will be merge this week. It will create a breaking change as we are going to harmonize the api config

I'll respond in the PRs #19 and #22


Pushing with clasp results in badRequest

Following the video on YouTube "Google Apps Script", after running 'npm run build', 'npx clasp push', results in
message: 'Syntax error: Missing : after property ID. line: 11 file: webpack.config'
line 11 in webpack.config is:
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
At the end of the console it says:
"Pushed x files."
But when I open the Apps Script online, the files have not been updated.

Try npm run deploy
Sent from my iPhone

On Dec 21, 2019, at 11:33 AM, vrendy<EMAIL_ADDRESS>wrote:

Following the video on YouTube "Google Apps Script", after running 'npm run build', 'npx clasp push', results in
message: 'Syntax error: Missing : after property ID. line: 11 file: webpack.config'
line 11 in webpack.config is:
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
At the end of the console it says:
"Pushed x files."
But when I open the Apps Script online, the files have not been updated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

That did it, thanks!


not working on win10 with esp32s

Hi,
I've just installed ampy and it is not working on my setup. I run win10, try to communicate with and old version ESP32. Python version is 3.7. Here is the readout from cmd.exe.
C:\Users\Ivo\AppData\Local\Programs\Python\Python37\Scripts>ampy --port COM3 ls
b'\x1b[0;32mI (396) cpu_start: Pro cpu up.\x1b[0m\r\n\x1b[0;32mI (396) cpu_start: Single core mode\x1b[0m\r\n\x1b[0;32mI (396) heap_init: Initializing. RAM available for dynamic allocation:\x1b[0m\r\n\x1b[0;32mI (399) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM\x1b[0m\r\n\x1b[0;32mI (405) heap_init: At 3FFC5858 len 0001A7A8 (105 KiB): DRAM\x1b[0m\r\n\x1b[0;32mI (412) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM\x1b[0m\r\n\x1b[0;32mI (418) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM\x1b[0m\r\n\x1b[0;32mI (424) heap_init: At 40091B28 len 0000E4D8 (57 KiB): IRAM\x1b[0m\r\n\x1b[0;32mI (431) cpu_start: Pro cpu start user code\x1b[0m\r\n\x1b[0;32mI (225) cpu_start: Starting scheduler on PRO CPU.\x1b[0m\r\nOSError: [Errno 2] ENOENT\r\nMicroPython v1.9.4-241-g14ab81e8 on 2018-07-04; ESP32 module with ESP32\r\nType "help()" for more information.\r\n>>> '
Traceback (most recent call last):
File "C:\Users\Ivo\AppData\Local\Programs\Python\Python37\Scripts\ampy-script.py", line 11, in
load_entry_point('adafruit-ampy==1.0.3', 'console_scripts', 'ampy')()
File "c:\users\ivo\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 722, in call
return self.main(*args, **kwargs)
File "c:\users\ivo\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "c:\users\ivo\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\ivo\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\ivo\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "c:\users\ivo\appdata\local\programs\python\python37\lib\site-packages\ampy\cli.py", line 147, in ls
for f in board_files.ls(directory):
File "c:\users\ivo\appdata\local\programs\python\python37\lib\site-packages\ampy\files.py", line 94, in ls
self._pyboard.enter_raw_repl()
File "c:\users\ivo\appdata\local\programs\python\python37\lib\site-packages\ampy\pyboard.py", line 192, in enter_raw_repl
raise PyboardError('could not enter raw repl')
ampy.pyboard.PyboardError: could not enter raw repl
C:\Users\Ivo\AppData\Local\Programs\Python\Python37\Scripts>

I have found that using the delay parameter for one second (ie. -d 1) helps. Also, I had to revert back to earlier Silicon Labs USB drivers from the current ones (that are described as "CP210x_Universal_Windows_Driver").  The drivers I'm using show up as version "<IP_ADDRESS>1" and dated "19/09/2016". I'm also on Python 3.6.5 so haven't tried with 3.7 yet.


Update NexmoException.cs

Merge this file with the main file. If any help needs help write to me on<EMAIL_ADDRESS>

Hi @ParamGabhawala,
Thank you for opening this PR, unfortunately, it does not meet the threshold of what we consider a valid PR and I am going to close it.

Hi @slorello89
Will I get the swag

Will I get the developer swag
Pls, answer me.
On Tue, 20 Oct 2020 at 00:22, Stephen Lorello<EMAIL_ADDRESS>wrote:

Hi @ParamGabhawala https://github.com/ParamGabhawala,
Thank you for opening this PR, unfortunately, it does not meet the
threshold of what we consider a valid PR and I am going to close it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Vonage/vonage-dotnet-sdk/pull/233#issuecomment-712373999,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQXWK7L3I7676AVAKPD7EXLSLSDHFANCNFSM4SWQW2OQ
.

This PR will not count for the contest. See https://hacktoberfest.digitalocean.com/details for details on the rules of the contest.


Improve gene page search result titles

When searching in google, "pom1" pombase link doesn't even show in the first 4 pages (I didn't look further)....AspGD pom1 is on page 2.
When searching for the sysID ensembl fungi is the top hit....(and second, pombase is 4th)

Can we set the page title to include the product description?
e.g. pom1 - DYRK family cell polarity protein kinase Pom1
To see if this makes us more findable?
50% of our users come in via google searches :-)
The product description does show when mousing over the page when open in a tab, so perhaps the  tag is already set to display this?

That's not good.  I'm confused because the publication pages have a nice description in the Google search results but gene pages don't.  As far as I can tell we're adding the title and header descriptions in the same way in both cases.
Anyway, I found a how-to that suggests adding some extra header metadata to add for Google.  I've added that code.  The logs show when Google visits pombase.org pages so I'll have a look on Monday to see if there are any changes in the search results for gene pages that Google has downloaded over the weekend.

Fab. There seems to be a black box in between adding keywords, meta tags, page titles and what nots to what is actually displayed...
Hopefully this will boost our positioning in the search results (I don’t even see us now unless I include the word pombase in the search) I’m sure we were quite high while at the EBI
It is just strange...how can we not be one of the top hits for a search for a fypo term?

It is just strange...how can we not be one of the top hits for a search for a fypo term?

I wonder if we could arrange for QuickGO, Amigo or Bioportal to link to our term pages?  That would definitely help our Google ranking.

@ValWood @mah11

I don't think we could realy ask QuickGO and GO to link to our term pages. We aren't the ontology maintainer and the don't do this for any other MOD term page.
However, for FYPO I think we definitely could  ask bioportal and OLS
Great detective work Antonia. So  this may partially explain our hits drop.... I wish we knew how many people found us via google search before we migrated...... It is definitely worth optimising this.
I thought Google worked largely by  presenting the link that most people used previously, but do  more used sites generally get additional weighting?
We should be the top hit for any PomBase ID, definitely worth spending some time on. we have almost disappeared....

I don't find PomBAse  pom1 page with a SPAC2F7.03 in the first 4 pages...it seems that gene pages are not recognised at all?

Google retrieved  any1 / SPBC18H10.20c a few hours ago and now the search result doesn't look too bad.  Hopefully things will improve now.

SPAC2F7.03
still doesn't find the PomBase page for me.....

As well as fixing things so that preview site pages redirect to the main site (#1040), the old gene page URLs now redirect to www.pombase.org/gene/...
The old pombase.org gene page URLs looked like:
https://www.pombase.org/spombe/results/SPAC2F7.03c
but we now use www.pombase.org/gene/SPAC2F7.03c etc.
When we switched to the new site I made the old URLs be aliases for the new URLs.  So https://www.pombase.org/spombe/results/SPAC2F7.03c would show a gene page as usual.
I added the alias to support sites like:
http://interactome-cmp.ucsf.edu/pombe2012/modules/genes/SPAC10F6.08C.html
which still use the old URLs.
So the old URLs used to be an alias but now they redirect to the real URLs.  That should help with our Google rankings for gene pages.
Thanks Antonia for the link (https://moz.com/learn/seo/redirection).  I hadn't thought about how the old URLs and the preview sites could make a difference to the site SEO.

Perhaps we can arrange for NCBI to link to the gene pages?
SGD and FlyBase are linked to as the "Primary source" here:
https://www.ncbi.nlm.nih.gov/gene/852457
https://www.ncbi.nlm.nih.gov/gene/?term=CG7895
PomBase should be the primary source for pombe genes, shouldn't it?

For human genes HGNC is the "Primary source".  Ensembl and Vega links are under "See related"

Agreed, I am sure I wrote to the NCBI about this about 6 months ago. Antonia could you try next week with these examples.
And STRING. I mailed them a few times, they didn't reply. They link to Ensembl and don't display  IDs correctly (use a mixture last time I looked). They link to SGD.

Agreed, I am sure I wrote to the NCBI about this about 6 months ago.

Actually I didn't write about this. I wrote about proteins linking to PomBAse transcript IDs.
ENA add these links unfortunately......
But ncbi used to link to PomBAse from genes I'm sure.... anyway need to be added...

Google Search Console was reporting that our pages weren't mobile friendly.  A few days ago I tweaked the font sizes on small screens.  The warning has gone for recently indexed pages.
@Antonialock could you have a quite check on your phone to make sure I haven't made anything worse?  It looks slightly better on my (Android) phone.

check spac17h9.07 before closing.
results improved, but no product line appearing

font size looks ok on my screen....product line still not appearing in search result for the gene I tried

I don't find PomBase pom1 page with a SPAC2F7.03 in the first 4 pages

For me pombase.org is now the fourth result for SPAC2F7.03 and the title looks better.

check spac17h9.07 before closing.

That one is still not good.
We're slowly getting there.

pom1 is number 3 for me now. Need to be above EF ;)
spac17h9.07 is now number 2 for me, after Bahler lab...
Crazy how this works....

in a private browser spac17h9.07  is number 1 before bahlerlab and pom1 number 4 after wikipedia, uniprot and ncbi
fantastic!
The product line shows, and some random text from the gene page, which (I think) is better than the generic text not specific to the gene (although it is good to say that 'we are the authority on pombe').
Don't think the description can get better than this without gene summaries...
thanks!


DO NOT USE THIS PLUGIN Known issues with this utility

I've struggled with this plugin for weeks, and several critical issues were exposed during my attempt. Now I list them as following:

After integrating this plugin into your flutter project, you MUST add the libZSDK_API.a file into your xcode project, or you would not pass the iOS building.
Characters in utf8 encoding can not be printed on iOS, you MUST modify the implementation code under iOS folder. And sadly, this would not be an easy job for non-native devs.
The channel apis were NOT implemented correctly on Android. So, when you call some apis on Android, your app may crash. And codes under onMethodCall function in Printer.java must be updated. This issue is mentioned in #8 .
The result from onPrinterFound callback is NOT reliable. This plugin will return the previously discovered printers when you call discoveryPrinters. So you will notice that when you discovered a printer, it still appears in your found list when you rescan printers event you turn the printer's power off.
Printers may disconnect after several seconds on iOS. This might be a serious bug with the Zebra SDK. So, DO NOT use it on iOS.

According to these issues, I really DO NOT SUGGEST you use this plugin in your flutter app. Trust me, this would be A WASTE OF LIFE if you want to figure out and fix these issues.
And if you really need to print labels with Zebra printers, FIND native devs and use Zebra's official link-os SDK.

Could you please explain how did you add the libZSDK_API.a to your xCode project? Please I'm stuck and I must use this package to interface with zebra printer.


Multiple file extensions when using getMultiFilePath()

Hey, I've seen 2 issues before me, #42 and #32 .
The questions are both closed but I can't seem to find a mention of this feature being added in the changelog.
For clarification, I'm looking to pick multiple files of a pre-defined extension (for example .jpg and .mp4).
Maybe I have missed it somewhere, if so, apologies.

Hi. If you want to pick images or videos you can use FileType.IMAGE or FileType.VIDEO respectively. However, picking both images (jpg) and video (mp4) at the same time isn’t currently supported, for that I suggest you to use FileType.ALL that lets you pick anything and then you can quickly check if any of the picked files are not jpg/mp4.
Thank you for the suggestion.

Thank you for the clarification, I will follow your advice and use FileType.ALL for the time being, I hope to see multiple file extensions implemented in the future. If I may, I would like to suggest the solution discussed in #32 or a delimiter such as 'jpg|mp4' so it doesn't break existing code.
Thank you for the great work.

I will take this in consideration if possible for both platforms.
As a note, I always try to avoid making a feature only available to a specific platform to make the experience as seamlessly as possible. Android, in general, is more flexible and supports more options that iOS, however, it is also more tricky to handle for the available scenarios.
So if sometimes I don't add a requested feature, may be because it isn't supported by one platform even if it's supported by the other.

Moved to #99.

It would be great to define multiple file extensions in combination with the "FileType.CUSTOM" parameter when selecting a single file. Of course you can check the selected file type afterwards, but it would be a better user experience if the user wouldn't even be able to select an unsupported file type in the first place.

@whigger85 thank you for the input, it surely will be added in a future update if possible.


How to Implement Page View with Getx 2.0 Navigation

How I can implement Page View in GetRouterOutlet ??
as you can see GetRouterOutlet take body parameter in scaffold
but PageView need body parameter too
the problem is GetRouterOutlet dnt have child for PageView
Example code :
PageView(
              physics: BouncingScrollPhysics(),
              controller: _homeNavyController,
              onPageChanged: (index) {
                setState(() => _homeNavyIndex = index);
              },
              children: [
                Screen1(),
                Screen2(),
                Screen3(),
              ],
            ),

GetRouterOutlet example code:
GetRouterOutlet(
            initialRoute: Routes.DASHBOARD,
            // anchorRoute: Routes.HOME,
            key: Get.nestedKey(Routes.HOME),
          ),

Getx Version:
Ge: .4.2.4

this is where you are supposed to use GetRouterOutlet.builder

this is where you are supposed to use GetRouterOutlet.builder

I already use GetRouterOutlet.builder
if you look at Example of Nav 2 folder
there are 2 GetRouterOutlet for body
and GetRouterOutlet.Builder on Top of scaffold

can you please provide an example of what you are trying to do ?

as you can see here https://api.flutter.dev/flutter/widgets/PageView-class.html
but I cant do that because the root of my home is pageview and GetRouterOutlet need a body of scaffold
for those who whondering why I cant do that because structure my home take home as placeholder of widget
iam trying to make another root of home and place GetRouterOutlet in that root but cant make it to work (it because its nested)


Merge into SoundScrape?

Hey there!
Great project!
I started something similar for artists on SoundCloud. I was going to write one for Bandcamp and came across what you've been working on.
Would you be interesting in the idea of adding Bandcamp scraping functionality into SoundScrape? It might be easier than having two separate projects. SoundScrape is already a bit further along than BCS and has a pretty good install base.
Would be interested in your thoughts!
Thanks,
Rich

Did this while I was cooking dinner. Burned the shrimp, but works nicely!
Thanks for cracking this nut!


Correctly define int arguments for argparse

Fixes a bug introduced in #8849
type definition format changed between optparse and argparse, and without this fix it fails to build workqueue with the following error:
* The action "build-cms+workqueue+1.1.18.pre1" was not completed successfully because Failed to build workqueue. Log file in /build/amaltaro/w/BUILD/slc7_amd64_gcc630/cms/workqueue/1.1.18.pre1/log. Final lines of the log file:
make -C doc html PROJECT=workqueue
make: Entering directory `/build/amaltaro/w/BUILD/slc7_amd64_gcc630/cms/workqueue/1.1.18.pre1/workqueue/doc'
[ -d workqueue ] || cp -rp wmcore workqueue
python generate_modules.py -f -d workqueue -s rst ${PYTHONPATH%%:*}
Traceback (most recent call last):
File "generate_modules.py", line 289, in <module>
main()
File "generate_modules.py", line 266, in main
help="Maximum depth of submodules to show in the TOC (default=4)", type="int", default=4)
File "/build/amaltaro/w/slc7_amd64_gcc630/external/python/2.7.13/lib/python2.7/argparse.py", line 1299, in add_argument
raise ValueError('%r is not callable' % (type_func,))
ValueError: 'int' is not callable
make: *** [apidoc] Error 1
make: Leaving directory `/build/amaltaro/w/BUILD/slc7_amd64_gcc630/cms/workqueue/1.1.18.pre1/workqueue/doc'
error: command 'make' failed with exit status 2
error: Bad exit status from /build/amaltaro/w/tmp/rpm-tmp.pYeKCb (%build)

1.1.18.pre2 tagged
You're welcome to review this PR though :)


Add TypeScript type declarations

This PR adds and bundles a type declaration file with flexbox-react. This allows others using typescript to use the library out of the box.
I also added a test file for the typings.
The only new file that will be copied to dist/ will be index.d.ts

@nicholasgonzalezsc: Nick this is great, thank you for PR. Quick question: Does this breaks compatibility of any kind for those not using TS? Asking this because I never used it. Other than that, looks awesome!

@nachoaIvarez Nope, it doesn't break any functionality, just adds support for ts. With plain javascript, the file that is imported is main: dist/index.js (package.json), so that doesn't change. The new types: dist/index.d.ts is for typescript to know the shape of index.js as it is compiling and type checking the code that depends on flexbox-react.

@nachoaIvarez Would it be possible to publish a new version, 4.0.3, so that the types are in npm as well?

Awesome, thanks so much!


Trying to run nostr relay in a Raspberry Pi 4

Hi, im trying to run the nostr-relay in a Raspberry Pi 4 running Raspi OS Lite 64 bits. When i run docker build -t nostr-rs-relay . i get this:
Step 2/24 : RUN USER=root cargo new --bin nostr-rs-relay
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in a2d514b107fc
exec /bin/sh: exec format error
The command '/bin/sh -c USER=root cargo new --bin nostr-rs-relay' returned a non-zero code: 1

Is there a way to bypass this? And how? Thanks!!

Sure; the dockerfile uses a hardcoded x86 base image. If you remove the @ and everything following from the FROM lines in the Dockerfile, I bet it will pull down an ARM image.

Thanks!! That seems to work, but now i got this
Step 4/24 : COPY ./Cargo.toml ./Cargo.toml
COPY failed: file not found in build context or excluded by .dockerignore: stat Cargo.toml: file does not exist

I got my RPi4 up and running, and it worked for me.
I've added a script (mk-platform-agnostic-dockerfile.sh) in the master branch that strips off the x86 image digests, to create a platform agnostic Dockerfile.
I've also attached the result which you could run instead of the default Dockerfile:
Dockerfile.any-platform.txt

I've removed the digests from the dockerfile altogether, so this should build more easily now.

thank you! was able to spin up the relay via the Dockerfile with ZERO problems!!


Error creating a user

Terraform Version
$ terraform -v
Terraform v1.3.2
on darwin_arm64

Affected Resource(s)

harness_user

Terraform Configuration Files
Not needed
Panic Output
crash.log
Expected Behavior
A new user was created in the account.
Actual Behavior
I got a memory error in the console.
Steps to Reproduce

terraform apply

Important Factoids
No
References
No

Can you please share the configuration you applied?

This is the main.tf file.
terraform {
  required_version = ">= 0.14.9"

  required_providers {
    harness = {
      source  = "harness/harness"
      version = "~> 0.7"
    }
  }
}

provider "harness" {
  endpoint = "https://app.harness.io/gateway"
}

resource "harness_user" "manuel_morejon" {
  name  = "Manuel Morejon"
  email  =<EMAIL_ADDRESS>}

Any suggestion @rathodmeetsatish ?

@mmorejon you have not provided account_id and api_key in provider config. Also if you use the latest version you will get a proper error message. Please refer to example usage here https://registry.terraform.io/providers/harness/harness/latest/docs to see have to provide provider configs

Hi @rathodmeetsatish .
I'm using environment variables for the account_id and the platform_api_key to configure Harness provider Next Generation.
I updated Harnes provider from version 0.7.1 to 0.9.1, and now I have a different error message:
harness_user.manuel_morejon: Creating...
╷
│ Error: unauthorized

I noted harness_user belongs to the First Generation group. Do I need a second provider for the First Generation too?
If this is the case, how can I configure both providers to use environment values?

to use both first gen and next gen resources add both platform_api_key and api_key
provider "harness" {
endpoint         = "https://app.harness.io/gateway"
account_id       = "...."
platform_api_key = "......"
api_key    = "......"
}
here for platform_api_key please add api key generated in next gen and for api_key please add api key generated in firstgen
to create api key in first gen follow this doc https://docs.harness.io/article/smloyragsm-api-keys#create_an_api_key
to create api key in next gen follow this doc https://docs.harness.io/article/tdoad7xrh9-add-and-manage-api-keys

Thanks a lot for the support. The user was created.


building_msgs: 0.1.18-0 in 'indigo/distribution.yaml' [bloom]

Increasing version of package(s) in repository building_msgs to 0.1.18-0:

upstream repository: https://github.com/rosalfred/building_msgs.git
release repository: https://github.com/rosalfred-release/building_msgs-release.git
distro file: indigo/distribution.yaml
bloom version: 0.5.21
previous version for package: null

building_msgs
* Add changelog
* Contributors: Mickael Gaillard

This is a very generic package name. Could you please rename the package to be something that can identify what the package does from the name. The naming convention is at: http://wiki.ros.org/ROS/Patterns/Conventions#Packages

Reject for new name.
Thank.