When I store the uploaded file as a variable and call the uploaded file once to store inside a variable, there seems to be no issues with it. But when I reference the uploaded file a second time to store it in another variable I get the following error:
It’s very hard to determine what this is from without the full code or knowing if that file location you passed is correct. The error seems to indicate that that file is either empty or doesn’t exist.
I have actually never used tabula so I’m not sure about its syntax in your code example. Also, you reference uploaded_file but haven’t included this in your Minimum Working Example (MWE).
Can you please provide a more detailed code snippet, or ideally a link to a GitHub repo where you’re developing this code to better understand your issue?
Use the community guidelines on making posts that helps others understand your question to help you get an answer:
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.