-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GUIDE] Running PyFunceble in Conda Virtual Environments #39
Comments
Nothing to add 👍 Can you make it a PR in the installation section? (As a new installation method of course) |
You really should try Mini(Conda) it takes all of < 1 minute to create an environment with PyFunceble and start testing. I'll never use Python on any Linux distro anymore without using Conda environments as it just works and specifying and changing python versions takes seconds to do. I have mentioned to @funilrys about creating a docker image that people can use which is probably something coming in the near future. For now just try Mini(Conda) we still don't experience any freezing on any of our many projects that use PyFunceble so despite me trying to make it freeze I have not been successful myself in replicating that issue. |
Have you actually tried running it in Mini(Conda) and isolating it as I |
Can rule out software-properties-common and python-pip for a start. But I promise you follow my guide I posted and in < 2 minutes you can have it running isolated in its own environment |
Inside Conda you use just pip Your version of python for the environment is specified when you create it thereafter just pip is used |
As for your earlier question about freezing and other packages that may be conflicting. A thought just popped into my head this morning. Have you checked AppArmor is not affecting things on your system? Some of my strangest problems on Ubuntu in the past have led to AppArmor configs |
Not at present. When I run tests it does indeed consume one core for a while but then it jumps to another core and keeps doing this. I think there is probably ways in Python to balance it across the cores better. I am sure multiprocessing will be tweaked as time goes by. I am sure @funilrys can review the way multi uses cores when he next has free time. I've however never had mine run into using swap at all. For the majority of my tests I am keeping processes to 50-100 so as not to ever drag the machine down and allow me to happily continue doing other things. |
Does test IPs too |
Here is a simply bash script which will create the environment for you, run your test and delete the environment when done. @maravento @funilrys
|
Sorry you can comment out the blacklist-whitelist installation I use that in my scripts No sudo at all this is created as myscript.sh (whatever you want to name it) in your own user folder everything runs as your user We centralized whitelisting which is now much more advanced if you go look at the project |
Until one day when a containerised version is produced this simple bash just about does that and perfectly too |
What is wrong with the environment name? It's merely a placeholder which is meant to be changed. dummydemo is not aimed nor intended to be funny or insulting. By all means rewrite it however you want it was as I stated ... An example, a basic guide and is to be adapted to be used in your own environments 🤔 |
I spend time writing an EXAMPLE for you can you can't even give a simple thank you for my time and effort merely pointing at what you perceive as bugs. I never said I was providing a 100% piece of software that is set and forget. You asked for an example script and I provided such. |
Hey @mitchellkrogza and @funilrys I think you have closed this a bit prematurely As @funilrys suggested this in the docs in #39 (comment) but the docs still not showing this very very very cool approach which have slipped my attention until now, I think a it should have a pin, until it is covered in the docs. I'm going to test it for sure 😃 |
This is my recommended way of running PyFunceble on just about any distro.
@funilrys guided me on this some time ago and I would actually never run PyFunceble now in any other way so kudos on this goes to him.
I in fact don't run anything to with Python now without it running inside a Conda virtual environment. Distributions like Ubuntu are especially troublesome with Python issues which are easily solved by just running Python in Conda environments.
@funilrys feel free to add to improve this in any way.
The text was updated successfully, but these errors were encountered: