-
Notifications
You must be signed in to change notification settings - Fork 48
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
ubuntu installation problem on Google colab #26
Comments
After pip install, the file should have been generated. You need to verify you are executing commands in correct order. If the directory and the file is not generated, please provide the output of pip install. |
I'm using google colab to run the repo. After installation, when I use but when I run a model with this commands:
it logs error:
|
You should execute If you are using Colab, you may need to set the environment variables in a different way. Follow the document of Colab please. |
this is the output of pip install . -v: (no errors occurred)
but when I use: it says: |
Then the script is already successfully executed.
I'm not familiar with Colab, but I guess you need to set environment variables in |
Have you solved it? I'm having the same issue, the pip install script has been executed successfully, but the build/t-mac-envs.sh is not generated. |
@ma-hang Are you using colab? If you are using Ubuntu locally, I will try to reproduce the issue. |
Thank you for your reply. I am using Ubuntu on a local machine. I have temporarily resolved the issue because I found that the output of pip install showed Removing source in /tmp/pip-req-build-7v18ubx7 and Removed build tracker: '/tmp/pip-req-tracker-2fdqj__q' at the end. Since build/t-mac-envs.sh is located in the /tmp/pip-req-build-7v18ubx7 directory, I used the --no-clean option to temporarily resolve this problem. |
@ma-hang Thanks, I will try to find a solution. Currently, I recommend using |
I face same problem how to fix it? please help me, even I using pip install -e --no-clean it still no .sh file in build file
Downloading clang+llvm-17.0.6-x86_64-linux-gnu-ubuntu-22.04.tar.xz from https://github.com/llvm/llvm-project/releases/download/llvmorg-17.0.6/clang+llvm-17.0.6-x86_64-linux-gnu-ubuntu-22.04.tar.xz
Options like adding 'editable.t_mac-1.0.0a3.pth' |
@hellangleZ Maybe you can search globally for t-mac-envs.sh, my file is stored in the /tmp directory |
|
@hellangleZ @ma-hang I still can't reproduce the issue. However, I have opened a pull request to try to fix the issue. Can you test if this works for you? |
My environment is Ubuntu22.04 and a local VM, not colab , it build complete, but can't see the tvm module , how can I use other method to check if work or not, thanks |
|
@kaleid-liner @hellangleZ Let me briefly describe the problem I encountered: when I executed pip install . -v or pip install -e . -v , the .sh file was not found in the specified path. I guess the documentation may be missing some configuration? By observing the output during execution, I found that .sh is indeed generated when building t-mac, but after t-mac is successfully installed, the folder where the .sh file is located is deleted as a temporary file. So I added --no-clean to save the temporary file, then globally searched for the location of the .sh file, and then executed source xxx.sh to make tvm take effect. |
@ma-hang how to add , pip install -e . -v --no-clean? I used it , any it's still in this problem |
I get it. For the fix above, I try to resolve this issue by replacing path of t-mac-envs.sh with absolute path. Can you check if it works? |
OK, let me try ,will update later |
new code still this error |
|
@hellangleZ Hello, has your problem been solved? Use pip install . -v --no-clean, and then show me the output of your last part, and I'll take a look at it for you. |
I tried pip install -e . -v and pip install . -v, Neither of them can work properly, so I still need to use -- no-clean. |
@hellangleZ t-mac-envs.sh literally did two things:
Can you manually set these two environment variables as a workaround before I successfully reproduce and fix the issue? |
Can anyone solve the problem? |
Also stuck in this issue when installing in my development board. Solved it by switching to |
Hi, it's written in the readme that for ubuntu installation do:
but when I clone the project, it isn't any t-mac-envs.sh file in the build directory, leads error:
bash: build/t-mac-envs.sh: No such file or directory
how to fix?
The text was updated successfully, but these errors were encountered: