Comments (8)
I've walked into this issue while trying to install rakudoc.
Distro: NixOS, zef version 0.18.2, full retrace in this gist.
Thanks to the previous comment I also was able to get beyond this issue as follows:
~ $ zef install JSON::Marshal --deps-only
===> Searching for: JSON::Marshal
===> Searching for missing dependencies: JSON::Fast:ver<0.16+>, JSON::Name:ver<0.0.6+>, JSON::OptIn
===> Testing: JSON::OptIn:ver<0.0.2>:auth<zef:jonathanstowe>
===> Testing [OK] for JSON::OptIn:ver<0.0.2>:auth<zef:jonathanstowe>
===> Testing: JSON::Name:ver<0.0.7>:auth<zef:jonathanstowe>:api<1.0>
===> Testing [OK] for JSON::Name:ver<0.0.7>:auth<zef:jonathanstowe>:api<1.0>
===> Testing: JSON::Fast:ver<0.19>:auth<cpan:TIMOTIMO>
===> Testing [OK] for JSON::Fast:ver<0.19>:auth<cpan:TIMOTIMO>
===> Installing: JSON::OptIn:ver<0.0.2>:auth<zef:jonathanstowe>
===> Installing: JSON::Name:ver<0.0.7>:auth<zef:jonathanstowe>:api<1.0>
===> Installing: JSON::Fast:ver<0.19>:auth<cpan:TIMOTIMO>
~ $ zef install JSON::Marshal
===> Searching for: JSON::Marshal
===> Testing: JSON::Marshal:ver<0.0.25>:auth<zef:jonathanstowe>:api<1.0>
===> Testing [OK] for JSON::Marshal:ver<0.0.25>:auth<zef:jonathanstowe>:api<1.0>
===> Installing: JSON::Marshal:ver<0.0.25>:auth<zef:jonathanstowe>:api<1.0>
I've also had similar issues after this step:
~ $ zef install rakudoc
===> Searching for: rakudoc
===> Searching for missing dependencies: Pod::Utils:ver<0.0.2+>, IO::MiddleMan:ver<1.001003+>, File::Directory::Tree, File::Temp:ver<0.0.8+>
===> Searching for missing dependencies: Test::META
===> Searching for missing dependencies: META6:ver<0.0.24+>, URI, License::SPDX
===> Searching for missing dependencies: JSON::Class:ver<0.0.20+>, JSON::Class:ver<0.0.14+>
===> Searching for missing dependencies: JSON::Unmarshal:ver<0.14+>
===> Testing: JSON::Unmarshal:ver<0.15>:auth<zef:raku-community-modules>
===> Testing [OK] for JSON::Unmarshal:ver<0.15>:auth<zef:raku-community-modules>
===> Testing: JSON::Class:ver<0.0.21>:auth<zef:jonathanstowe>:api<1.0>
===> Testing [OK] for JSON::Class:ver<0.0.21>:auth<zef:jonathanstowe>:api<1.0>
===> Testing: META6:ver<0.0.30>:auth<zef:jonathanstowe>:api<1.0>
[META6] ===SORRY!=== Error while compiling /run/user/1000/.zef/1692196215.716374/2d0c6880cd1e8892a113b2dd28383908d65aa954.tar.gz/META6-0.0.30/t/040-projects.t
[META6] An exception X::AdHoc occurred while evaluating a constant: Could not find symbol '&Class' in 'GLOBAL::JSON'
[META6] at /run/user/1000/.zef/1692196215.716374/2d0c6880cd1e8892a113b2dd28383908d65aa954.tar.gz/META6-0.0.30/t/040-projects.t:9
[META6] Exception details:
[META6] Could not find symbol '&Class' in 'GLOBAL::JSON'
[META6] in block at t/040-projects.t line 9
===> Testing [FAIL]: META6:ver<0.0.30>:auth<zef:jonathanstowe>:api<1.0>
Aborting due to test failure: META6:ver<0.0.30>:auth<zef:jonathanstowe>:api<1.0> (use --force-test to override)
~ $ zef install META6 --deps-only
===> Searching for: META6
===> Searching for missing dependencies: JSON::Class:ver<0.0.20+>
===> Searching for missing dependencies: JSON::Unmarshal:ver<0.14+>
===> Testing: JSON::Unmarshal:ver<0.15>:auth<zef:raku-community-modules>
===> Testing [OK] for JSON::Unmarshal:ver<0.15>:auth<zef:raku-community-modules>
===> Testing: JSON::Class:ver<0.0.21>:auth<zef:jonathanstowe>:api<1.0>
===> Testing [OK] for JSON::Class:ver<0.0.21>:auth<zef:jonathanstowe>:api<1.0>
===> Installing: JSON::Unmarshal:ver<0.15>:auth<zef:raku-community-modules>
===> Installing: JSON::Class:ver<0.0.21>:auth<zef:jonathanstowe>:api<1.0>
~ $ zef install META6
===> Searching for: META6
===> Testing: META6:ver<0.0.30>:auth<zef:jonathanstowe>:api<1.0>
===> Testing [OK] for META6:ver<0.0.30>:auth<zef:jonathanstowe>:api<1.0>
===> Installing: META6:ver<0.0.30>:auth<zef:jonathanstowe>:api<1.0>
After this, zef install rakudoc
completed succesfully.
from json-marshal.
What version of rakudo is this? The output of raku -v
would be great.
from json-marshal.
For reference in a brand new container with raku 2022.07 and zef
installed:
root@ebf3500c6620:/# zef install JSON::Marshal
===> Searching for: JSON::Marshal
===> Searching for missing dependencies: JSON::Fast:ver<0.16+>, JSON::Name:ver<0.0.6+>, JSON::OptIn
===> Testing: JSON::Fast:ver<0.17>:auth<cpan:TIMOTIMO>
===> Testing [OK] for JSON::Fast:ver<0.17>:auth<cpan:TIMOTIMO>
===> Testing: JSON::OptIn:ver<0.0.2>:auth<zef:jonathanstowe>
===> Testing [OK] for JSON::OptIn:ver<0.0.2>:auth<zef:jonathanstowe>
===> Testing: JSON::Name:ver<0.0.7>:auth<zef:jonathanstowe>:api<1.0>
===> Testing [OK] for JSON::Name:ver<0.0.7>:auth<zef:jonathanstowe>:api<1.0>
===> Testing: JSON::Marshal:ver<0.0.24>:auth<zef:jonathanstowe>:api<1.0>
===> Testing [OK] for JSON::Marshal:ver<0.0.24>:auth<zef:jonathanstowe>:api<1.0>
===> Installing: JSON::Fast:ver<0.17>:auth<cpan:TIMOTIMO>
===> Installing: JSON::OptIn:ver<0.0.2>:auth<zef:jonathanstowe>
===> Installing: JSON::Name:ver<0.0.7>:auth<zef:jonathanstowe>:api<1.0>
===> Installing: JSON::Marshal:ver<0.0.24>:auth<zef:jonathanstowe>:api<1.0>
root@ebf3500c6620:/# raku -v
Welcome to Rakudo™ v2022.07.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2022.07.
ISTR there was some version of rakudo where the packages were getting attached in the wrong place leading to this kind of conflict but that was a good two or three years ago ...
from json-marshal.
I guess I'm using the latest version
❯ raku -v
Welcome to Rakudo™ v2022.07.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2022.07.
❯ zef install JSON::Marshal
===> Searching for: JSON::Marshal
===> Searching for missing dependencies: JSON::Fast:ver<0.16+>, JSON::Name:ver<0.0.6+>, JSON::OptIn
===> Testing: JSON::Fast:ver<0.17>:auth<cpan:TIMOTIMO>
===> Testing [OK] for JSON::Fast:ver<0.17>:auth<cpan:TIMOTIMO>
===> Testing: JSON::OptIn:ver<0.0.2>:auth<zef:jonathanstowe>
===> Testing [OK] for JSON::OptIn:ver<0.0.2>:auth<zef:jonathanstowe>
===> Testing: JSON::Name:ver<0.0.7>:auth<zef:jonathanstowe>:api<1.0>
===> Testing [OK] for JSON::Name:ver<0.0.7>:auth<zef:jonathanstowe>:api<1.0>
===> Testing: JSON::Marshal:ver<0.0.24>:auth<zef:jonathanstowe>:api<1.0>
[JSON::Fast] ===SORRY!=== Error while compiling /tmp/.zef/bd503b57c9cff4706f3a3e18390157a2a353536e.tar.gz/JSON-Marshal-0.0.24/t/020-marshal.t
[JSON::OptIn] ===SORRY!=== Error while compiling /tmp/.zef/bd503b57c9cff4706f3a3e18390157a2a353536e.tar.gz/JSON-Marshal-0.0.24/t/020-marshal.t
[JSON::Name] ===SORRY!=== Error while compiling /tmp/.zef/bd503b57c9cff4706f3a3e18390157a2a353536e.tar.gz/JSON-Marshal-0.0.24/t/020-marshal.t
[JSON::Marshal] ===SORRY!=== Error while compiling /tmp/.zef/bd503b57c9cff4706f3a3e18390157a2a353536e.tar.gz/JSON-Marshal-0.0.24/t/020-marshal.t
[JSON::Fast] Merging GLOBAL symbols failed: duplicate definition of symbol Fast
[JSON::OptIn] Merging GLOBAL symbols failed: duplicate definition of symbol Fast
[JSON::Name] Merging GLOBAL symbols failed: duplicate definition of symbol Fast
[JSON::Marshal] Merging GLOBAL symbols failed: duplicate definition of symbol Fast
[JSON::Fast] at /tmp/.zef/bd503b57c9cff4706f3a3e18390157a2a353536e.tar.gz/JSON-Marshal-0.0.24/t/020-marshal.t:8
[JSON::OptIn] at /tmp/.zef/bd503b57c9cff4706f3a3e18390157a2a353536e.tar.gz/JSON-Marshal-0.0.24/t/020-marshal.t:8
[JSON::Name] at /tmp/.zef/bd503b57c9cff4706f3a3e18390157a2a353536e.tar.gz/JSON-Marshal-0.0.24/t/020-marshal.t:8
[JSON::Marshal] at /tmp/.zef/bd503b57c9cff4706f3a3e18390157a2a353536e.tar.gz/JSON-Marshal-0.0.24/t/020-marshal.t:8
[JSON::Fast] ===SORRY!=== Error while compiling /tmp/.zef/bd503b57c9cff4706f3a3e18390157a2a353536e.tar.gz/JSON-Marshal-0.0.24/t/030-trait.t
[JSON::OptIn] ===SORRY!=== Error while compiling /tmp/.zef/bd503b57c9cff4706f3a3e18390157a2a353536e.tar.gz/JSON-Marshal-0.0.24/t/030-trait.t
[JSON::Name] ===SORRY!=== Error while compiling /tmp/.zef/bd503b57c9cff4706f3a3e18390157a2a353536e.tar.gz/JSON-Marshal-0.0.24/t/030-trait.t
[JSON::Marshal] ===SORRY!=== Error while compiling /tmp/.zef/bd503b57c9cff4706f3a3e18390157a2a353536e.tar.gz/JSON-Marshal-0.0.24/t/030-trait.t
[JSON::Fast] Merging GLOBAL symbols failed: duplicate definition of symbol Fast
[JSON::OptIn] Merging GLOBAL symbols failed: duplicate definition of symbol Fast
[JSON::Name] Merging GLOBAL symbols failed: duplicate definition of symbol Fast
[JSON::Marshal] Merging GLOBAL symbols failed: duplicate definition of symbol Fast
[...]
===> Testing [FAIL]: JSON::Marshal:ver<0.0.24>:auth<zef:jonathanstowe>:api<1.0>
Aborting due to test failure: JSON::Marshal:ver<0.0.24>:auth<zef:jonathanstowe>:api<1.0> (use --force-test to override)
from json-marshal.
What's stranger is that if I install the dependencies first, all works:
❯ zef install JSON::Marshal --deps-only
===> Searching for: JSON::Marshal
===> Searching for missing dependencies: JSON::Fast:ver<0.16+>, JSON::Name:ver<0.0.6+>, JSON::OptIn
===> Testing: JSON::OptIn:ver<0.0.2>:auth<zef:jonathanstowe>
===> Testing [OK] for JSON::OptIn:ver<0.0.2>:auth<zef:jonathanstowe>
===> Testing: JSON::Name:ver<0.0.7>:auth<zef:jonathanstowe>:api<1.0>
===> Testing [OK] for JSON::Name:ver<0.0.7>:auth<zef:jonathanstowe>:api<1.0>
===> Testing: JSON::Fast:ver<0.17>:auth<cpan:TIMOTIMO>
===> Testing [OK] for JSON::Fast:ver<0.17>:auth<cpan:TIMOTIMO>
===> Installing: JSON::OptIn:ver<0.0.2>:auth<zef:jonathanstowe>
===> Installing: JSON::Name:ver<0.0.7>:auth<zef:jonathanstowe>:api<1.0>
===> Installing: JSON::Fast:ver<0.17>:auth<cpan:TIMOTIMO>
❯ zef install JSON::Marshal
===> Searching for: JSON::Marshal
===> Testing: JSON::Marshal:ver<0.0.24>:auth<zef:jonathanstowe>:api<1.0>
===> Testing [OK] for JSON::Marshal:ver<0.0.24>:auth<zef:jonathanstowe>:api<1.0>
===> Installing: JSON::Marshal:ver<0.0.24>:auth<zef:jonathanstowe>:api<1.0>
❯
from json-marshal.
[META6] ===SORRY!=== Error while compiling /run/user/1000/.zef/1692196215.716374/2d0c6880cd1e8892a113b2dd28383908d65aa954.tar.gz/META6-0.0.30/t/040-projects.t
[META6] An exception X::AdHoc occurred while evaluating a constant: Could not find symbol '&Class' in 'GLOBAL::JSON'
[META6] at /run/user/1000/.zef/1692196215.716374/2d0c6880cd1e8892a113b2dd28383908d65aa954.tar.gz/META6-0.0.30/t/040-projects.t:9
[META6] Exception details:
[META6] Could not find symbol '&Class' in 'GLOBAL::JSON'
[META6] in block at t/040-projects.t line 9
What rakudo version is this? I'm not even sure how that can happen, as it literally does use JSON::Class;
two lines before the failing line reported there.
from json-marshal.
Yes, that's what I find weird too.
~ $ zef --version
0.18.2
~ $ rakudo -v
Welcome to Rakudo™ v2023.04.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2023.04.
I didn't do anything before trying to install rakudoc.
from json-marshal.
Is there any scope for you testing this with v2023.06
as I'm struggling to reproduce.
from json-marshal.
Related Issues (12)
- Auto kebab case to _ case HOT 2
- Test failures because of JSON::Fast HOT 5
- Deprecated Code Warnings HOT 2
- hi, trying to use it I got this HOT 3
- Could not find JSON::Fast:ver<0.4..*> HOT 3
- Custom type objects aren't marshalled consistently with builtin type objects. HOT 5
- How about just a json-skip to skip attributes we do not want included... HOT 2
- Test failing with wrong spacing in the expected value of tests HOT 6
- P6M Merging GLOBAL symbols failed: duplicate definition of symbol Name HOT 4
- Could not find JSON::Fast:ver<0.16+> HOT 8
- IS there any way for a custom marshall function to get the level of indent? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-marshal.