viser icon indicating copy to clipboard operation
viser copied to clipboard

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

Open cwwjyh opened this issue 1 year ago • 3 comments

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

cwwjyh avatar Feb 26 '24 02:02 cwwjyh

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.

brentyi avatar Mar 11 '24 16:03 brentyi

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

cwwjyh avatar Mar 12 '24 00:03 cwwjyh

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

smart4654154 avatar Mar 17 '24 13:03 smart4654154