Closed niits closed 5 days ago
cc @sauyon
Yeah, I have the same problem with 1.0.21. Was there any progress?
Ah, whoops, sorry. Missed that ping. This is a known bug due to how we handle paths; for now the workaround is setting your BENTOML_HOME=/some/path/without/at
; we haven't resolved this. If anybody would like to contribute this should be a good first issue!
Hi, I have a similar problem but it was occurred when I using command bentoml build
, is it a same cause? I'm using the fraud detection example repo.
Error message:
(MLOps) D:\Internship@Webcomm\ieee-fraud-detection\bentoml BentoML main examples-fraud_detection>bentoml build
Building BentoML service "fraud_detection:23byh2qpc2u3kper" from build context "D:\Internship@Webcomm\ieee-fraud-detection\bentoml BentoML main examples-fraud_detection".
Traceback (most recent call last):
File "C:\Users\acer\Anaconda3\envs\MLOps\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\acer\Anaconda3\envs\MLOps\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\acer\Anaconda3\envs\MLOps\Scripts\bentoml.exe__main.py", line 7, in
@sauyon What would be needed in a PR to make this issue dissapear, i.e., where would we have to make changes?
I ran into this issue today but setting BENTOML_HOME
did not help. Both my home directory and my username (on MacOS) contain @
symbols. BENTOML_HOME
helps with an @
in the path of the home directory, or at least I imagine it does, but bentoml will still try to add my username to the path which reintroduces the @
and breaks.
My workaround was to create a new user (called bentoml
:D), to move my project to that user's home, and to su - bentoml
in the shell I use to work with the project. That solved my getting started issues, but I can't say anything about long-term consequences of this.
If this is a small change (and you can point me to the location) I can perhaps resolve this as I have some spare time now during vacation season.
@sauyon, I can have a look into this.
feel free to take this @spyrosavl
ping
I also find this important :)
Describe the bug
Exception raised when creating
bentoml
directory with home directory containing@
characterTo reproduce
Steps to reproduce bugs:
linux
user containing@
character such assomeone@somewhere
https://github.com/bentoml/BentoML.git
with commit hash:a30d95e372daa646a2e644a90e0fe337512c6f82
BentoML/examples/quickstart
with commandpython3 train.py
Expected behavior
bentoml
dir should be createdEnvironment
BentoML:
1.0.12
Python:3.8.13
Platform:
Root dir:
/home/tran.duc.trungb@sun-asterisk.com/AI/pet_projects/BentoML/examples/quickstart
Conda env: