botan icon indicating copy to clipboard operation
botan copied to clipboard

Failed to load path based dependency memutils: No package file found in ../memutils/, expected one of dub.json/dub.sdl/package.json

Open timotheecour opened this issue 7 years ago • 4 comments

http://code.dlang.org/packages/botan.json my dub.json contains:

  "dependencies": {
    "vibe-d": "~>0.7.30",
    "ggplotd": "~>1.1.3",
    "msgpack-d": "~>1.0.0-beta.6",
    "msgpack-rpc": "~>0.1.2",
    "dproto": "~>2.1.1",
    "dcv": {"path": "/home/timothee/git_clone/D/dcv", "version": "~master",},
    "dub": "~>1.3.0",
    "mir": "~>1.1.0",
  },

dub build shows:

Sub package botan:passhash doesn't exist in botan ~fix-tls.
Invalid package in dependency tree: botan:passhash ~fix-tls
Failed to load path based dependency memutils: No package file found in ../memutils/, expected one of dub.json/dub.sdl/package.json
Full error: object.Exception@source/dub/package_.d(159): No package file found in ../memutils/, expected one of dub.json/dub.sdl/package.json
----------------
??:? [0x49c25e]
??:? [0x49caac]
??:? [0x45b056]
??:? [0x452d7a]
??:? [0x44d07c]
??:? [0x44c411]
??:? [0x44009e]
??:? [0x44033a]
??:? [0x44033a]
??:? [0x44033a]
??:? [0x44033a]
??:? [0x43f82c]
??:? [0x44b9f8]
??:? [0x445f4c]
??:? [0x40a755]
??:? [0x40b11a]
??:? [0x40b855]
??:? [0x407ed5]
??:? [0x404593]
??:? [0x5a919e]
??:? [0x5a90e8]
??:? [0x5a915a]
??:? [0x5a90e8]
??:? [0x5a9066]
??:? [0x406de9]
??:? __libc_start_main [0x4551c82f]
Search for versions of libevent (1 package suppliers)
Downloading metadata for libevent
Getting from http://code.dlang.org/packages/libevent.json

looking at http://code.dlang.org/packages/botan.json it contains:

["Locking_Allocator","SHA2_32","SHA2_64","MD4","MD5","SHA1","CRC24"]}],"workingDirectory":"build","commitID":"7110ce2142003165ae0b0642261c45ab807a6b6b","buildOptions":["inline"],"name":"botan","version":"1.11.10","targetType":"staticLibrary","license":"2-BSD","readmeFile":"/README.md","date":"2015-02-17T19:08:12Z","targetName":"botan","description":"A D library for crypto and TLS","libs":["dl"],"targetPath":"build","dependencies":{"memutils":{"path":"../memutils","version":">=0.0.0"}},"versions":["Have_botan"]},

which has a "path"; which I believe causes the above error; this seems wrong for a published package ?

timotheecour avatar Jun 10 '17 22:06 timotheecour

What is in your dub.versions.json file?

etcimon avatar Jun 10 '17 22:06 etcimon

initially empty, i let dub fill it

timotheecour avatar Jun 11 '17 05:06 timotheecour

published packages shouldn't contain path:

https://code.dlang.org/getting_started

Dependencies in the package description can use a path instead of a version. This can be used together with Git sub-modules or -trees, or with an otherwise known directory layout to use arbitrarily defined versions of a dependency. Note that this should only be used for non-public packages.

timotheecour avatar Jun 11 '17 05:06 timotheecour

I think some dependency is asking for a very old version.. I had done this mistake on an oold release.

etcimon avatar Jun 11 '17 12:06 etcimon