posit-dev / posit-dev/shinylive

Path("__file__").parent to read csv and pkl appears not to be working

Open
#174 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
251
Forks
25
Avg merge
19m
Merged PRs (30d)
2

Description

I had previously deployed to GitHub pages using this app,

https://github.com/erikhall6373/heisman/blob/4820a8d252ae87b939719236f4bde2497396434f/Shiny_App/app.py

However now it appears that the Path(file).parent or Path("file").parent trick does not work for me. Did recently change to using pd.read_pickle. Just wanted to point to a time in which app working reading in data.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Shiny_App/app.py at the referenced commit and inspect the Path(file).parent usage alongside pd.read_pickle and the CSV reads. Reproduce the failure in the current Shinylive deployment and compare the file-loading behavior; done means the referenced data files load successfully in the deployed app.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.