Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

__init__ when importing Base

未关闭
#449 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
julia, python
领域
api, backend

调研方向

使用 julia.install() 复现该失败,然后执行 from julia import Base。从 julia/core.py 和 julia/juliainfo.py 中的 traceback 位置开始,重点查看 JuliaInfo.load 和 Julia.init,然后将报告的位置参数不匹配与可用的初始化路径进行比较。当在所报告的 Julia 和 Python 设置下导入 Base 不再产生此 TypeError 时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

I also get a warning for PyCall by running julia.install()

julia.install()
[ Info: Julia version info
Julia Version 1.6.2
Commit 1b93d53fc4 (2021-07-14 15:36 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
Ubuntu 20.04.3 LTS
uname: Linux 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 x86_64
CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz:
speed user nice sys idle irq
#1-12 4084 MHz 78182 s 115 s 28318 s 3461819 s 0 s

Memory: 15.56124496459961 GB (6338.5703125 MB free)
Uptime: 29824.0 sec
Load Avg: 0.37 0.32 0.23
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
MANDATORY_PATH = /usr/share/gconf/ubuntu.mandatory.path
WINDOWPATH = 2
HOME = /home/andre
TERM = xterm-256color
DEFAULTS_PATH = /usr/share/gconf/ubuntu.default.path
PATH = /home/andre/venvs/epf_toolbox_venv/epftoolbox_venv/bin:/home/andre/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/julia/bin
[ Info: Julia executable: /opt/julia/bin/julia
[ Info: Trying to import PyCall...
┌ Warning: PyCall is already installed. However, you may have trouble using
│ this Python executable because it is statically linked to libpython.
│
│ For more information, see:
│ https://pyjulia.readthedocs.io/en/latest/troubleshooting.html
│
│ Python executable:
│ /home/andre/venvs/epf_toolbox_venv/epftoolbox_venv/bin/python
│ Julia executable:
│ /opt/julia/bin/julia
└ @ Main ~/venvs/epf_toolbox_venv/epftoolbox_venv/lib/python3.6/site-packages/julia/install.jl:90

from julia import Base
Traceback (most recent call last):
File "", line 1, in
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 656, in _load_unlocked
File "", line 626, in _load_backward_compatible
File "/home/andre/venvs/epf_toolbox_venv/epftoolbox_venv/lib/python3.6/site-packages/julia/core.py", line 248, in load_module
elif self.julia.isafunction(juliapath):
File "/home/andre/venvs/epf_toolbox_venv/epftoolbox_venv/lib/python3.6/site-packages/julia/core.py", line 239, in julia
self.class.julia = julia = Julia()
File "/home/andre/venvs/epf_toolbox_venv/epftoolbox_venv/lib/python3.6/site-packages/julia/core.py", line 468, in init
jlinfo = JuliaInfo.load(runtime)
File "/home/andre/venvs/epf_toolbox_venv/epftoolbox_venv/lib/python3.6/site-packages/julia/juliainfo.py", line 97, in load
return cls(julia, *args)
TypeError: init() takes from 6 to 11 positional arguments but 13 were given

主要语言
Python
星标
893
派生
101
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

JuliaPy/pyjulia 的其他 Issue

查看 JuliaPy/pyjulia 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。