question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependency handling in boilerplates on Replit, and update status for Python Projects

See original GitHub issue

Describe the Issue

When using boilerplate code forked to the replit, replit used to install dependencies on the first run using the standard packager. That’s not a case anymore for the boilerplates, probably due to some missing required configuration. Replit seems to have changed their dependency handling, relying more on the replit.nix file defining the environment. This affects both JS and Python boilerplates.

Temporal workarounds

JS

npm install seems to do the job, when run manually. It doesn’t run when loading replit or pressing the Run button.

Python

Manual trying to use poetry install doesn’t seem to work. Changing replit.nix (added by the replit on forking) and adding required modules to the deps does the trick, for example, the Arithmetic Formatter requires adding

pkgs.python38Packages.pytest

Medical Data Visualizer at least:

pkgs.python38Packages.pandas
pkgs.python38Packages.seaborn

I wasn’t able to make poetry work, even after adding poetry package to the replit.nix, the poetry install installation was interrupted by error.


Affected Page

https://www.freecodecamp.org/learn/scientific-computing-with-python/scientific-computing-with-python-projects/arithmetic-formatter https://www.freecodecamp.org/learn/back-end-development-and-apis/basic-node-and-express/meet-the-node-console

Your code

N/A

Expected behavior

Ideally camper should not be required to make any manual actions to use the dependencies required by boilerplate.

Screenshots

No response

System

N/A

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:37 (37 by maintainers)

github_iconTop GitHub Comments

1reaction
gikfcommented, Jul 22, 2022

There are two more python projects in the Information Security, but they also don’t need additional dependencies.

1reaction
lasjorgcommented, Jul 15, 2022

Also, just in case anyone missed it I did open an issue for this. Just in case we want to talk about it more in-depth without “polluting” this issue.

https://github.com/freeCodeCamp/freeCodeCamp/issues/46885

Read more comments on GitHub >

github_iconTop Results From Across the Web

Replit config update status for Node.js challenges and projects
I just started a new Replit project with the latest changes in the boilerplate-infosec repo, and unfortunately, it doesn't seem like changing ...
Read more >
Managing dependencies and using NLP - Replit Docs
In this tutorial, you'll gain more experience with all three categories of dependencies. Specifically, you'll write an NLP (natural language ...
Read more >
boilerplate-project-timestamp - Replit
APIs and Microservices Projects - Timestamp Microservice.
Read more >
Can I lock package version from changing when closing replit ...
Try setting the version in the "pyproject.toml" file. It holds the dependencies and respective versions for your project. ... do I do it...
Read more >
PySimpleGUI
To create your own repl.it PySimpleGUI project from scratch, first choose the type of Python virtual machine you want. For PySimpleGUI programs, choose...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found