无法安装 Webservice::InterMine

huangapple go评论99阅读模式
英文:

Cannot install Webservice::InterMine

问题

我正在尝试在Ubuntu 22.04和perl 5.38.0上安装Webservice::InterMine,但我遇到以下错误:

  1. 加载内部日志记录器。建议使用Log::Log4perl进行更好的日志记录
  2. 读取'/home/con/.cpan/Metadata'
  3. 数据库生成于20238417:29:02 GMT
  4. 运行模块'Webservice::InterMine'的安装
  5. CPAN: Digest::SHA已成功加载(v6.04
  6. CPAN: Compress::Zlib已成功加载(v2.204
  7. 检查/home/con/.cpan/sources/authors/id/I/IN/INTERMINE/Webservice-InterMine-1.0405.tar.gz的校验和已成功
  8. CPAN: YAML已成功加载(v1.30
  9. CPAN: CPAN::Meta::Requirements已成功加载(v2.140
  10. CPAN: Parse::CPAN::Meta已成功加载(v2.150010
  11. CPAN: CPAN::Meta已成功加载(v2.150010
  12. CPAN: Module::CoreList已成功加载(v5.20230520
  13. CPAN: Module::Build已成功加载(v0.4234
  14. 使用Build.PL配置I/IN/INTERMINE/Webservice-InterMine-1.0405.tar.gz
  15. 已创建MYMETA.ymlMYMETA.json
  16. 'Webservice-InterMine'版本'1.0405'创建新的'Build'脚本
  17. INTERMINE/Webservice-InterMine-1.0405.tar.gz
  18. /home/con/perl5/perlbrew/perls/perl-5.38.0/bin/perl Build.PL -- OK
  19. I/IN/INTERMINE/Webservice-InterMine-1.0405.tar.gz运行Build
  20. 正在构建Webservice-InterMine
  21. INTERMINE/Webservice-InterMine-1.0405.tar.gz
  22. ./Build -- OK
  23. CPAN: CPAN::DistnameInfo已成功加载(v0.12
  24. INTERMINE/Webservice-InterMine-1.0405.tar.gz运行构建测试
  25. t/00-load.t ................................ 1/1 # 测试Webservice::Webservice::InterMine 1.0405,Perl 5.038000,/home/con/perl5/perlbrew/perls/perl-5.38.0/bin/perl
  26. t/00-load.t ................................ OK
  27. t/01_path/01_validate.t .................... OK
  28. t/02_pathfeature/01_pathfeature.t .......... OK
  29. t/03_constraint/01_constraint.t ............ OK
  30. t/03_constraint/02_constraint_factory.t .... OK
  31. t/03_constraint/03_template_constraints.t .. OK
  32. t/03_constraint/04_logic.t ................. OK
  33. t/04_query/01_core.t ....................... OK
  34. t/04_query/02_pathquery.t .................. OK
  35. t/04_query/03_saved.t ...................... OK
  36. t/04_query/03_scripted.t ................... OK
  37. t/04_query/04_template.t ................... OK
  38. t/04_query/05_good_and_bad_templates.t ..... OK
  39. t/05_template/01_factory.t ................. OK
  40. t/06_service/01_service.t .................. OK
  41. t/06_service/02_result_iterator.t .......... OK
  42. t/06_service/03_result_objects.t ........... OK
  43. t/06_service/04_serviced_queries.t ......... OK
  44. t/06_service/05_result_row.t ............... OK
  45. t/06_service/06_test_export_exclusion.t .... OK
  46. t/06_service/07_test_inclusion.t ........... OK
  47. t/07_intermine/01_integration.t ............ 1/44
  48. # 无法使用'Webservice::InterMine'
  49. # 在t/07_intermine/01_integration.t的第87行出错。
  50. # 试图使用'Webservice::InterMine'。
  51. # 错误:无法在/home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine/Service.pm的第833行上调用"host"方法的未定义值。
  52. # 在/home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine/Service.pm的第833行。
  53. # Webservice::InterMine::Service::fetch(Webservice::InterMine::Service=HASH(0x564ecb9444a0),"http://fake.url/path/service/version")在/home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine/Service.pm的第219行被调用
  54. # Webservice::InterMine::Service::__ANON__(Webservice::InterMine::Service=HASH(0x564ecb9444a0))在构造函数Webservice::InterMine::Service::new(在/home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine/Service.pm的第913行定义)的第141行被调用
  55. # Webservice::InterMine::Service::new("Webservice::InterMine::Service","fake.url/path")在/home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine.pm的第463行被调用
  56. # Webservice::InterMine::get_service("Webservice::InterMine","fake.url/path")在/home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine.pm的第207行被调用
  57. # Webservice::InterMine::import("Webservice::InterMine","fake.url/path")在t/07_intermine/01_integration.t的第87行被调用
  58. # main::BEGIN()在t/07_intermine/01_integration.t的第87行被调用
  59. # eval {...}在t/07_intermine/01_integration.t的第87行被调用
  60. # eval 'package main;
  61. # BEGIN { ${^WARNING_BITS} = $args[-1] if defined $args[-1] }
  62. # #line 87 t/07_intermine/01_integration.t
  63. # use Webservice::InterMine @{$args[0]};
  64. # 1;
  65. # '在/home/con/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/Test/More.pm的第1056行被调用
  66. # Test::More::_eval('package main; BEGIN { ${^WARNING_BITS} = $args[-1] if defined',ARRAY(0x564ec7c55fa0),“UUUUUUUUUUUUUUUUUUUU”)在/home/con/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/Test/More.pm的第1031行被调用
  67. # Test::More::use_ok("Webservice::InterMine","fake.url/path")在t/
  68. <details>
  69. <summary>英文:</summary>
  70. I&#39;m attempting to install Webservice::InterMine on Ubuntu 22.04 and perl 5.38.0, but I get the following error:
  71. Loading internal logger. Log::Log4perl recommended for better logging
  72. Reading &#39;/home/con/.cpan/Metadata&#39;
  73. Database was generated on Fri, 04 Aug 2023 17:29:02 GMT
  74. Running install for module &#39;Webservice::InterMine&#39;
  75. CPAN: Digest::SHA loaded ok (v6.04)
  76. CPAN: Compress::Zlib loaded ok (v2.204)
  77. Checksum for /home/con/.cpan/sources/authors/id/I/IN/INTERMINE/Webservice-InterMine-1.0405.tar.gz ok
  78. CPAN: YAML loaded ok (v1.30)
  79. CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
  80. CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
  81. CPAN: CPAN::Meta loaded ok (v2.150010)
  82. CPAN: Module::CoreList loaded ok (v5.20230520)
  83. CPAN: Module::Build loaded ok (v0.4234)
  84. Configuring I/IN/INTERMINE/Webservice-InterMine-1.0405.tar.gz with Build.PL
  85. Created MYMETA.yml and MYMETA.json
  86. Creating new &#39;Build&#39; script for &#39;Webservice-InterMine&#39; version &#39;1.0405&#39;
  87. INTERMINE/Webservice-InterMine-1.0405.tar.gz
  88. /home/con/perl5/perlbrew/perls/perl-5.38.0/bin/perl Build.PL -- OK
  89. Running Build for I/IN/INTERMINE/Webservice-InterMine-1.0405.tar.gz
  90. Building Webservice-InterMine
  91. INTERMINE/Webservice-InterMine-1.0405.tar.gz
  92. ./Build -- OK
  93. CPAN: CPAN::DistnameInfo loaded ok (v0.12)
  94. Running Build test for INTERMINE/Webservice-InterMine-1.0405.tar.gz
  95. t/00-load.t ................................ 1/1 # Testing Webservice::Webservice::InterMine 1.0405, Perl 5.038000, /home/con/perl5/perlbrew/perls/perl-5.38.0/bin/perl
  96. t/00-load.t ................................ ok
  97. t/01_path/01_validate.t .................... ok
  98. t/02_pathfeature/01_pathfeature.t .......... ok
  99. t/03_constraint/01_constraint.t ............ ok
  100. t/03_constraint/02_constraint_factory.t .... ok
  101. t/03_constraint/03_template_constraints.t .. ok
  102. t/03_constraint/04_logic.t ................. ok
  103. t/04_query/01_core.t ....................... ok
  104. t/04_query/02_pathquery.t .................. ok
  105. t/04_query/03_saved.t ...................... ok
  106. t/04_query/03_scripted.t ................... ok
  107. t/04_query/04_template.t ................... ok
  108. t/04_query/05_good_and_bad_templates.t ..... ok
  109. t/05_template/01_factory.t ................. ok
  110. t/06_service/01_service.t .................. ok
  111. t/06_service/02_result_iterator.t .......... ok
  112. t/06_service/03_result_objects.t ........... ok
  113. t/06_service/04_serviced_queries.t ......... ok
  114. t/06_service/05_result_row.t ............... ok
  115. t/06_service/06_test_export_exclusion.t .... ok
  116. t/06_service/07_test_inclusion.t ........... ok
  117. t/07_intermine/01_integration.t ............ 1/44
  118. # Failed test &#39;use Webservice::InterMine;&#39;
  119. # at t/07_intermine/01_integration.t line 87.
  120. # Tried to use &#39;Webservice::InterMine&#39;.
  121. # Error: Can&#39;t call method &quot;host&quot; on an undefined value at /home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine/Service.pm line 833.
  122. # at /home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine/Service.pm line 833.
  123. # Webservice::InterMine::Service::fetch(Webservice::InterMine::Service=HASH(0x564ecb9444a0), &quot;http://fake.url/path/service/version&quot;) called at /home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine/Service.pm line 219
  124. # Webservice::InterMine::Service::__ANON__(Webservice::InterMine::Service=HASH(0x564ecb9444a0)) called at constructor Webservice::InterMine::Service::new (defined at /home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine/Service.pm line 913) line 141
  125. # Webservice::InterMine::Service::new(&quot;Webservice::InterMine::Service&quot;, &quot;fake.url/path&quot;) called at /home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine.pm line 463
  126. # Webservice::InterMine::get_service(&quot;Webservice::InterMine&quot;, &quot;fake.url/path&quot;) called at /home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine.pm line 207
  127. # Webservice::InterMine::import(&quot;Webservice::InterMine&quot;, &quot;fake.url/path&quot;) called at t/07_intermine/01_integration.t line 87
  128. # main::BEGIN() called at t/07_intermine/01_integration.t line 87
  129. # eval {...} called at t/07_intermine/01_integration.t line 87
  130. # eval &#39;package main;
  131. # BEGIN { ${^WARNING_BITS} = $args[-1] if defined $args[-1] }
  132. # #line 87 t/07_intermine/01_integration.t
  133. # use Webservice::InterMine @{$args[0]};
  134. # 1;
  135. # &#39; called at /home/con/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/Test/More.pm line 1056
  136. # Test::More::_eval(&quot;package main;\x{a}BEGIN { \${^WARNING_BITS} = \$args[-1] if defined&quot;..., ARRAY(0x564ec7c55fa0), &quot;UUUUUUUUUUUUUUUUUUUU&quot;) called at /home/con/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/Test/More.pm line 1031
  137. # Test::More::use_ok(&quot;Webservice::InterMine&quot;, &quot;fake.url/path&quot;) called at t/07_intermine/01_integration.t line 87
  138. # BEGIN failed--compilation aborted at t/07_intermine/01_integration.t line 87.
  139. # at t/07_intermine/01_integration.t line 87.
  140. # eval &#39;package main;
  141. # BEGIN { ${^WARNING_BITS} = $args[-1] if defined $args[-1] }
  142. # #line 87 t/07_intermine/01_integration.t
  143. # use Webservice::InterMine @{$args[0]};
  144. # 1;
  145. # &#39; called at /home/con/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/Test/More.pm line 1056
  146. # Test::More::_eval(&quot;package main;\x{a}BEGIN { \${^WARNING_BITS} = \$args[-1] if defined&quot;..., ARRAY(0x564ec7c55fa0), &quot;UUUUUUUUUUUUUUUUUUUU&quot;) called at /home/con/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/Test/More.pm line 1031
  147. # Test::More::use_ok(&quot;Webservice::InterMine&quot;, &quot;fake.url/path&quot;) called at t/07_intermine/01_integration.t line 87
  148. No url provided - either directly or on &#39;use&#39; at t/07_intermine/01_integration.t line 89.
  149. at /home/con/.cpan/build/Webservice-InterMine-1.0405-1/blib/lib/Webservice/InterMine.pm line 457.
  150. Webservice::InterMine::get_service(&quot;Webservice::InterMine&quot;) called at t/07_intermine/01_integration.t line 89
  151. # Looks like your test exited with 255 just after 1.
  152. t/07_intermine/01_integration.t ............ Dubious, test returned 255 (wstat 65280, 0xff00)
  153. Failed 44/44 subtests
  154. t/10_acceptance/01_live_test.t ............. skipped: Acceptance tests for release testing only
  155. t/10_acceptance/02_lists.t ................. skipped: Acceptance tests for release testing only
  156. t/10_acceptance/02_lists_with_tokens.t ..... skipped: Acceptance tests for release testing only
  157. t/10_acceptance/04_paths.t ................. skipped: Acceptance tests for release testing only
  158. t/10_acceptance/05_summaries.t ............. skipped: Acceptance tests for release testing only
  159. t/10_acceptance/06_redirection.t ........... skipped: Acceptance tests for release testing only
  160. t/10_acceptance/07_lazy_references.t ....... skipped: Acceptance tests for release testing only
  161. t/10_acceptance/08_enrichment.t ............ skipped: Acceptance tests for release testing only
  162. t/10_acceptance/09_widgets.t ............... skipped: Acceptance tests for release testing only
  163. t/10_acceptance/10_id_resolution.t ......... skipped: Acceptance tests for release testing only
  164. t/manifest.t ............................... skipped: Author tests not required for installation
  165. t/moose-hygiene.t .......................... ok
  166. t/pod-coverage.t ........................... skipped: Complete documentation coverage is coming shortly
  167. t/pod.t .................................... ok
  168. Test Summary Report
  169. -------------------
  170. t/07_intermine/01_integration.t (Wstat: 65280 (exited 255) Tests: 1 Failed: 1)
  171. Failed test: 1
  172. Non-zero exit status: 255
  173. Parse errors: Bad plan. You planned 44 tests but ran 1.
  174. Files=36, Tests=4540, 23 wallclock secs ( 0.26 usr 0.04 sys + 21.69 cusr 0.72 csys = 22.71 CPU)
  175. Result: FAIL
  176. Failed 1/36 test programs. 1/4540 subtests failed.
  177. INTERMINE/Webservice-InterMine-1.0405.tar.gz
  178. ./Build test -- NOT OK
  179. //hint// to see the cpan-testers results for installing this module, try:
  180. reports INTERMINE/Webservice-InterMine-1.0405.tar.gz
  181. how can I install this package?
  182. </details>
  183. # 答案1
  184. **得分**: 1
  185. "The WebService::InterMine module was last released in 2013, and is suffering from drift in the HTTP::Response module (from the LWP distro) on which it depends. See [Perl/perl5#20447](https://github.com/Perl/perl5/issues/20447). To use WebService::InterMine, you need to fix it for the latest HTTP::Response. It looks like the problem is that there is a missing header.
  186. There is another way, that's quite a bit of work and likely to cause problems in other areas. You can use LWP before the breaking change in 6.42. There are various ways to do that, but they tend to be book-length responses."
  187. <details>
  188. <summary>英文:</summary>
  189. The WebService::InterMine module was last released in 2013, and is suffering from drift in the HTTP::Response module (from the LWP distro) on which it depends. See [Perl/perl5#20447](https://github.com/Perl/perl5/issues/20447). To use WebService::InterMine, you need to fix it for the latest HTTP::Response. It looks like the problem is that there is a missing header.
  190. There is another way, that&#39;s quite a bit of work and likely to cause problems in other areas. You can use LWP before the breaking change in 6.42. There are various ways to do that, but they tend to be book-length responses.
  191. </details>
  192. # 答案2
  193. **得分**: 0
  194. 这个 bug 已经被[之前报告过](https://github.com/Perl/perl5/issues/20447)。
  195. 由于安装失败是在运行测试时发生的,您可以通过执行以下命令来安装这个模块:

cpanm --notest Webservice::InterMine

  1. <details>
  2. <summary>英文:</summary>
  3. This bug has been [previously reported](https://github.com/Perl/perl5/issues/20447).
  4. Since the installation failure is in running tests, you should be able to install the module by doing:
  5. cpanm --notest Webservice::InterMine
  6. </details>

huangapple
  • 本文由 发表于 2023年8月5日 03:27:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/76838690.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定