By joker .
i have installed django on windows7. created a virtual env, from view.py i tried to open a xlsx file which is saved in my local drive.
log Message:
File "C:\Users\AnsariMo\Envs\my_django_environment\lib\site-packages\xlrd\__init__.py", line 116, in open_workbook
with open(filename, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\serverPgm\\django_test\\chipIdInfo\\xml_files\\V16120.xlsx'
can you please help me to solve it. running view.py from virtual env, when i am running own python script to open the xls file, able to open/read successfully but from virtaul env , i am not able to open/read it.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
To get rid of this error you can try using os.listdir() function to check that at least python sees the file exists or not.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.