Couldn't find matching udev devices
I just had exactly the same error but with my ASUS Zenfone 2 on Xubuntu 15.10.
I tried a different USB port (3.0) and it just worked, I suspect the MTP setting wants a better port. Either that or there is something wrong with my USB 2.0 port (and the OPs port)
You could try a different port - on a different PC if you have to.
Related videos on Youtube
manonthemat
Updated on September 18, 2022Comments
-
manonthemat over 1 year
I have type definitions for
A
andB
defined in theschema.graphql
file. Resolvers for these are auto-generated and work well (in other places).To create a scoring mechanism that ranks nodes with label B in relation to the node with label A, I am writing a
CustomResolver
query that executes a cypher query and returns a collection of bs and a computed score as defined in theScoredBs
type.The
schema.graphql
file looks like this.type Query { CustomResolver(idA: ID!, idsB: [ID!]!): [ScoredBs] } type A { id: ID! @id # and some more stuff of course } type B { id: ID! @id # more fields that use the @relation or @cypher decorator } type ScoredBs { bs: [B] score: Float }
This is where the custom resolver is defined:
const resolvers = { Query: { CustomResolver: async ( parent, { idA, idsB }, context, info ) => { const cypher = ` MATCH (a:A {id: $idA}) MATCH (a)<--(b:B) WHERE b.id IN $idsB WITH b RETURN DISTINCT collect(b) AS bs, rand() AS score ORDER BY score DESC ` const session = context.driver.session() const results = await session .run(cypher, { idA, idsB }) .then((result) => { return result.records.map((record) => { return { bs: record.get('bs'), score: record.get('score')?.low || null, } }) }) .catch(console.log) .then((results) => { session.close() return results }) return results }, }, }
When I run the query in the apollo-server graphql playground i am receiving an error:
"message": "Resolve function for "B.id" returned undefined",
query { CustomResolver( idA:"2560886f-654b-4047-8d7a-386cd7d9f670", idsB: ["01ec8367-a8ae-4600-9f88-ec141b2cae2c", "032f9a88-98c3-4968-8388-659ae26d63b3"] ) { bs { id } score } }
-
user.dz almost 9 yearsCould you post output of
sudo lsusb
with phone plugged in -
Kannan Soorej almost 9 yearsOkay, I can do that soon ...
-
user.dz almost 9 yearsAnother thing, the ppa you have mentioned does not contains mtp-tools & mtpfs , are you sure it's the correct ppa? or could you point me to the reference you are flowing its instructions? Please, make an edit to your original post see edit link at the bottom of your question.
-
KGIII over 8 yearsHave you tried enabling USB Mass Storage in your phone's settings? (Sorry for the late answer, I'm just going through trying to clean up some old questions that don't have answers.)
-
Kannan Soorej over 8 yearsPlease do not tell me sorry for your late answer .... It's Okay .... Now, I have no memory card inside my Lumia 540 Phone (it was an old memory card and it became faulty and unable to use it now) Still it shows me the same errors without the SANDISK 4GB memory card ....
-