pautobot icon indicating copy to clipboard operation
pautobot copied to clipboard

Error - with os.scandir(src) as itr:

Open sandyrs9421 opened this issue 2 years ago • 5 comments

Hello All ,

I am seeing below error when i run the python file. can anyone please share the next resolution steps for this ?

Error - File "/usr/local/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/shutil.py", line 559, in copytree with os.scandir(src) as itr: ^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/Users/FBT/Desktop/Projects/pautobot/pautobot/pautobot/frontend-dist'

sandyrs9421 avatar Jun 08 '23 06:06 sandyrs9421

@sandyrs9421 Please describe the steps you've used to install and run the package. Thank you!

vietanhdev avatar Jun 08 '23 13:06 vietanhdev

@vietanhdev - i have followed the below MAC install steps - post all the install steps when i run the python file i am seeing the. above error.

Mac Running Intel When running a Mac with Intel hardware (not M1), you may run into clang: error: the clang compiler does not support '-march=native' during pip install. If so set your archflags during pip install. eg: ARCHFLAGS="-arch x86_64" pip3 install -r requirements.txt

sandyrs9421 avatar Jun 09 '23 06:06 sandyrs9421

@sandyrs9421 Please upgrade your package and run it again:

pip install --upgrade pautobot
pautobot

vietanhdev avatar Jun 09 '23 14:06 vietanhdev

@sandyrs9421 Hi Sandyrs! I think version 0.0.24 will solve your problem.

pip install --upgrade pautobot
pautobot --version
pautobot

vietanhdev avatar Jun 10 '23 07:06 vietanhdev

thanks for the steps i do not see the error now. let me try to ingest one of the pdf and try now . will get back to you on how it goes.

thanks a lot again @vietanhdev

sandyrs9421 avatar Jun 10 '23 16:06 sandyrs9421