outputs of models on the GYAFC corpus

I was wondering if you could release the outputs from both your DualRL model and your baselines for the full test set of the GYAFC corpus, for a better comparison of different models. Considering the privacy issues of the GYAFC dataset, could you show the outputs from different models and hide the inputs (for x->y, only show the y's)?

The full outputs of GYAFC has been uploaded: https://github.com/luofuli/DualRL/tree/master/outputs/GYAFC_Full

Thank you very much!
Do you mean the results in your paper are evaluated using the subset of the test data of GYAFC corpus?

Yes!

Got it! Thanks a lot!


ORA-00972: identifier is too long

Environment
Knex version: 0.21.2
Database + version: oracledb 5.0.0
OS: Windows 10
Hi @atiertant , hope you are doing well.
Bug
1. Expected behavior
While creating that query, the expected behavior would be an output like this
select "name,username,email,password,confirmToken,idAdmin,lastSeenAt,createdAt,updatedAt" from "user" where "name" = 'nicolas' and rownum <= 10

Instead, I'm getting an output like this (as you can see in the runkit example)
select * from (select "name,username,email,password,confirmToken,idAdmin,lastSeenAt,createdAt,updatedAt" from "user" where "name" = 'nicolas') where rownum <= 10

This query is outputed like that, just when I add a where. Before that everything seems to work just fine. But I need the where clause of course.
It's probably my problem for not knowing more about the usage of knex, but I'd appreciate some other workaround.
2. Error message
[Error: select * from (select "name,username,email,password,confirmToken,idAdmin,lastSeenAt,createdAt,updatedAt" from "user" where "name" = 'nicolas') where rownum <= 10 - ORA-00972: identifier is too long] {
  errorNum: 972,
  offset: 22
}

3. Runkit example
https://runkit.com/nicolascalev/5f2da084ac80d9001b6bfccf#

It should be select "name", "username" .... etc
If you split your select fields on a comma then it would work https://runkit.com/kristjantammekivi/5f2e9db0ccc834001a665c73
I don't know why it's wrapping everything in parenthesis and selecting from it though, I assume there's some sort of a oracledb reason for it

@KristjanTammekivi
Thanks man, I tried separating the names in an array and it worked, and yes, I wonder why that is happening.
I'm trying to build a REST api and Knex is going to help with that job a lot.

There was some good oracle reason why the query is wrapped to subquery instead of having just a single query when using .limit(10)


Fix spleen_segmentation_3d_visualization_basic

Fixes #1139 .
Description

Fix bug in validation
Add text to remind opening port 53800 for using AIM UI in notebook
Add license and rearrange cells to follow contributing guidelines

Checks

[x] Avoid including large-size files in the PR.
[x] Clean up long text outputs from code cells in the notebook.
[x] For security purposes, please check the contents and remove any sensitive info such as user names and private key.
[x] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the ./figure folder
[x] Notebook runs automatically ./runner.sh -t "3d_segmentation/spleen_segmentation_3d_visualization_basic.ipynb"

By the way, this notebook runs fine with papermill. We now exclude it from the integration test. Should we try to add it back? @wyli


Will using a function to create an activity or workflow function work?

Will the machinery of cadence have any issue with creating an activity function and workflow function using a function that returns a function like this?
func RunVoxelizationFunc(scheduler task.Scheduler) func(ctx context.Context, simulationID int) (*RunVoxelizationOutput, error) {
	return func(ctx context.Context, simulationID int) (*RunVoxelizationOutput, error) {
		logger.Log.Debug("In RunVoxelization!")
		return nil, cadence.ErrActivityResultPending
	}
}

When I register it I do something like this:
cadence.RegisterActivity(RunVoxelizationFunc(scheduler))

In my workflow I would also create it using a function:
func WorkflowFunc(scheduler task.Scheduler) func(ctx cadence.Context, simulationID int, runSupportOptimization, runDistortionCompensation bool) error {
	return func(ctx cadence.Context, simulationID int, runSupportOptimization, runDistortionCompensation bool) error {
		// Run preproc
		ao := cadence.ActivityOptions{
			ScheduleToStartTimeout: 10 * time.Second,
			StartToCloseTimeout:    5 * time.Second,
			ScheduleToCloseTimeout: 10 * time.Second,
		}
		preprocContext := cadence.WithActivityOptions(ctx, ao)

		var runPreprocOutput activities.RunVoxelizationOutput
		return cadence.ExecuteActivity(preprocContext, activities.RunVoxelizationFunc(scheduler), simulationID).Get(ctx, &runPreprocOutput)
	}
}

The reason I'm asking is I want to be able to "inject" the task.Scheduler interface so I can mock it during unit tests.

Have you looked at Unit Test Support already provided by Cadence GO client?  This allows you to easily write unit test for your workflow logic.  Here is an example:
type UnitTestSuite struct {
	suite.Suite
	cadence.WorkflowTestSuite
}

func TestUnitTestSuite(t *testing.T) {
	suite.Run(t, new(UnitTestSuite))
}

func (s *UnitTestSuite) TestWorkflowWithMockActivities() {
	env := s.NewTestWorkflowEnvironment()
	env.OnActivity(RunVoxelizationActivity, mock.Anything).Return(result, nil).Once()

	env.ExecuteWorkflow(Workflow, "input")

	s.True(env.IsWorkflowCompleted())
	s.NoError(env.GetWorkflowError())
	env.AssertExpectations(s.T())
}

The supported mechanism to inject external dependencies into activities is by providing root context object through cadence WorkerOptions. Something like:
rootCtx := context.WithValue(context.Background(), schedulerKey, scheduler)
workerOptions := cadence.WorkerOptions{
...
BackgroundActivityContext: rootCtx,
}
worker := cadence.NewWorker(
service,
domain,
"foo",
workerOptions)
Then in the activity code:
func RunVoxelizationFunc(ctx context.Context, simulationID int) (*RunVoxelizationOutput, error) {
scheduler := ctx.Value(schedulerKey).(task.Scheduler)
logger.Log.Debugf("In RunVoxelization with :%v!", scheduler)
return nil, cadence.ErrActivityResultPending
}

The context based mechanism also works fine with the unit testing framework Samar referenced above. Just use
	env := s.NewTestWorkflowEnvironment()
        ...
        workerOptions := cadence.WorkerOptions{
            ...
            BackgroundActivityContext: rootCtx,
        }
        env.SetWorkerOptions(workerOptions)

to inject rootCtx to activities under a unit test.

@mfateev Thanks!  That makes sense.  @samarabbas Yep, we have been doing TDD while we have been building out our workflows.  Very handy testing library you guys have created!  Much easier than testing old SWF workflows by manually creating events.


[BUG] Reply message always ephemeral

Related version: 4.0.0-alpha.1
The reply message is always ephemeral, even when it's not set (default false).

The ephemeral field had a true default value in the @Interaction annotation, temp workaround would be to explicitly set it to false.
Fixed with c881798, will be deployed with 4.0.0-alpha.2


Replaces device image with pure CSS

https://github.com/marvelapp/devices.css

Fixed at https://github.com/wedeploy/demo-wechat/commit/694bcd6e0b35823893ad249a4bab58b061167f5e


feat: Steps/script for committing PyFluent in Fluent

I also had to revert #3025's changes as the package version cannot be introspected from pyproject.toml unless the package is "installed", e.g. when Fluent loads PyFluent from a copied directory outside the installation area.

I have added a top-level folder devel where we can include development notes, scripts etc.

Thank you @mkundu1, for the detailed steps in the .md file.


Clarified how Deny with NotResource Works In The Example

Clarified how Deny with NotResource Works In The Example
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The "clarification" is incorrect and this PR should be rejected.  The policy is a deny on s3:* and therefore only impacts S3. It does not impact other services such as "EC2, SQS, etc".

On that same page it says:
When using NotResource, you should keep in mind that resources specified in this element are the only resources that are limited. This, in turn, means that all of the resources, including the resources in all other services, that are not listed are allowed if you use the Allow effect, or are denied if you use the Deny effect.
It says " including the resources in all other services".  So, not only are the other unspecified S3 resources denied, but the resources "in all other services" are denied.
Is that an error or is my clarification erroneous?

I think the text you mentioned in that most recent comment needs clarification.  For example, I tested by having a user with AdministratorAccess and then giving them that policy. I was able to run aws iam list-users and aws ec2 describe-instances but not aws s3 ls.
I then changed the policy on my user to:
{
    "Version": "2012-10-17",
    "Statement": {
        "Effect": "Deny",
        "Action": "*",
        "NotResource": [
            "arn:aws:s3:::HRBucket/Payroll",
            "arn:aws:s3:::HRBucket/Payroll/*"
        ]
    }
}

Note the action is now *.  With this policy I am now denied from calling aws iam list-users, aws ec2 describe-instances, or aws s3 ls.

Ok. I'll make another change to the page. Thanks @0xdabbad00 for the useful feedback. Please look for my followup pull.


Create specs for the following actions creators

resetDetails
closeDetails
openDetails

I believe this was done in another pr! :/

Coverage increased (+1.04%) to 74.74% when pulling be525e5b8632b3bc949c68f6d6acead491a2d7f6 on walkerrandolphsmith:develop into 6369208a6c87d58890057e5a8742f04f18646dbd on vutran:develop.

Thanks for the PR. This has been done in #82. Will try to get some more issues up for #hacktoberfest. 👍

Awesome project. I currently use alfred. I have also created two alfred plugins.
https://github.com/walkerrandolphsmith/VersionOne.alfred.workflow
https://github.com/walkerrandolphsmith/Continuum.alfred.workflow
I would love to get them ported to JavaScript and on dext. Can you point me in the right direction?

Sure. Join the Gitter channel and message me there.


Use tokio::test instead of dummy_waker in tests

Currently wasmtime's async tests use a mixture of #[tokio::test] and
dummy_waker. To be consistent this tries to move all tests possible to
#[tokio::test] and just a two need to keep using dummy_waker (no
renamed to noop_waker) due to what they're testing.

ping @peterhuene, would you be up for taking a look at this?

Sorry, I missed this in my github notification spam, reviewing now.


How to enable FEM for nRF21540DK

Hello,
I've successfully built the firmware, and I am running otbr docker container. I can connect other devices to the thread network.
However, I am running on a nrf21540DK and I am seeing low RSSI values for my connection. I'm sure this is because of the FEM configuration.
I don't see any documentation for running on the nRF21540DK or for enabling the FEM.

I have tried enabling the PLATFORM_FEM_ENABLE_DEFAULT_CONFIG define in the platform-config.h for the nrf52840.

changed the PA/LNA/PDN pins in fem.c and nrf_fem_config.h to 19/22/23 respectively. I believe I have the correct pins, but I'm not sure.

Can anyone help me out here?

Hello @FHFS
Support for nRF21540 is available through our official SDK called nRF Connect SDK.
OpenThread is part of the SDK and you can create both RCP or full-Thread type of devices.
Here you can find the instruction on how to enable nRF21540 FEM for any of the available samples or your custom application.
Low RSSI is expected on nRF21540 on vanilla OpenThread repository as there is no full support for this variant of FEM there.


Added missing require block

NB, composer doesn't even run on php 5.2 so there'd be no point in allowing it in the version constraint.
Also, I think it's irresponsible to support php 5.2 given it's oel and there are known vulnerabilities

http://blog.ircmaxell.com/2014/12/on-php-version-requirements.html
http://blog.ircmaxell.com/2014/12/php-install-statistics.html

Ping.

Thanks for the PR. I haven't had a chance to look at the links. I'll do so as soon as I resolve the issues that I've started working on.

Ping @erusev.

Also, I think it's irresponsible to support php 5.2 given it's oel and there are known vulnerabilities.

When confronted with the fact that Parsedown doesn't support their version of php, some people would perhaps upgrade, but others might not. The could instead consider using another parser instead or even another markup language (e.g. bbcode). The restrictions might promote newer versions of php, but along with that it might do the opposite for the adoption of Markdown. I do understand the importance of upgrading php and I might consider adding a footnote that encourages that, but I'm not completely convinced that forcing people to upgrade is a solution that I'd feel comfortable with.

People using php 5.2 should be totally ashamed.

@erusev I agree with your arguments, I just want to add that this PR would not stop anyone from using it on PHP 5.2.

Can we get this merged then? Composer itself requires php 5.3.2, so I don't see what the issue is?

specifying the php version in a composer.json does not really make sense if parsedowns version requirement is lower than composers...

Why would that be. It would be incorrect for us not to include a version constraint on php.

then the correct one would be >=5.2


Profil pict margin not hidden

If their is not profil picture, the margin is still here and put company logo to the down.


Merge lifebox-release branch to fix go get

go get go get github.com/lifebox-healthcare/golang-fhir-models/fhir-models from other modules is bringing in v0.2.2 instead of the latest v0.3.0.
This may be because v0.2.2 was tagged from the lifebox-releases branch and v0.3.0 from master, so v0.2.2 contains some commits that v0.3.0 doesn't. Hopefully merging lifebox-releases into master and then tagging another release from master will make go get go get github.com/lifebox-healthcare/golang-fhir-models/fhir-models bring in the latest master release.

This didn't help. I think the problem is that there needs to be a fhir-models/v0.3.x tag as well as a v0.3.x tag:
francis@saturn ~/dev/lifebox/go/src/github.com/lifebox-healthcare/golang-fhir-models (b74e9bf) $ git tag
fhir-models/v0.1.0
fhir-models/v0.2.0
fhir-models/v0.2.2
v0.1.0
v0.2.0
v0.2.1
v0.2.2
v0.3.0
v0.3.1

Yes, adding a fhir-models/v0.3.1 tag fixed it.


#34 - Dynamic Media Download Modal

Replaces #171 is some commits did not make it through w that.

@godanny86 think you reviewed the replaced one


Create payment_others_no

A first try to let iD support payment:others=no to show that the list of all payment methods accepted is complete, see https://github.com/openstreetmap/iD/issues/7035

Thanks for your interest, @Lukas458, but the issue has already been closed. We really don't have a good way of supporting this type of data in iD right now :/

hmm okay, it's bad to hear that but of course, I will accept it.


Windows 10 plz?

Currently the build configuration for this project doesn't work in Windows 10.
Any chance you would be willing to assist in changing that?
:) :) :)
I'll give you 203742893 internets in return.

Hi,
I don't have a windows system to develop and test on, which has prevented me from getting this to work on windows. I'm happy to merge in a pull request with fixes for building and running there.


Project Update: MetaMask

first launch: approx February 2016 as web3-injecting plugin and id mgmt
status: work in progress
channels:

website
github
twitter

Entry updated.

@jorisbontje thanks :+1:


remove redudant azure-spring-cloud jms

We already have one integration in Spring Boot.

We already have one integration in Spring Boot.

@saragluna, I'm going to approve this but I'm not sure about your comment. I don't see how there is already one when you're removing the external dependency (org.apache.qpid:qpid-jms-client) and its only references. Is this transitively being pulled in?

@JimSuplizio yes, the qpid-jms-client is now transitively pulled in. Check these:
https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/spring/azure-spring-boot-starter-servicebus-jms/pom.xml#L43
https://repo1.maven.org/maven2/com/microsoft/azure/azure-servicebus-jms/0.0.4/azure-servicebus-jms-0.0.4.pom


Issues with password

Setting up the Deliverfile, I encountered the following error. It appeared after I entered the the wrong iTunes Connect credentials (I was asked wether I wanted to reenter my credentials, which I answered with yes).
You will have to re-run the recent command to use the new username/password.
DEBUG [2015-02-11 11:15:12.40]: [Transporter Output]: DBG-X: The error code is: -20101
FATAL [2015-02-11 11:15:12.40]: Transporter transfer failed.
WARN [2015-02-11 11:15:12.40]:
ERROR [2015-02-11 11:15:12.40]: Your Apple ID or password was entered incorrectly. (-20101)
FATAL [2015-02-11 11:15:12.40]: Return status of iTunes Transporter was 1: Your Apple ID or password was entered incorrectly. (-20101)
ERROR [2015-02-11 11:15:12.40]: Your Apple ID or password was entered incorrectly. (-20101)
Return status of iTunes Transporter was 1: Your Apple ID or password was entered incorrectly. (-20101)
FATAL [2015-02-11 11:15:12.40]: Could not download metadata from iTunes Connect. Do you have special characters in your password (Like ' or ")?
FATAL [2015-02-11 11:15:12.40]: Error occured with the setup program! Reverting changes now!
INFO [2015-02-11 11:15:12.40]: Deleting the 'fastlane' folder

/usr/local/lib/ruby/gems/2.2.0/gems/deliver-0.7.6/lib/deliver/app_metadata.rb:302:in `read': No such file or directory @ rb_sysopen - /tmp/527216534.itmsp//metadata.xml (Errno::ENOENT)
	from /usr/local/lib/ruby/gems/2.2.0/gems/deliver-0.7.6/lib/deliver/app_metadata.rb:302:in `parse_package'
	from /usr/local/lib/ruby/gems/2.2.0/gems/deliver-0.7.6/lib/deliver/app_metadata.rb:66:in `initialize'
	from /usr/local/lib/ruby/gems/2.2.0/gems/deliver-0.7.6/lib/deliver/app.rb:113:in `new'
	from /usr/local/lib/ruby/gems/2.2.0/gems/deliver-0.7.6/lib/deliver/app.rb:113:in `metadata'
	from /usr/local/lib/ruby/gems/2.2.0/gems/deliver-0.7.6/lib/deliver/deliverfile/deliverfile_creator.rb:59:in `create_based_on_identifier'
	from /usr/local/lib/ruby/gems/2.2.0/gems/deliver-0.7.6/lib/deliver/deliverfile/deliverfile_creator.rb:30:in `create'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-0.1.7/lib/fastlane/setup.rb:82:in `ask_to_enable_other_tools'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-0.1.7/lib/fastlane/setup.rb:17:in `run'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-0.1.7/bin/fastlane:44:in `block (2 levels) in run'
	from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.2.1/lib/commander/command.rb:180:in `call'
	from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.2.1/lib/commander/command.rb:180:in `call'
	from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.2.1/lib/commander/command.rb:155:in `run'
	from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.2.1/lib/commander/runner.rb:421:in `run_active_command'
	from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.2.1/lib/commander/runner.rb:81:in `run!'
	from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.2.1/lib/commander/delegates.rb:8:in `run!'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-0.1.7/bin/fastlane:59:in `run'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-0.1.7/bin/fastlane:63:in `<top (required)>'
	from /usr/local/bin/fastlane:23:in `load'
	from /usr/local/bin/fastlane:23:in `<main>'

I tried it again and copied the password from my password manager to make sure that it is correct. Same error. Probably related to #9, although my password doesn't start with a dash (and it doesn't include quotation marks).

Thanks, I'll take a look into it. Since you want to set up deliver, can you start by only running deliver init and see if you run into the same problem?

Thanks for the quick reply. Running deliver init produces the same error. So this issue should be moved to the deliver project.

Okay. So this has to do with your password. This is still a pain and there are some issues about this already: https://github.com/krausefx/deliver/issues?q=password
I haven't found a good solution to make it work :disappointed:

Oh, I see. So having a bad password is actually good ;-)

Can confirm.  Having special characters in password is leading to this error. Alpha-numeric password works fine.

+1 Also, having this issue with a password that contains the following non-alphanumeric chars: [?{,$=+(

I'll close the issue as duplicate of https://github.com/KrauseFx/deliver/issues/79 in the deliver branch. Sorry about the hassles :disappointed:

We just pushed a new release https://github.com/fastlane/fastlane_core/releases/tag/0.36.4
Could you give it a try by updating using
sudo gem update fastlane_core`

or bundle update if you're using bundler
Let me know if that solves your problem :+1:


fhandeler incorrect filename check

I was trying to replicate the short example/tutorial.
When I run the adaptive_run.collect_initial_data(init_states, n_steps=traj_len, n_repeats=1) snipped I get the following error:

File ././round_0/./round_0/villin_traj_0_repeat_0.dcd should exist but was not found

I have done some debugging, and it seems an issue with list_all_files() from within FileHandler object. Concretely, line 75 of FileHandler.py for fname in self.files[subdir]:  where fname returns the FULL path, and this cause an error when joining it with self.root and subdir.
E.g:

self.root  ->  './'
self.subdirs -> ['./round_0']
self.files ->  {'./round_0': ['./round_0/villin_traj_0_repeat_0.dcd']}

and this make the output of list_all_files() returns:

['././round_0/./round_0/villin_traj_0_repeat_0.dcd']

I solve it modifying the function list_all_files() to:
    def list_all_files(self):
        """List all trajectory files handled by this object.

        :return: list.
            List of trajectory filenames.
        """
        filenames = []
        for subdir in self.subdirs:
            for fname in self.files[subdir]:
                filenames.append(fname)

        return filenames

Let me know if something is not clear and I will provide further details.
Victor Montal

Thank you for pointing this out! I have edited the function as you proposed. This should have fixed the problem.


Update from rails 5.2.1 to 5.2.2

This is a patch-level release which fixes some bugs from Rails.
Moreover, some gems have also been updated as a side-effect.
Signed-off-by: Miquel Sabaté Solà<EMAIL_ADDRESS>

The backport was not possible with a mere cherry-pick, since v2.4 is based on Rails 4, not Rails 5. So I've created #2069, which is basically the same as this same PR, but with Rails 4 instead of Rails 5.


Update EDNS0_UL to draft-sekar-dns-ul-02

This is a breaking change as it adds a new field to EDNS0_UL. I'd guess there's little to no usage of this option in the wild so it probably won't impact anyone.
The new format is described in https://tools.ietf.org/html/draft-sekar-dns-ul-02#section-4.
Fixes #869.

Codecov Report

Merging #1028 into master will increase coverage by 0.12%.
The diff coverage is 78.57%.

@@            Coverage Diff             @@
##           master    #1028      +/-   ##
==========================================
+ Coverage   54.79%   54.92%   +0.12%
==========================================
  Files          41       41
  Lines        9856     9866      +10
==========================================
+ Hits         5401     5419      +18
+ Misses       3432     3424       -8
  Partials     1023     1023

Impacted Files
Coverage Δ

edns.go
27.74% <78.57%> (+4.74%)
:arrow_up:

server.go
67.67% <0%> (+0.27%)
: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 40eab7a...da672fe. Read the comment docs.


please change your document

I ues you example, like the first example, I import this import 'package:flutter_screenutil/flutter_screenutil.dart';
but I have some error
The method 'ScreenUtilInit' isn't defined for the type 'MyApp'.
Try correcting the name to the name of an existing method, or defining a method named 'ScreenUtilInit'

all code
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import './pages/index_page.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: Size(750, 1334),
      allowFontScaling: false,
      child: MaterialApp(
        title: "show text",
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          primaryColor: Colors.pink,
        ),
        home: IndexPage()
      ),
    );
  }
}

Import this one
import 'package:flutter_screenutil/screenutil_init.dart';

I have meet same problem

import 'package:flutter_screenutil/flutter_screenutil.dart';

which version?


Add container ID as a meta label when utilizing Pod service discovery

Proposal
Our particular use case requires that we know the container ID associated with Pod targets. Currently, we utilize a separate process to lookup the container ID using the __meta_kubernetes_pod_uid and __meta_kubernetes_pod_container_name meta labels from Pod targets.
For simplicity's sake, we'd prefer if the container ID were already included in the meta labels so that we don't have to do the extra lookup. Frankly, I don't know if access to the container ID would be useful for other use cases. I don't think this should have an effect on the number of timeseries unless the new meta label is used i.e. relabeled.
The container ID already exists in the Status->(Init)ContainerStatuses[]->ContainerID field of the Pod object retrieved via the informer so there's no extra querying needed.

I opened a PR for this at https://github.com/prometheus/prometheus/pull/11844.

What should happen when a pod has more than one container?

What should happen when a pod has more than one container?

The same thing that happens today, a target is created for each container in the pod. If ports are defined for the container, then a target is created for each port per container.

PR has been merged, thanks!


Error is clear on which line it caused the issue

Describe the bug
Error didn't tell much, such as which line is the root cause
To Reproduce
Steps to reproduce the behavior:

oasgraph  xyz.json
error

$oasgraph xyz.json
(node:5994) ExperimentalWarning: The http2 module is an experimental API.
OASGraph creation event error:  Invalid type array for format uri

Expected behavior
A clear and concise description of which line caused this error

Do you still need help with this issue? Otherwise, I will close the issue.


chore: fix github action warning

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (40c8e07) 58.74% compared to head (681c717) 58.70%.
Report is 8 commits behind head on master.

Additional details and impacted files

@@             Coverage Diff              @@
##             master    #5737      +/-   ##
============================================
- Coverage     58.74%   58.70%   -0.04%
+ Complexity    27821    27806      -15
============================================
  Files          1333     1333
  Lines        127830   127829       -1
  Branches      24117    24114       -3
============================================
- Hits          75091    75048      -43
- Misses        43389    43435      +46
+ Partials       9350     9346       -4

see 10 files with indirect coverage changes

Continue to review full report in Codecov by Sentry.

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


Escape more identifiers, including ISSN

Closes https://github.com/kermitt2/grobid/issues/848

Thank you @bnewbold for these fixes and the tests.
I will check other TEI serialization pieces for the same possible issue.


Jetifier "partially migrated" warning on Android build

Getting this warning when building Android app.
I am using just_audio package, but I belive the warning is coming from audio_session.

WARNING: [Processor] Library 'C:\Users\Username.gradle\caches\modules-2\files-2.1\androidx.media2\media2-session\1.2.0\e110e7db678fbfc107af48fe6110e3cc713f4564\media2-session-1.2.0.aar' contains references to both AndroidX
and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
Example of androidX reference: 'androidx/media2/session/MediaBrowser$Builder'
Example of support library reference: 'android/support/v4/media/session/MediaSessionCompat$Token'

Not sure if this is related, but I am also getting this error from the Google Play Store testing devices

Native crash of /system/bin/audioserver

Flutter Doctor output below:
[√] Flutter (Channel stable, 3.7.3, on Microsoft Windows [Version 10.0.19045.2546], locale en-US)
    • Flutter version 3.7.3 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision<PHONE_NUMBER> (2 days ago), 2023-02-08 15:46:04 -0800
    • Engine revision 248290d6d5
    • Dart version 2.19.2
    • DevTools version 2.20.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at C:\Users\userName\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.17)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    • Visual Studio Build Tools 2019 version 16.11.32630.194
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[√] VS Code (version 1.75.1)
    • VS Code at C:\Users\userName\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.58.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.2546]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 108.0.5359.125
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 109.0.1518.78

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Yes, that's a known issue with AndroidX which last I checked they haven't fixed yet. Although they say it is harmless.

Im getting the same issue and after the warning I got the following error.. any idea?
Codemagic Deploy Output
Failed Step: Build AAB with Flutter
Running "flutter pub get" in clone...

WARNING: [Processor] Library '/Users/builder/.gradle/caches/modules-2/files-2.1/androidx.media2/media2-session/1.2.0/e110e7db678fbfc107af48fe6110e3cc713f4564/media2-session-1.2.0.aar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
Example of androidX reference: 'androidx/media2/session/MediaBrowser$Builder'
Example of support library reference: 'android/support/v4/media/session/MediaSessionCompat$Token'
FAILURE: Build failed with an exception.

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

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk8-1.5.30 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30)
Duplicate class kotlin.internal.jdk8.JDK8PlatformImplementations found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk8-1.5.30 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30)
Duplicate class kotlin.random.jdk8.PlatformThreadLocalRandom found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk8-1.5.30 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30)
Duplicate class kotlin.streams.jdk8.StreamsKt found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk8-1.5.30 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30)
Duplicate class kotlin.streams.jdk8.StreamsKt$asSequence$$inlined$Sequence$1 found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk8-1.5.30 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30)
Duplicate class kotlin.streams.jdk8.StreamsKt$asSequence$$inlined$Sequence$2 found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk8-1.5.30 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30)
Duplicate class kotlin.streams.jdk8.StreamsKt$asSequence$$inlined$Sequence$3 found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk8-1.5.30 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30)
Duplicate class kotlin.streams.jdk8.StreamsKt$asSequence$$inlined$Sequence$4 found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk8-1.5.30 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30)
Duplicate class kotlin.text.jdk8.RegexExtensionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk8-1.5.30 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30)
Duplicate class kotlin.time.jdk8.DurationConversionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk8-1.5.30 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30)

 Go to the documentation to learn how to [Fix dependency resolution errors](https://app.flutterflow.io/d.android.com/r/tools/classpath-sync-errors).

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 2m 38s
Running Gradle task 'bundleRelease'...                            159.2s
Gradle task bundleRelease failed with exit code 1
Build failed :|
Step 7 script Build AAB with Flutter exited with status code 1

@fuzzball1980 why do you think this is an issue with audio_session? According to your dependencies, it looks like you're not even using this plugin, and the error message doesn't look like it has anything to do with audio_session either.

@ryanheise that is strange but I believe i was modifiying the project to remove audio_session and just_audio to check if the error persisted and that is why there are no dependencies (my bad) but seems like gradle keep the library media2-session-1.2.0.aar in the cache and that library is added as a part of audio_session right?
Regarding if that warning is producing the real error on jetifier I dont really know, I will have to check clearing the cache on gradle first.
I will be back asap with the result.
thanks!

Do you have any results after clearing the cache?


Add cookbook patterns

Add patterns to cookbook:

Dynamic data sources
Factory parameterization
Advanced parameters
Keys in stores
Aggregation windows
Subgraph entity changes

Are we good? I'd love to merge this :)

I'm good to merge.

@maoueh any further comments?


Integrate profile for book borrow

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


Wrong highlight when using inline dtd in xml document

When trying to highlight following xml, the ]> at the end of DOCTYPE gets highlighted as normal text.
Possible because, in dtd the ELEMENT does not have a closing /.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hello [<!ELEMENT hello (#PCDATA)>]>
<hello>Hello Word!</hello>

Using:
from pygments import highlight
from pygments.lexers import XmlLexer
from pygments.formatters import HtmlFormatter

code = '<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE hello [<!ELEMENT hello (#PCDATA)>]><hello>Hello Word!</hello>'
print(hightlight(code, XmlLexer(), HtmlFormatter()))

Results in:

https://pygments.org/demo/?lexer=xml&style=default&formatter=html&code=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"%3F>
<!DOCTYPE+hello+[<!ELEMENT+hello+(%23PCDATA)>]>
<hello>Hello+Word!<%2Fhello>

Using the raw formatter makes this even clearer:
Token.Comment.Preproc   '<?xml version="1.0" encoding="UTF-8"?>'
Token.Text.Whitespace   '\n'
Token.Comment.Preproc   '<!DOCTYPE hello [<!ELEMENT hello (#PCDATA)>'
Token.Text      ']>'
Token.Text.Whitespace   '\n'
Token.Name.Tag  '<hello'
...

Which leads to the following on line 219 in the current version of pygments.lexers.html.XmlLexer:
('<![^>]*>', Comment.Preproc),

This will treat the first '>' as the end of the directive, giving the observed result.
There is a nice DTD lexer included in the same file, and it would be interesting to see if it is feasible to get the two lexers working together.

If the DTD lexer can handle that content, you can use using(DtdLexer) to invoke it for a matching group.

Thanks!  I'll look into it.

Had a glance at using, and it seems to rely on the whole expression being processed as part of another language to be reconised by a regex first.  This is slightly problematic, as the DTD parser needs to be able to handle nested "[...]" and "<...>", which go beyond the capacity of regular expressions into the domain of context free languages (it would be easy if ']' or '>' could not be part of a DTD, or if there were not contexts like strings in which unpaired delimiters could legitamately occur).
The problem is by no means impossible to solve, and I can already think of a couple of solutions, it's just finding the one that is the least ugly for the moment.  One option would be to set things up using a delegating lexer approach, copying just enough of the functionality of the DTD lexer to the Xml lexer to handle matching square brackets (taking into account things like brackets embedded in strings).  That is probably the cleanest approach.
Anyway, I'll get back to this when I have a bit more time.

The commit referred to above is very much not ready for inclusion into anything; it was a result of me messing around with the code while avoiding work on something else.    I think that it provides a valid approach to solving the problem, and it could easily be turned into a proper fix.  I will work on it later, if nobody else does :)

Yes, DelegatingLexer is the next step of "escalation" if using doesn't do the trick :)

I finally looked up the examples that I recalled showing [...] in a DTD to put them in a test.  I found several in the DTDs for various versions of HTML.  They all occur in strings, comment sections, either standalone or in definitions (--...--), or in constructs like " ... ".  My tentative solution involving a simple context-free sublanguage may be neither necessary nor (in its current form) sufficient.  I don't anticipate many cases of nested DOCTYPE declarations, which is what I think I was considering when I decided that inline DTDs required at least basic context free parsing.  Anyway, back to what I shold be working on.

If anyone has any comment on PR #2810, or any idea on why regexlint might be raising an exception when processing the modified lexers, I'd be glad for any feedback.  I have considered moving this out of draft mode, but really don't want to while it is still producing errors on the automated testing.  It's just that it looks very much like another bug in the tools used for testing that has been triggered by something in my code.  I can think of things to improve the performance of the code in the presence of invalid input, but I don't think that has anything to do with why the linter is crashing.

Without looking further into it, maybe it's a bug in regrxlint handling the (?i:doctype) expression, I have never seen it used in pygments. It's also not needed, you can use (?i) at the start of the expression.

Thanks.  I'll look into it.  I've never used regexlint before.

Thanks again.  The bug was, as suggested, triggered by the use of the "(?i:...)" construct.  I used it out of habit, and will try to avoid doing so in the future.


TCP error - too many open files

Describe the bug
Hornet panic -> Node crash's
Environment information:

OS: Ubuntu 18.04
RAM: 4 GB
Cores: 2 Cores
Type: VPS
HORNET version 0.2.1

Additional context

uptime: about 8 hours
VPS is only running hornet nothing else
4 neighbors
Panic occured after spam

Logs:
TCP error: accept tcp [::]:15600: accept4: too many open files Dec 14 13:56:22 Ubuntu-Hornet hornet[7493]: message repeated 20754 times: [ TCP error: accept tcp [::]:15600: accept4: too many open files]
Dec 14 13:56:22 Ubuntu-Hornet hornet[7493]: panic: runtime error: invalid memory address or nil pointer dereference
 Dec 14 13:56:22 Ubuntu-Hornet hornet[7493]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x967c92]

Is there any way you can reproduce this error?

Had this Error just once. It happend after i spammed the node for a while. Spammed it again several times but it didn't show up again.

I will close this issue for now


[SPARK-27831][FOLLOW-UP][BUILD][test-maven] Verify master build error

What changes were proposed in this pull request?
It seems the master build failures related to #24695. I have checked 6407, 6402, 6393 and 6394. all throws:
===== FINISHED o.a.s.sql.hive.thriftserver.HiveThriftBinaryServerSuite: 'test add jar' =====

*** RUN ABORTED ***
  java.lang.NoClassDefFoundError: org/apache/hadoop/hive/contrib/udaf/example/UDAFExampleMax
  at org.apache.spark.sql.hive.test.HiveTestUtils$.<init>(HiveTestUtils.scala:28)
  at org.apache.spark.sql.hive.test.HiveTestUtils$.<clinit>(HiveTestUtils.scala)
  ...

How was this patch tested?
N/A

@srowen It seems related to #24695. Let's verify and fix it.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/11219/
Test PASSed.

Test build #105967 has started for PR 24744 at commit 225ffa0.

The error looks like that. Why don't you test locally?

Test build #105967 has finished for PR 24744 at commit 225ffa0.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/105967/
Test FAILed.


don't make a memory thread on mobile

if either user is only online on mobile, default the thread option to false

I can do this tomorrow potentially

I forgot I was assigned lmao


Add pin command

Pin pip packages version to a file

based on #49
will be rebased on master once #49 is merged

rebased on master as https://github.com/mila-iqia/milabench/pull/49 is merged


bug solved

- What I did
I created a new file _index.md and delete _index.html
- How I did it
just by applied logic and comparing both files
- How to verify it
I currently don't know
- Description for the changelog
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->

@nik132-eng I don't understand what bug this PR is supposed to solve.


Mac OS X support [phab:T3]

Created by schroederc at 2015-01-22 21:56:13:

cbrewbaker wrote at 2015-01-31 17:47:04:
The third party binaries seem to be incompatible with OS X. I symlinked in my own node and ninja. I gave up for the morning with the yak shave of compiling rapdjson from source.

cbrewbaker wrote at 2015-01-31 18:15:44:
The lein build of the client worked fine.  The next step not so much:
Chads-MacBook-Pro:kythe cbrewbaker$ ./campfire run //kythe/go/serving/xrefs/tools:xrefs_server   --listen localhost:8080 --graphstore .kythe_graphstore
[10/60] protoc_go //kythe/proto:storage_proto
FAILED: rm -rf campfire-out/gen/go/src/kythe/proto/storage_proto && mkdir -p campfire-out/gen/go/src/kythe/proto/storage_proto && third_party/protobuf/bin/protoc --plugin=third_party/protobuf/bin/protoc-gen-go --go_out=import_path=kythe/proto/storage_proto,Mkythe/proto/storage.proto=kythe/proto/storage_proto:campfire-out/gen/go/src/kythe/proto/storage_proto kythe/proto/storage.proto && find campfire-out/gen/go/src/kythe/proto/storage_proto -type f -name '.go' -exec mv -f {} campfire-out/gen/go/src/kythe/proto/storage_proto ';' && go tool 6g -p kythe/proto/storage_proto -complete -pack -o campfire-out/go/pkg/linux_amd64/kythe/proto/storage_proto.a -I campfire-out/gen/go/src/kythe/proto/storage_proto -I campfire-out/go/pkg/linux_amd64/ $(ls -1 campfire-out/gen/go/src/kythe/proto/storage_proto/.go)
/bin/sh: third_party/protobuf/bin/protoc: cannot execute binary file
[10/60] protoc_go //kythe/proto:xref_proto
FAILED: rm -rf campfire-out/gen/go/src/kythe/proto/xref_proto && mkdir -p campfire-out/gen/go/src/kythe/proto/xref_proto && third_party/protobuf/bin/protoc --plugin=third_party/protobuf/bin/protoc-gen-go --go_out=import_path=kythe/proto/xref_proto,Mkythe/proto/xref.proto=kythe/proto/xref_proto:campfire-out/gen/go/src/kythe/proto/xref_proto kythe/proto/xref.proto && find campfire-out/gen/go/src/kythe/proto/xref_proto -type f -name '.go' -exec mv -f {} campfire-out/gen/go/src/kythe/proto/xref_proto ';' && go tool 6g -p kythe/proto/xref_proto -complete -pack -o campfire-out/go/pkg/linux_amd64/kythe/proto/xref_proto.a -I campfire-out/gen/go/src/kythe/proto/xref_proto -I campfire-out/go/pkg/linux_amd64/ $(ls -1 campfire-out/gen/go/src/kythe/proto/xref_proto/.go)
/bin/sh: third_party/protobuf/bin/protoc: cannot execute binary file
[10/60] cpp_compile third_party/leveldb/port/port_posix.cc
FAILED: clang++ -c third_party/leveldb/port/port_posix.cc -o campfire-out/gen/third_party/leveldb/leveldb/third_party/leveldb/port/port_posix.o -Ithird_party/leveldb -Ithird_party/leveldb/include -DLEVELDB_PLATFORM_POSIX -Wno-unused-function -O2 -DSNAPPY -DNDEBUG -I third_party/snappy -I.
In file included from third_party/leveldb/port/port_posix.cc:5:
third_party/leveldb/port/port_posix.h:41:12: fatal error: 'endian.h' file not found
#include <endian.h>
^
1 error generated.
[10/60] cpp_compile third_party/leveldb/db/dbformat.cc
FAILED: clang++ -c third_party/leveldb/db/dbformat.cc -o campfire-out/gen/third_party/leveldb/leveldb/third_party/leveldb/db/dbformat.o -Ithird_party/leveldb -Ithird_party/leveldb/include -DLEVELDB_PLATFORM_POSIX -Wno-unused-function -O2 -DSNAPPY -DNDEBUG -I third_party/snappy -I.
In file included from third_party/leveldb/db/dbformat.cc:6:
In file included from third_party/leveldb/db/dbformat.h:14:
In file included from third_party/leveldb/util/coding.h:17:
In file included from third_party/leveldb/port/port.h:14:
third_party/leveldb/port/port_posix.h:41:12: fatal error: 'endian.h' file not found
#include <endian.h>
^
1 error generated.
[10/60] cpp_compile third_party/leveldb/db/log_reader.cc
FAILED: clang++ -c third_party/leveldb/db/log_reader.cc -o campfire-out/gen/third_party/leveldb/leveldb/third_party/leveldb/db/log_reader.o -Ithird_party/leveldb -Ithird_party/leveldb/include -DLEVELDB_PLATFORM_POSIX -Wno-unused-function -O2 -DSNAPPY -DNDEBUG -I third_party/snappy -I.
In file included from third_party/leveldb/db/log_reader.cc:9:
In file included from third_party/leveldb/util/coding.h:17:
In file included from third_party/leveldb/port/port.h:14:
third_party/leveldb/port/port_posix.h:41:12: fatal error: 'endian.h' file not found
#include <endian.h>
^
1 error generated.
[10/60] cpp_compile third_party/leveldb/db/memtable.cc
FAILED: clang++ -c third_party/leveldb/db/memtable.cc -o campfire-out/gen/third_party/leveldb/leveldb/third_party/leveldb/db/memtable.o -Ithird_party/leveldb -Ithird_party/leveldb/include -DLEVELDB_PLATFORM_POSIX -Wno-unused-function -O2 -DSNAPPY -DNDEBUG -I third_party/snappy -I.
In file included from third_party/leveldb/db/memtable.cc:5:
In file included from third_party/leveldb/db/memtable.h:10:
In file included from third_party/leveldb/db/dbformat.h:14:
In file included from third_party/leveldb/util/coding.h:17:
In file included from third_party/leveldb/port/port.h:14:
third_party/leveldb/port/port_posix.h:41:12: fatal error: 'endian.h' file not found
#include <endian.h>
^
1 error generated.
[10/60] cpp_compile third_party/leveldb/db/builder.cc
FAILED: clang++ -c third_party/leveldb/db/builder.cc -o campfire-out/gen/third_party/leveldb/leveldb/third_party/leveldb/db/builder.o -Ithird_party/leveldb -Ithird_party/leveldb/include -DLEVELDB_PLATFORM_POSIX -Wno-unused-function -O2 -DSNAPPY -DNDEBUG -I third_party/snappy -I.
In file included from third_party/leveldb/db/builder.cc:7:
In file included from third_party/leveldb/db/filename.h:14:
In file included from third_party/leveldb/port/port.h:14:
third_party/leveldb/port/port_posix.h:41:12: fatal error: 'endian.h' file not found
#include <endian.h>
^
1 error generated.
[10/60] cpp_compile third_party/leveldb/db/leveldb_main.cc
FAILED: clang++ -c third_party/leveldb/db/leveldb_main.cc -o campfire-out/gen/third_party/leveldb/leveldb/third_party/leveldb/db/leveldb_main.o -Ithird_party/leveldb -Ithird_party/leveldb/include -DLEVELDB_PLATFORM_POSIX -Wno-unused-function -O2 -DSNAPPY -DNDEBUG -I third_party/snappy -I.
In file included from third_party/leveldb/db/leveldb_main.cc:6:
In file included from third_party/leveldb/db/dbformat.h:14:
In file included from third_party/leveldb/util/coding.h:17:
In file included from third_party/leveldb/port/port.h:14:
third_party/leveldb/port/port_posix.h:41:12: fatal error: 'endian.h' file not found
#include <endian.h>
^
1 error generated.
[10/60] cpp_compile third_party/leveldb/db/db_bench.cc
FAILED: clang++ -c third_party/leveldb/db/db_bench.cc -o campfire-out/gen/third_party/leveldb/leveldb/third_party/leveldb/db/db_bench.o -Ithird_party/leveldb -Ithird_party/leveldb/include -DLEVELDB_PLATFORM_POSIX -Wno-unused-function -O2 -DSNAPPY -DNDEBUG -I third_party/snappy -I.
In file included from third_party/leveldb/db/db_bench.cc:8:
In file included from third_party/leveldb/db/db_impl.h:10:
In file included from third_party/leveldb/db/dbformat.h:14:
In file included from third_party/leveldb/util/coding.h:17:
In file included from third_party/leveldb/port/port.h:14:
third_party/leveldb/port/port_posix.h:41:12: fatal error: 'endian.h' file not found
#include <endian.h>
^
1 error generated.
[10/60] cpp_compile third_party/leveldb/db/db_impl.cc
FAILED: clang++ -c third_party/leveldb/db/db_impl.cc -o campfire-out/gen/third_party/leveldb/leveldb/third_party/leveldb/db/db_impl.o -Ithird_party/leveldb -Ithird_party/leveldb/include -DLEVELDB_PLATFORM_POSIX -Wno-unused-function -O2 -DSNAPPY -DNDEBUG -I third_party/snappy -I.
In file included from third_party/leveldb/db/db_impl.cc:5:
In file included from third_party/leveldb/db/db_impl.h:10:
In file included from third_party/leveldb/db/dbformat.h:14:
In file included from third_party/leveldb/util/coding.h:17:
In file included from third_party/leveldb/port/port.h:14:
third_party/leveldb/port/port_posix.h:41:12: fatal error: 'endian.h' file not found
#include <endian.h>
^
1 error generated.
ninja: build stopped: subcommand failed.

tsl0922 wrote at 2015-01-31 19:39:43:
I also tried building it on MAC, not success yet, there are a lot of problems.
leveldb can be built by adding -DOS_MACOSX to the cc_opt of its CAMPFIRE file.

revision #478
#474
#472
#512
#473
#475


add support for .ogg and .mp3 sound

Add support for .ogg and .mp3 sound
Related to #23 (which needs an issue update)
Additions

added audio format re-encoding to support encoded files (.ogg, mp3)
added dependencies to include support the new audio formats
updated readme with .mp3 and .ogg support

Other Changes

updated the audio unit tests to test all the audio formats, with a focus on .ogg

TODO: update the dependencies used in the README.

completed.


libboost not found while installing on Jetson Orin

Hello. Thanks for great work. I am trying to install Pin on a Jetson Orin but facing issues where I am not able to import the library. Below are some logs for reference. I am using Python3.8 and I tried to follow the steps mentioned in similar issues but no luck so far.
orin-2@orin-2:/mayank/megapose6d$ python3 -m virtualenv -p python3 virtual_env
created virtual environment CPython3.8.10.final.0-64 in 261ms
creator CPython3Posix(dest=/home/orin-2/mayank/megapose6d/virtual_env, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, pkg_resources=latest, via=copy, app_data_dir=/home/orin-2/.local/share/virtualenv/seed-app-data/v1.0.1.debian.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
orin-2@orin-2:/mayank/megapose6d$ source virtual_env/bin/activate
(virtual_env) orin-2@orin-2:/mayank/megapose6d$ python -c "import pinocchio"
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'pinocchio'
(virtual_env) orin-2@orin-2:/mayank/megapose6d$ pip install -U pip
Collecting pip
Using cached pip-23.1.2-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.0.2
Uninstalling pip-20.0.2:
Successfully uninstalled pip-20.0.2
Successfully installed pip-23.1.2
(virtual_env) orin-2@orin-2:~/mayank/megapose6d$ pip install pin --no-cache-dir
Collecting pin
Downloading pin-2.6.18-0-cp38-cp38-manylinux_2_28_aarch64.whl (5.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.8/5.8 MB 11.4 MB/s eta 0:00:00
Collecting cmeel (from pin)
Downloading cmeel-0.43.1-py3-none-any.whl (16 kB)
Collecting hpp-fcl (from pin)
Downloading hpp_fcl-2.3.2-0-cp38-cp38-manylinux_2_28_aarch64.whl (2.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 12.0 MB/s eta 0:00:00
Collecting cmeel-urdfdom (from pin)
Downloading cmeel_urdfdom-<IP_ADDRESS>-0-py3-none-manylinux_2_17_aarch64.whl (430 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 430.3/430.3 kB 13.7 MB/s eta 0:00:00
Collecting cmeel-console-bridge (from pin)
Downloading cmeel_console_bridge-<IP_ADDRESS>-2-cp38-cp38-manylinux_2_28_aarch64.whl (24 kB)
Collecting cmeel-tinyxml (from pin)
Downloading cmeel_tinyxml-<IP_ADDRESS>-2-cp38-cp38-manylinux_2_28_aarch64.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.9/61.9 kB 82.2 MB/s eta 0:00:00
Collecting tomli<3.0.0,>=2.0.1 (from cmeel->pin)
Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting cmeel-assimp<6 (from hpp-fcl->pin)
Downloading cmeel_assimp-5.2.5-10-py3-none-manylinux_2_17_aarch64.whl (12.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.9/12.9 MB 11.7 MB/s eta 0:00:00
Collecting cmeel-octomap<2 (from hpp-fcl->pin)
Downloading cmeel_octomap-<IP_ADDRESS>-2-cp38-cp38-manylinux_2_28_aarch64.whl (672 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 672.7/672.7 kB 12.7 MB/s eta 0:00:00
Collecting eigenpy<4 (from hpp-fcl->pin)
Downloading eigenpy-3.0.0-7-cp38-cp38-manylinux_2_28_aarch64.whl (2.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 11.8 MB/s eta 0:00:00
Collecting cmeel-boost<1.83.0 (from eigenpy<4->hpp-fcl->pin)
Downloading cmeel_boost-1.82.0-0-cp38-cp38-manylinux_2_28_aarch64.whl (34.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 34.4/34.4 MB 11.7 MB/s eta 0:00:00
Collecting numpy<1.25,>=1.23 (from cmeel-boost<1.83.0->eigenpy<4->hpp-fcl->pin)
Downloading numpy-1.24.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.0/14.0 MB 11.7 MB/s eta 0:00:00
Installing collected packages: tomli, numpy, cmeel, cmeel-urdfdom, cmeel-tinyxml, cmeel-octomap, cmeel-console-bridge, cmeel-boost, cmeel-assimp, eigenpy, hpp-fcl, pin
Successfully installed cmeel-0.43.1 cmeel-assimp-5.2.5 cmeel-boost-1.82.0 cmeel-console-bridge-<IP_ADDRESS> cmeel-octomap-<IP_ADDRESS> cmeel-tinyxml-<IP_ADDRESS> cmeel-urdfdom-<IP_ADDRESS> eigenpy-3.0.0 hpp-fcl-2.3.2 numpy-1.24.3 pin-2.6.18 tomli-2.0.1
(virtual_env) orin-2@orin-2:/mayank/megapose6d$ python
Python 3.8.10 (default, Mar 13 2023, 10:26:41)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import pinocchio
Traceback (most recent call last):
File "", line 1, in
File "/home/orin-2/mayank/megapose6d/virtual_env/lib/python3.8/site-packages/cmeel.prefix/lib/python3.8/site-packages/pinocchio/init.py", line 6, in
from .pinocchio_pywrap import *
ImportError: libboost_python38.so.1.81.0: cannot open shared object file: No such file or directory
quit()
(virtual_env) orin-2@orin-2:/mayank/megapose6d$ pip --version
pip 23.1.2 from /home/orin-2/mayank/megapose6d/virtual_env/lib/python3.8/site-packages/pip (python 3.8)
(virtual_env) orin-2@orin-2:/mayank/megapose6d$ python3 -c "import hppfcl;print(hppfcl.version)"
Traceback (most recent call last):
File "", line 1, in
File "/home/orin-2/mayank/megapose6d/virtual_env/lib/python3.8/site-packages/cmeel.prefix/lib/python3.8/site-packages/hppfcl/init.py", line 34, in
from .hppfcl import *
ImportError: libboost_python38.so.1.81.0: cannot open shared object file: No such file or directory

a rebuild is in progress, I'll keep you updated when it's Ok, but it should require some hours.

@Windson9 An alternative solution is to rely on conda.

The issue is I cannot use Pytorch with Cuda enabled as there is no whl package for Jetson orin in conda environment. So I have to use either virtual env or local setup

meanwhile, you may try to downgrade boost: pip install "cmeel-boost < 1.82.0"

The error still persist after installing cmeel-boost < 1.82.0.
(virtual_env) orin-2@orin-2:/mayank/megapose6d$ pip install "cmeel-boost < 1.82.0"
Collecting cmeel-boost<1.82.0
Downloading cmeel_boost-1.81.0-12-cp38-cp38-manylinux_2_28_aarch64.whl (33.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 33.9/33.9 MB 789.1 kB/s eta 0:00:00
Requirement already satisfied: cmeel in ./virtual_env/lib/python3.8/site-packages (from cmeel-boost<1.82.0) (0.43.1)
Requirement already satisfied: numpy>=1.23 in ./virtual_env/lib/python3.8/site-packages (from cmeel-boost<1.82.0) (1.24.3)
Requirement already satisfied: tomli<3.0.0,>=2.0.1 in ./virtual_env/lib/python3.8/site-packages (from cmeel->cmeel-boost<1.82.0) (2.0.1)
Installing collected packages: cmeel-boost
Attempting uninstall: cmeel-boost
Found existing installation: cmeel-boost 1.82.0
Uninstalling cmeel-boost-1.82.0:
Successfully uninstalled cmeel-boost-1.82.0
Successfully installed cmeel-boost-1.81.0
(virtual_env) orin-2@orin-2:/mayank/megapose6d$ python3 -c "import pinocchio"
Traceback (most recent call last):
File "", line 1, in
File "/home/orin-2/mayank/megapose6d/virtual_env/lib/python3.8/site-packages/cmeel.prefix/lib/python3.8/site-packages/pinocchio/init.py", line 6, in
from .pinocchio_pywrap import *
ImportError: libboost_python38.so.1.82.0: cannot open shared object file: No such file or directory
(virtual_env) orin-2@orin-2:~/mayank/megapose6d$

Hi,
This should be fixed.
Can you confirm on your sides, @Windson9 & @stephane-caron ?

Thx, that solved the problem for >= Py3.8. Sadly a new problem appeared for 3.7 (if you still like to support it):
    from .pinocchio_pywrap import *
E   ImportError: /usr/local/lib/python3.7/site-packages/cmeel.prefix/lib/python3.7/site-packages/pinocchio/../../../../lib/libhpp-fcl.so: undefined symbol: _ZNK6Assimp8IOSystem16CurrentDirectoryEv```

Gotcha. Yes, that would be nice for 3.7 users to still be able to install a legacy version of the software. (As far as Pink is concerned it will just follow your move and set 3.8 as the minimum Python version for the next release.)

Potentially not the same issue but I get the following import error with Python 3.10:
$ conda create -n test4 python=3.10
$ conda activate test4
$ pip install pin
Collecting pin
  Downloading pin-2.6.18-2-cp310-cp310-manylinux_2_28_x86_64.whl (6.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.1/6.1 MB 1.0 MB/s eta 0:00:00
Collecting cmeel (from pin)
  Using cached cmeel-0.43.1-py3-none-any.whl (16 kB)
Collecting cmeel-console-bridge<2,>=<IP_ADDRESS> (from pin)
  Using cached cmeel_console_bridge-<IP_ADDRESS>-1-py3-none-manylinux_2_28_x86_64.whl (23 kB)
Collecting cmeel-tinyxml<3,>=<IP_ADDRESS> (from pin)
  Using cached cmeel_tinyxml-<IP_ADDRESS>-1-py3-none-manylinux_2_28_x86_64.whl (62 kB)
Collecting cmeel-urdfdom<4,>=<IP_ADDRESS> (from pin)
  Using cached cmeel_urdfdom-<IP_ADDRESS>-0-py3-none-manylinux_2_28_x86_64.whl (405 kB)
Collecting hpp-fcl<4,>=2.3.3 (from pin)
  Downloading hpp_fcl-2.3.3-3-cp310-cp310-manylinux_2_28_x86_64.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 1.2 MB/s eta 0:00:00
Collecting cmeel-assimp<6,>=<IP_ADDRESS> (from hpp-fcl<4,>=2.3.3->pin)
  Using cached cmeel_assimp-<IP_ADDRESS>-0-py3-none-manylinux_2_28_x86_64.whl (13.6 MB)
Collecting cmeel-octomap<2,>=<IP_ADDRESS> (from hpp-fcl<4,>=2.3.3->pin)
  Using cached cmeel_octomap-<IP_ADDRESS>-0-py3-none-manylinux_2_28_x86_64.whl (694 kB)
Collecting eigenpy<4 (from hpp-fcl<4,>=2.3.3->pin)
  Downloading eigenpy-3.0.0-7-cp310-cp310-manylinux_2_28_x86_64.whl (2.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 1.5 MB/s eta 0:00:00
Collecting tomli<3.0.0,>=2.0.1 (from cmeel->pin)
  Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting cmeel-boost<1.83.0 (from eigenpy<4->hpp-fcl<4,>=2.3.3->pin)
  Downloading cmeel_boost-1.82.0-0-cp310-cp310-manylinux_2_28_x86_64.whl (34.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 34.6/34.6 MB 1.7 MB/s eta 0:00:00
Collecting numpy<1.25,>=1.23 (from cmeel-boost<1.83.0->eigenpy<4->hpp-fcl<4,>=2.3.3->pin)
  Using cached numpy-1.24.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
Installing collected packages: tomli, numpy, cmeel, cmeel-urdfdom, cmeel-tinyxml, cmeel-octomap, cmeel-console-bridge, cmeel-boost, cmeel-assimp, eigenpy, hpp-fcl, pin
python
Successfully installed cmeel-0.43.1 cmeel-assimp-<IP_ADDRESS> cmeel-boost-1.82.0 cmeel-console-bridge-<IP_ADDRESS> cmeel-octomap-<IP_ADDRESS> cmeel-tinyxml-<IP_ADDRESS> cmeel-urdfdom-<IP_ADDRESS> eigenpy-3.0.0 hpp-fcl-2.3.3 numpy-1.24.3 pin-2.6.18 tomli-2.0.1
$ python
Python 3.10.11 | packaged by conda-forge | (main, May 10 2023, 18:58:44) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pinocchio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/scaron/.micromamba/envs/test4/lib/python3.10/site-packages/cmeel.prefix/lib/python3.10/site-packages/pinocchio/__init__.py", line 6, in <module>
    from .pinocchio_pywrap import *
ImportError: /lib/x86_64-linux-gnu/libboost_python38.so.1.71.0: undefined symbol: _Py_fopen

Do you want to spin a separate issue for this?

@stephane-caron : I can't reproduce that one.
FROM ubuntu:22.04

ADD https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh /install-conda

RUN bash /install-conda -b
RUN eval "$(/root/anaconda3/bin/conda shell.bash hook)" \
 && conda init

CMD eval "$(/root/anaconda3/bin/conda shell.bash hook)" \
 && conda create -n test4 python=3.10 -y \
 && conda activate test4 \
 && pip install pin \
 && python -c "import pinocchio; print(pinocchio.__file__)"

correctly shows:
/root/anaconda3/envs/test4/lib/python3.10/site-packages/cmeel.prefix/lib/python3.10/site-packages/pinocchio/__init__.py

I made another test with:
FROM continuumio/miniconda3

RUN conda create -n test4 python=3.10 -y
SHELL ["conda", "run", "-n", "test4", "/bin/bash", "-c"]
CMD pip install pin && python -c "import pinocchio; print(pinocchio.__file__)"

correctly shows:
/opt/conda/envs/test4/lib/python3.10/site-packages/cmeel.prefix/lib/python3.10/site-packages/pinocchio/__init__.py

Am I messing with something here ?

Hmm, that's curious. Suspecting a cache issue I tried
# in the conda environment
pip install pin --no-cache-dir --upgrade --force-reinstall

But it yields the same error.

It seems that importing Pinocchio looks for Boost::Python in /lib, where it is indeed installed on my system (not sure why). What I don't understand is why it would try to read that one rather than the correct one in ${CONDA_PREFIX}/lib/python3.10/site-packages/cmeel.prefix/lib/libboost_python310.so.
Going to ${CONDA_PREFIX}/lib/python3.10/site-packages/cmeel.prefix/lib/python3.10/site-packages/pinocchio and running ldd yields:
$ ldd pinocchio_pywrap.cpython-310-x86_64-linux-gnu.so | grep boost_python
	libboost_python310.so.1.82.0 => /home/scaron/.micromamba/envs/test4bis/lib/python3.10/site-packages/cmeel.prefix/lib/python3.10/site-packages/pinocchio/./../../../../lib/libboost_python310.so.1.82.0 (0x00007f77f46c3000)
	libboost_python38.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_python38.so.1.71.0 (0x00007f77f3c97000)

So something there is linked against Python 3.8?
There are a couple of other py38 boost libraries in there:
$ ldd pinocchio_pywrap.cpython-310-x86_64-linux-gnu.so | grep 1.71
	libboost_python38.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_python38.so.1.71.0 (0x00007fd721488000)
	libboost_filesystem.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 (0x00007fd721468000)
	libboost_system.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_system.so.1.71.0 (0x00007fd721463000)
	libboost_serialization.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_serialization.so.1.71.0 (0x00007fd72141f000)
	libboost_atomic.so.1.82.0 => /home/scaron/.micromamba/envs/test4bis/lib/python3.10/site-packages/cmeel.prefix/lib/python3.10/site-packages/pinocchio/./../../../../lib/libboost_atomic.so.1.82.0 (0x00007fd721371000)
	libboost_chrono.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_chrono.so.1.71.0 (0x00007fd720716000)

For instance the same happens with boost_filesystem:
$ ldd pinocchio_pywrap.cpython-310-x86_64-linux-gnu.so | grep boost_filesystem
	libboost_filesystem.so.1.82.0 => /home/scaron/.micromamba/envs/test4bis/lib/python3.10/site-packages/cmeel.prefix/lib/python3.10/site-packages/pinocchio/./../../../../lib/libboost_filesystem.so.1.82.0 (0x00007f7bfd79f000)
	libboost_filesystem.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 (0x00007f7bfcd77000)

@nim65s I don't see this error in GitHub Actions, so I'm not sure what's going on. Perhaps the issue can be reproduced with:
FROM ubuntu:20.04

Otherwise I'm concerned something else would be causing this on my system. I checked again with python=3.9 and I get a similar linker issue now, while it worked yesterday :thinking:

@stephane-caron maybe something in your env variables or in your /etc/ld.so.conf ?

docker run --rm -it python:3.7 bash -c "pip install -U pip && pip install pin && python -c 'import pinocchio; print(pinocchio.__version__)'"
[…]
2.6.18

Fixed for Python 3.7: Pinocchio 2.6.18 will be the latest available version.
@Windson9 @stephane-caron : I'll close this. If you still have issues, don't hesitate to re-open if you think this is the same, or open another one :)

Will do, thanks for following up.

@nim65s I have same error when run in virtual enviroment.
from .pinocchio_pywrap import *
ImportError: libboost_python38.so.1.80.0: cannot open shared object file: No such file or directory
I tried with python 3.8.10 and python 3.9.16 and both version have same issue.
I install lib using conda enviroment the issue not occur. But I need to run in Jetson Orin. How I can fix this issue in virtual enviroment ?

@haivuvan : you need to upgrade your packages. Maybe something like:
python -m pip install -U pip
python -m pip install -U cmeel-boost eigenpy hpp-fcl pin

After that, if you still have issues, please post the result of python -m pip freeze so we can inspect this a bit further.

@nim65s, after upgrade package the issue still occur.
please check attached pip3 enviroments
pip3_8_10_env.txt
pip3_9_16_env.txt

you still have eigenpy v2.9.2, while the latest version should be v3.1.0. And this version is available both for x86_64 and aarch64 as a manylinux_2_28.
What OS are you running ?
Does python -m pip install -U pip && python -m pip install eigenpy show any erro ?
Did you ever try to install eigenpy from another source on this machine ?

@nim65s I use eigenpy v2.9.2 because later version remove function that I want to use.
I'm running on Ubuntu 20.04 for both laptop and Jetson Orin.

This is a totally different issue then.

This is really not nice for the time I spend helping you, and this is not nice for every other people subscribed to this issue getting notifications about your issue which has nothing to to with them.
Anyway, we have a XY problem here, please discuss about that eigenpy function, I'm not going to spend time finding a set of versions that workaround your initial problem until we agree this is the right option or the only one.
NB: Pinning a package is fine, but you must pin also pin all its dependencies, as we can't ensure every version of something will work with every version of everything else, and we can't provide pre-built binaries for such cases.

Hi, @nim65s . I also met the problem in the python3.10 virtual environment created via miniforge3 today.
from .pinocchio_pywrap import *
ImportError: /lib/x86_64-linux-gnu/libboost_python38.so.1.71.0: undefined symbol: _Py_fopen

I tried your solution mentioned above:
python -m pip install -U pip
python -m pip install -U cmeel-boost eigenpy hpp-fcl pin

While the problem is not solved. I just want to kindly report this problem to you and maybe the solution I tried can help other people. :)
What I finally solve this problem is running the following command:
conda install pinocchio

By the way, my os  environment is Ubuntu20.04.

@CodingCatMountain : this issue is closed, and what you experience has nothing to do with it. Also don't mix pin pypi packaage with pinocchio conda package. use one or the other.

@nim65s OK. It's screechy to say my experience has nothing to do with it.. But you are right, I shall not mix pin pypi package and pinocchio conda package even though my program can run now.


Support for Diffusers?

I tried to just swap the Fun weights with the original CogVideoX-5b weights, doing inference with Diffusers. That didn't work.
So, is it possible to run CogVideoX-Fun thorugh Diffusers? Are there any code examples?

The file path is incorrect.

Your meaning is to integrate into the diffusers repository, right?

Yes, how can CogVideoX-Fun used trough the Diffusers library? There is already support for the original CogVideoX in Diffusers.

是的，如何通过 Diffusers 库使用 CogVideoX-Fun？Diffusers 中已经支持原始 CogVideoX。

This will take some time to develop.


[#373] Add support for deserializing creatable and updatable entity views via Jackson in Spring MVC and JAX-RS

This is not yet done, just a preview

Description

Related Issue

Fixes #373
Motivation and Context

This would be plain awesome!


Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library [com.android.support:design:26.0.0-alpha1] C:\Users\klightoftheworld.android\build-cache\076d9e56e1088709047f81c5062558fc68ba759f\output\AndroidManifest.xml 	Suggestion: use tools:overrideLibrary="android.support.design" to force usage

hi house
please i need help on this issue in my android build.
Error:Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library [com.android.support:design:26.0.0-alpha1] C:\Users\klightoftheworld.android\build-cache\076d9e56e1088709047f81c5062558fc68ba759f\output\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="android.support.design" to force usage

Hello,
Please try change uses-sdk in AndroidManifest.xml like this.
<uses-sdk android:minSdkVersion="14"></uses-sdk>
您好，
请尝试将AndroidManifest.xml下面的 用户sdk标签的最低版本设置为 14 以上


feed.createReadStream is not async iterable?

Should feed.createReadStream be async iterable? This would allow code like
async function logChunks(stream) {
    for await (const chunk of stream) {
        console.log(chunk);
    }
}

Could be a nice thing to have. Right now createReadStream use from2 to build the readable stream but that module uses an old version of readable stream without the support for iterators.
We could update the dependencies and/or also we can add a new method to provide an iterator feed.iterator() directly without having to use streams.

I usually pipe streams from libraries like hypercore through a passthrough stream since they mostly depend on readable-stream where this async stuff is still a WIP. 😅

Me too (I am used to it) but async iterators streams is already stable in node v12, you can do:
const { Readable } = require('stream')

async function * generate () {
  yield 'a'
  yield 'b'
  yield 'c'
}

const readable = Readable.from(generate())

;(async () => {
  for await (const chunk of readable) {
    console.log(chunk)
  }
})()

Yeah, honestly working with async iterators has been a lot nicer than regular streams in my experience. Especially for object streams. Been using it with hyperswarm in p2plex and would want to do so here, too.

BTW, this is how you can get it to work with your example:
const { PassThrough } = require('stream')

async function logChunks(stream) {
    for await (const chunk of stream.pipe(new PassThrough())) {
        console.log(chunk);
    }
}

oh that's a really cool solution, I didn't understand you before.

You’d wanna pump for error handling there. We are gonna switch all the streams over to streamx

now async iterable thanks to @martinheidegger

very nice design pattern. thank you for contributing. have a cookie🍪 or 🍪 🍪


add sei - WIP

Context and purpose of the change
Add sei as a new hostzone
Brief Changelog

Add necessary configurations for sei
Add integration tests for sei

open


nixos/gogs: Fix module when no passwords provided

Please use this instead of #27950. It should also be cherry-picked to release-17.09.
Motivation for this change
If neither database.password or database.passwordFile were provided, it would try and fail to coerce null to a string.
This fixes the situation where there is no password for the database.
Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[X] NixOS
[ ] macOS
[X] Linux

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

/cc @jgertm @schneefux @NeQuissimus @fpletz

Thanks!


Bump Version to get new release image

Let me run the context builder image workflow and try to use that to verify that the issue was the reused tag


Update prepare_storage.yml

Allow size of a lv / mount point to be specified and fall back to total size of VG if not specified

Hi,
This scratched my itch to have more control, but preserves default behavior for generic storage.

Hi @wuftymerguftyguff,
Scratching an itch is always welcome. :)
There have been made major changes in this role which are currently available in the 'dev' branch and being tested.
The code that is currently in the 'main' branch has mostly been replaced by the changes.
Please give the role in 'dev' a try and verify if it works for your use-case.
It probably has the same itch. However, if we want to improve it, we should do it in the latest version of the code right away.
I'm closing this PR as we will only merge new code with 'dev' first.

Good first issue @wuftymerguftyguff 😃  As said, the SAP Storage setup Ansible Role has just received a major upgrade and is in dev branch, for planned next release and I think setting the LVM Logical Volumes to use 100% of the underlying LVM Volume Groups is done.
Would really welcome additional feedback on this new Ansible Role too, it was a major update to that Ansible Role to permit more dynamic and complex setups for either SAP HANA or SAP NetWeaver in different scenarios.


AMBARI-25217 Updating commons-codec:commons-codec version (dgrinenko)

What changes were proposed in this pull request?
Updating dependency version due to security issues with more older versions
How was this patch tested?
Build & UT

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/5059/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/5060/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/5074/
Test PASSed.


extractCSS option outputs stylesheets in both

Environment
Nuxi 3.4.1
RootDir: /home/projects/github-wyh968/.output/public
Nuxt project info:

Operating System: Linux
Node Version: v16.14.2
Nuxt Version: 3.4.1
Nitro Version: 2.3.3
Package Manager<EMAIL_ADDRESS>Builder: vite
User Config: -
Runtime Modules: -
Build Modules: -

Reproduction
https://stackblitz.com/edit/github-wyh968
Describe the bug
When using the extractCSS option:
export default defineNuxtConfig({
  webpack: {
    extractCSS: true
  }
})

Running nuxt generate outputs all component stylesheets both directly in the head tag of each html files, and as separate css files (see the reproduction above):
src/pages/index.vue
<template>
  <!-- ... -->
</template>

<style scoped lang="scss">
  .home {
    background: $turquoise;
  }
</style>

.output/public/index.html
<!DOCTYPE html>
<html>
  <head>
    <!-- ... !-->
    <style>
      .home[data-v-a9afb481] {
        background: #40e0d0
      }
    </style>
  </head>
  <body>
    <!-- ... !-->
  </body>
</html>

.output/public/_nuxt/index.1ed677da.css
.home[data-v-a9afb481]{background:#40e0d0}

Even if the stylesheets appear twice in the bundle, the generated css files are not linked anywhere and left unused.
Global stylesheets included using the nuxt css option don't have this problem and are only extracted once as a separate css file.
Expected behavior
When setting the extractCSS option to true, all stylesheets should be extracted as separate css files, not be duplicated, and be linked in the corresponding html files.
Additional context
No response
Logs
No response

You must install @nuxt/webpack-builder and set builder: 'webpack' to use webpack.

Do you mean css cannot be extracted using vite ?

Vite extracts CSS by default here. You can disable inlining by setting experimental.inlineSSRStyles to false.


Add support for identityType = "None".

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[x] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

Automation for azure-sdk-for-python

Automation for azure-sdk-for-go

Can one of the admins verify this patch?

Please hold the PR and not merge it, since there might be another way to resolve the issue, then the change is not necessary.

Hi @tonykjose @blueww , Can I know what is latest status for this PR as it is pending for quite long time?

@tonykjose Can we close this PR as it is idle for long time?


Zero Client upstream bandwidth idle disconnect timeout option

While testing mjpg-relay for our 3D Printer (https://apollo.open-resource.org/mission:resources:picoprint) one question came up : It seems that even if there is no client connected, mjpg-relay is still connected to mjpg-streamer and pulling the stream. I can see a number of good reasons to keep it open but at the same time, here the goal is to consider upstream bandwidth something precious, that's why there is the desire to have a relay in the first place :) I haven't looked at the code yet but it would be great to have at least an option to have it disconnect, while no clients are accessing the relay (even at a cost of some initial delays).
Maybe I was just blind and didn't see it in the options, but I would consider it a great feature to have a
$ python relay.py -T 30

argv, defining a period in seconds (default say 30), if set, after which mjpg-relay idles/throttles/disconnects the upstream source and shows a dummy image (Connecting...) similar to missing feed, so that the first new user after the timeout gets the connect image while the link to the upstream source is re-established.
I might be able to hack something together, but I don't know if I will find the time and how long it will take me to get into the internals of mjpg-streamer, so if someone else is faster than me, and has a similar need, please share and send a pull-request to mjpg-relay :)
And thanks for sharing mjpg-relay, it works great with mjpg-streamer so far.

It does indeed make sense in most cases to disconnect from the source when no clients are connected. I'm confident it wouldn't take too long to implement - I'll have some time this week to look into it.

Is this still active?
I am really looking forward for this enhancement. Unfortunately my python skill do not cover to do this on my own atm...

Apologies for the delay, I've been busy lately. I've got a few updates in the works for mjpeg-relay, and this feature is one of them.

Sweet, in the past it wasn't much of an issue where we had 100MBit down/10MBit upload bandwidth. Now we're only having access to a 10MBit down/1MBit upload line, so we had to shut down the camera stream to save bandwidth - so it would be really handy now :)

@OliverF Thank you for your great work on this. This project is my first python deployment and it works great. However I too concerned about the bandwidth as I am pulling streams from multiple cameras.
I made an attempt at trying to disconnect the sourceStream when (self.getClientCount() == 0 and self.streamQueue.empty()), but I didn't quite get it working, it was fighting with the code in broadcast or it wouldn't restart the connection when a client queued up.

Did we ever get anywhere with this feature?
This project (if this feature was implemented) is exactly what I'm looking for right now - incidentally to do the same 3D-printer-cam thing that OP's doing.
This project will already let me save my poor Raspberry Pi from handling several streams at once, but ideally I'd be relaying the stream via my 300 Mbps dedicated server rather than requiring everyone to connect to my home server where I only have 20 Mbps upstream... I'm thankfully not charged for or limited with upstream usage, but even so, keeping a 1-2 Mbps webcam stream active 24/7 isn't ideal! :)
I'm a PHP/JS dev unfortunately (trying to learn Python, but it's early days!), so I can't really help with this :( Happy to throw a few £ in the direction of whoever can get this implemented, though <3


Angular Universal [As Node]

Angular Universal seems to be having trouble with this when rendering server side, as it's accessing the DOM through ElementRef and the simply DOM isn't available.
I've worked around this by creating a dummy youtube-player component to satisfy the component's existence for Node, but really you probably should be accessing the DOM through renderer.

Hi.
Can you share an example?

@JimDrury
are you referring to this line?

Sorry for the super late reply, yes i was


Data protection policy

We need to make sure to add data protection policies. We're not collecting any data at the moment, but with Hypergraph Vault being prepared it is becoming more urgent.

This is covered in the Terms, so closing this.


Add command to display koala-bear images

Ported from old cobot repo, opened by @Vamshi99

We need to find where the old koala-bears images have been stored.


Update dags.html

The UI should show red in the schedule label only when the DAG run number is strictly greater than the maximum. This allows for "normal" behaviour when max_active_runs = 1.
Dear Airflow maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[ ] My PR addresses the following Airflow JIRA issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-XXX

Description

[ ] Here are some details about my PR, including screenshots of any UI changes:

Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[ ] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Please open a Jira issue with the motivation to merge this PR. This will keep the changes in one single place and make it much easier for us to create changelogs etc.

@Fokko Can you please link me to the JIRA? I don't seem to have permissions to create tickets..

@clintonboys
https://issues.apache.org/jira/projects/AIRFLOW/issues
If you login on the top-right, you should be able to create a ticket.

@Fokko  Done

@clintonboys You need to follow the contribute guide: This means, that you need to prefix your commit and PR with [AIRFLOW-XXXX], where XXXX is the JIRA number.

Closing this PR for inactivity. Please reopen once you have created a JIRA and linked the JIRA to the PR. Please provide ample justification and test coverage.


fix: metrics server listen on localhost by default

Motivation
We are currently not setting the beacon node metrics server host to localhost / <IP_ADDRESS> by default. This causes it to listen on IPv6 network interface and makes it externally reachable by default (unless firewall is enabled), see https://github.com/ChainSafe/lodestar/issues/5768#issuecomment-1640866352 for further details.
Metric servers should only be explicitly exposed to an external network inferface by setting --metrics.address "<IP_ADDRESS>".
Description
Set <IP_ADDRESS> as default beacon node metrics address.
This is already the case for validator metrics server
https://github.com/ChainSafe/lodestar/blob/0884fdfa1b2b80e3538633cba70b0ce3585f0c5c/packages/cli/src/cmds/validator/options.ts#L17

:tada: This PR is included in v1.10.0 :tada:


how to install on Fedora (using their cudd package)

This works, we just need:
    extra-libraries:     cudd, mtr, cuddst, cuddutil, epd, dddmp, m
    extra-include-dirs: /usr/include/cudd

see https://github.com/adamwalker/cudd/issues/1

Fedora 24 has packaged cudd-3.0.0, file layout (ignoring documentation) is:
$ repoquery -lq --installed cudd

/usr/lib64/libcudd-3.0.0.so.0
/usr/lib64/libcudd-3.0.0.so.0.0.0

$ repoquery -lq --installed cudd-devel

/usr/include/cudd
/usr/include/cudd/config.h
/usr/include/cudd/cudd.h
/usr/include/cudd/cuddInt.h
/usr/include/cudd/cuddObj.hh
/usr/include/cudd/dddmp.h
/usr/include/cudd/epd.h
/usr/include/cudd/mtr.h
/usr/include/cudd/st.h
/usr/include/cudd/util.h
/usr/lib64/libcudd.so

so I think this only needs
    extra-libraries:     cudd
    extra-include-dirs: /usr/include/cudd

It compiles fine, I am currently testing larger examples. (The risk is of course that your c_sources/*.c would not match what's in the new version.)

Sorry for the slow reponse. I remember reading this bug report and then for some reason I completely forgot about it.
This is fixed, basically as you describe, in the cudd-3.0.0 branch. I will merge that to master and update Hackage.

I have updated the version on Hackage and the instructions for cudd 3.0.0. Does it work for you?

With Fedora's cudd-devel package installed, I can compile haskell_cudd with
cabal install --extra-include-dirs=/usr/include/cudd

and extra-lib-dirs is not needed.
I suggest

mention this in the README
drop extra-lib-dirs from the cabal file (you can never know where the user puts his libraries)

Interestingly, I only needed --extra-lib-dirs=/usr/local/lib and not --extra-include-dirs.
I dropped the extra dirs from the readme and added a note to the cabal file and readme as suggested.

... no extra-include-dirs

There is #include "cudd.h" in c_sources/stubs.c. From where does the (C) compiler know that this file is in /usr/include/cudd/cudd.h?

The include files are in /usr/local/include on my mahcine. I'm not sure if thats because the autotools build system of Cudd 3.0 put them there or because I did manually. /usr/local/include is in my library search path, which is how it finds them.

I see. I was talking not about "installing cudd from source on fedora" but "installing the fedora cudd-devel package", see second message in this thread.


No operator% for arithmetic types

Hi!
Description of strong::arithmetic modifier says:
strong::arithmetic allows addition, subtraction, multiplication, division and **remainder** of instances.

But there is no operator% for this modifier. Is there any reason not to have it?

Oh... I think my brain must've blanked. I'll add it later today. Thanks.

It's fixed on main now.. It was a little bit tricky because the operation doesn't make sense for all underlying types, e.g. floating point types, so I made the operator conditionally supported.
I'll leave this issue open until a release has been tagged with the fix.

Great!
Thank you, Björn!

Just tagged v4 which includes this fix. Closing now.


document how to run shadow ioeventfd sample

Signed-off-by: Thanos Makatos<EMAIL_ADDRESS>

This PR needs to include the actual shadow ioeventfd demo as well.

included in https://github.com/nutanix/libvfio-user/pull/722