ramiroencinas / System-Stats-DISKUsage

Raku module - Provides Disk Usage Stats
Artistic License 2.0
0 stars 1 forks source link

If the module is exported? #1

Closed melezhik closed 2 years ago

melezhik commented 4 years ago

Hi @ramiroencinas ! I am having issue with importing the module after it's installed:

$ zef info  System::Stats::DISKUsage
- Info for: System::Stats::DISKUsage
- Identity: System::Stats::DISKUsage:ver<1.0.0>
- Recommended By: Zef::Repository::Ecosystems<p6c>
- Installed: Yes
Description:   Provides Disk Usage Stats
License:   Artistic-2.0
Source-url:  https://github.com/ramiroencinas/System-Stats-DISKUsage.git
Provides: 1 modules
Depends: 0 items

$ raku -MSystem::Stats::DISKUsage
===SORRY!=== Error while compiling:
Could not find System::Stats::DISKUsage in:
    inst#/Users/****/.raku
    inst#/Users/*****/rakubrew/versions/moar-2020.07/share/perl6/site
    inst#/Users/*****/rakubrew/versions/moar-2020.07/share/perl6/vendor
    inst#/Users/*****/rakubrew/versions/moar-2020.07/share/perl6/core
    ap#
    nqp#
    perl5#
$ raku -v
This is Rakudo version 2020.07 built on MoarVM version 2020.07
implementing Raku 6.d.

HTH

Aleksei

ramiroencinas commented 4 years ago

Fixed in this commit. Wait a couple of hours, uninstall the module with zef and reinstall it again.

melezhik commented 4 years ago

the module version has not changed, so no changes from my side:

localhost:Sparrow6 melezhik$ s6 --install raku-utils-system-stats-disk-usage
19:36:00 09/13/2020 [repository] install plugin raku-utils-system-stats-disk-usage
19:36:00 09/13/2020 [repository] installing raku-utils-system-stats-disk-usage, version 0.000001
19:36:00 09/13/2020 [repository] install System::Stats::DISKUsage to /Users/melezhik/sparrow6/plugins/raku-utils-system-stats-disk-usage/raku-lib
===> Searching for: System::Stats::DISKUsage
===> Updating cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Updating p6c mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/p6c1.json
===> Updated p6c mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/p6c1.json
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Installing: System::Stats::DISKUsage:ver<1.0.0>
localhost:Sparrow6 melezhik$ s6 --plg-run raku-utils-system-stats-disk-usage
20:12:43 09/13/2020 [task] run plg raku-utils-system-stats-disk-usage
20:12:43 09/13/2020 [task] run thing raku-utils-system-stats-disk-usage
20:12:44 09/13/2020 [raku-utils-system-stats-disk-usage] stderr: ===SORRY!=== Error while compiling /Users/melezhik/sparrow6/plugins/raku-utils-system-stats-disk-usage/task.pl
20:12:44 09/13/2020 [raku-utils-system-stats-disk-usage] stderr: 6
Could not find System::Stats::DISKUsage in:
    file#/Users/melezhik/.sparrow6/tmp/501063/1
    file#/Users/melezhik/sparrow6/plugins/raku-utils-system-stats-disk-usage/lib
    inst#/Users/melezhik/sparrow6/plugins/raku-utils-system-stats-disk-usage/raku-li
20:12:44 09/13/2020 [raku-utils-system-stats-disk-usage] stderr: b
    inst#/Users/melezhik/.raku
    inst#/Users/melezhik/rakubrew/versions/moar-2020.07/share/perl6/site
    inst#/Users/melezhik/rakubrew/versions/moar-2020.07/share/perl6/vendor
    inst#/Users/melezhik/rakubrew/versions/moar-2020.07/share/perl6/core
    ap#
    nqp#
    perl5#
at /Users/melezhik/sparrow6/plugins/raku-utils-system-stats-disk-usage/task.pl6:3
20:12:44 09/13/2020 [raku-utils-system-stats-disk-usage] <empty stdout>
20:12:44 09/13/2020 [raku-utils-system-stats-disk-usage] task exit status: 1
20:12:44 09/13/2020 [raku-utils-system-stats-disk-usage] task raku-utils-system-stats-disk-usage FAILED
ramiroencinas commented 4 years ago

Module version updated to 1.0.1

melezhik commented 4 years ago

works now. it raises an error now, but because the module does not work for Mac OS:

2:54:54 09/13/2020 [task] run plg raku-utils-system-stats-disk-usage
22:54:54 09/13/2020 [task] run thing raku-utils-system-stats-disk-usage
22:54:54 09/13/2020 [repository] installing raku-utils-system-stats-disk-usage, version 0.000001
22:54:54 09/13/2020 [repository] install System::Stats::DISKUsage to /Users/melezhik/sparrow6/plugins/raku-utils-system-stats-disk-usage/raku-lib
===> Searching for: System::Stats::DISKUsage
===> Installing: System::Stats::DISKUsage:ver<1.0.1>
22:55:05 09/13/2020 [raku-utils-system-stats-disk-usage] stderr: Failed to get the directory contents of '/sys/block': Failed to open dir: No such file or directory
  in sub DISK_Usage at /Use
22:55:05 09/13/2020 [raku-utils-system-stats-disk-usage] stderr: rs/melezhik/sparrow6/plugins/raku-utils-system-stats-disk-usage/raku-lib/sources/AFF1C63925514F9964DDCD13B1C929BCFE009FE5 (System::Stats::DISKUsage) line 14
  in block <unit> at /Users/melezhik/sparrow6/plugins/raku-utils-system-stats-disk-usage/task.pl6 lin
22:55:05 09/13/2020 [raku-utils-system-stats-disk-usage] stderr: e 5

22:55:05 09/13/2020 [raku-utils-system-stats-disk-usage] <empty stdout>
22:55:05 09/13/2020 [raku-utils-system-stats-disk-usage] task exit status: 1
22:55:05 09/13/2020 [raku-utils-system-stats-disk-usage] task raku-utils-system-stats-disk-usage FAILED