GithubHelp home page GithubHelp logo

Comments (9)

WillAyd avatar WillAyd commented on June 10, 2024

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.

lconklin avatar lconklin commented on June 10, 2024

@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.

WillAyd avatar WillAyd commented on June 10, 2024

Is that other folder in your user space? Or is it still in an admin folder?

from pantab.

lconklin avatar lconklin commented on June 10, 2024

C:\Users<UserID>\Documents is where I tried running it

from pantab.

WillAyd avatar WillAyd commented on June 10, 2024

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.

lconklin avatar lconklin commented on June 10, 2024

Yes that's correct. I have recreated the issue there and in other folder locations

from pantab.

WillAyd avatar WillAyd commented on June 10, 2024

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.

lconklin avatar lconklin commented on June 10, 2024

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.

WillAyd avatar WillAyd commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.