Comments (9)
Thanks @lconklin for the issue. Just to confirm, what happens if you have the file in your user space instead of in the Python installation folder? Also does it make a difference if you run the shell as an admin?
The error is getting thrown from the Python standard lib around file permissions, so would be helpful to understand what is going on there
from pantab.
@WillAyd I receive the same error when running it outside of Python installation folder. Unfortunately, I do not have admin access on my machine to test that out. If there is anything else I can test let me know! Thanks
from pantab.
Is that other folder in your user space? Or is it still in an admin folder?
from pantab.
C:\Users<UserID>\Documents is where I tried running it
from pantab.
Very strange...so you are running the Python file from your Documents folder and trying to read a hyper file that exists in your Documents folder too right?
from pantab.
Yes that's correct. I have recreated the issue there and in other folder locations
from pantab.
If you completely remove pantab from the equation and just do open(the_file, 'rb') does Python throw the same error message?
(Excuse formatting - typing from phone)
from pantab.
The code below seems to work:
def run_read_data_from_existing_hyper_file():
print("Reading data from existing Hyper file")
hyper_file = 'C://Users//USER_ID//Documents//hyper to df.hyper'
print('Opening hyper file..')
open(hyper_file, 'rb')
print("The connection to the Hyper file has been closed.")
return True
if name == 'main':
run_read_data_from_existing_hyper_file()
from pantab.
Gotcha. Can you try to execute the script with the Python debugger? python -m pdb <the_script> should enter the debugger when the script fails and allow you to inspect the state of things
from pantab.
Related Issues (20)
- Pantab is eating RAM HOT 2
- What's the license for tableauhyperapi? HOT 1
- frame_from_hyper_query Invalid dtype: "��" - Issue with Duplicate Column Names HOT 11
- What's the best channel to ask questions? HOT 1
- frames_from_hyper not pulling when there's no data in the table. HOT 10
- Parquet Writer Implementation Not in pypi.org? HOT 3
- Make able to save columns in uppercase/lowercase HOT 1
- Memory Error when dataframe is empty HOT 5
- Enhance support for multiple tables (publishing to tableau server) HOT 16
- OutOfBoundsDatetime Error HOT 5
- TypeError: Column "event_is_failure" has unsupported datatype BOOL with nullability Nullability.NULLABLE HOT 2
- Python 3.11 - pantab/src/pantab.c:6:10: fatal error: 'cffi.h' file not found HOT 11
- Add Support for Tableau NUMERIC types HOT 5
- pypi Project links seem to be incorrect HOT 4
- Column Ordering Not Preserved HOT 4
- TypeError: Cannot use .astype to convert from timezone-naive dtype to timezone-aware dtype. Use obj.tz_localize instead or series.dt.tz_localize instead HOT 3
- Broken UTC timestamp writing HOT 2
- Regarding Limitation with Pantab1.1.0 with Date Datatype HOT 8
- Add pre-commit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pantab.