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

FileNotFoundError: [Errno 2] No such file or directory: #179

Open
cwwjyh opened this issue Feb 26, 2024 · 3 comments
Open

FileNotFoundError: [Errno 2] No such file or directory: #179

cwwjyh opened this issue Feb 26, 2024 · 3 comments

Comments

@cwwjyh
Copy link

cwwjyh commented Feb 26, 2024

I have successfully installed viser by following the instructions below:

Install the package.

git clone https://github.com/nerfstudio-project/viser.git
cd ./viser
pip install -e .

Run an example.

pip install -e .[examples]
python ./examples/02_gui.py

but when I run python ./examples/02_gui.py, it occur some question as follow, I suggest it maybe the version of viser caused. Can you give me some advice? Thank you very much!
image
image

@brentyi
Copy link
Collaborator

brentyi commented Mar 11, 2024

Hi, sorry for the delayed response! Just got past some deadlines and still catching up on things.

Unfortunately this seems like a nodeenv issue; I haven't seen it before so don't have ideas for fixing the root problem. You could file an issue upstream.

As workarounds:

  • nodeenv is only used for development installs; it's not required if viser is installed from pip/pypi. But this might not be an option if you're using a forked version of viser.
  • nodeenv will also be skipped if you build the client manually. You can install nodejs/yarn, cd into /src/viser/client/, and run yarn && yarn build.

@cwwjyh
Copy link
Author

cwwjyh commented Mar 12, 2024

@brentyi Thanks for your reply! This is the problem with nodeenv. When I changed a server, it successfully running.

@smart4654154
Copy link

Hello, thank you very much for your question and the author's answer. I have successfully installed it in the Win10 system and shared it with those in need.
May I ask if this step is the same as your successful step?
cd ./viser
pip install -e .
pip install -e .[examples]
python ./examples/02_gui.py
At this point, an error will be reported

You continue to execute the following command:
cd ./src/viser/client/
npm install --global yarn
yarn
yarn build

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

3 participants