Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build from source #31

Closed
Leslie-Fang opened this issue Mar 24, 2020 · 2 comments
Closed

Failed to build from source #31

Leslie-Fang opened this issue Mar 24, 2020 · 2 comments

Comments

@Leslie-Fang
Copy link

Thanks for open-source this project.
I am following the readme in the main-page to build jittor from source(commit-id: 5f84bf1 )
However, I got this error message when I test the installation

export cc_path="/usr/bin/g++"
python -m jittor.test.test_example
....
  File "/usr/local/lib/python3.7/dist-packages/jittor/compiler.py", line 720, in check_cache_compile
    assert jit_utils.cc
AssertionError

With preliminary debug, I suspect I failed to import the jit_utils_core

import jit_utils_core as cc
if is_in_ipynb:
global redirector
redirector = cc.ostream_redirect(stdout=True, stderr=True)
redirector.__enter__()
except Exception as _:
pass

And I find jit_utils_core is defined in the jit_utils.cc with pybind.
Any thought to help debug this problem?

@Jittor
Copy link
Owner

Jittor commented Mar 24, 2020

Thank you for reporting this issue. This issue is similar to #13 , could you please try:

remove the jittor cache first rm -rf ~/.cache/jittor,

and run python3.7 -m jittor.test.test_example.

use python3.7 instead of python.

Please feel free to contact us if u have any other problems.

@Leslie-Fang
Copy link
Author

Thanks for the quick response. It solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants