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.

Virtualenv Portability

See original GitHub issue

in addition to the make approach, would using virtualenv and deploying the framework via pip make sense to ensure integrity, consistency and that the python dependencies are met ?

something like:

mkdir /usr/local/twcmanager
cd /usr/local/twcmanager
virtualenv -ppython3 .
source bin/activate
pip install twcmanager-1.3.tar.gz

/usr/local/twcmanager/etc -> location for config.json and twcmanager.service (rather than /etc/twcmanager) /usr/local/twcmanager/bin -> TWCManager.py etc,…

this could then be a nice portable package ?

_Originally posted by @nean-and-i in https://github.com/ngardiner/TWCManager/pull/85#issuecomment-620453002_

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
bikeymousecommented, May 27, 2020

I would also love it if there where Docker images for TWC, that would be even more portable!

1reaction
ngardinercommented, May 8, 2021

Great feedback, thanks @bikeymouse

The OCPP error is a known issue - it’s related to a module that hasn’t been included in the development tree yet - the problem is that rather than publishing the latest version of TWCManager to Docker Hub, we’re currently publishing the latest GitHub build. I’ll need to do some proper release management to provide versioned docker images, for the moment you’re getting the latest and greatest (and most experimental) code.

I’ll get localtime added to the docker-compose.yml file as I think this is the best approach. Also, you’re 100% right about git clone being overkill here, I’ll replace it with an appropriate wget/curl of the file from github instead.

Really appreciate your feedback, it helps a lot to improve the Docker installation experience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Portable Virtualenv - Aaron's Blog
Ever wanted to move a Python virtualenv around but found it didn't work? Here's how you can create a portable virtualenv for Python...
Read more >
How to make venv completely portable? - linux - Stack Overflow
How do I make the venv portable along with all its dependencies and reliably deploy in another device just by activating it?
Read more >
Python Virtual Environments are Actually Easy… (If You Don't ...
A virtual environment helps keep your project bundled together with a list of its dependencies. This makes it portable and easy for someone...
Read more >
milos-korenciak/PortableVirtualenv: Portable virtualenv made ...
Portable virtualenv made from miniconda. Contribute to milos-korenciak/PortableVirtualenv development by creating an account on GitHub.
Read more >
venv — Creation of virtual environments — Python 3.11.1 ...
Because of this, environments are inherently non-portable, in the general case. You should always have a simple means of recreating an environment (for...
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