Questions tagged [environment]
The O/S in which a process is executed, especially settings that affect the process
2,391
questions
0
votes
1answer
31 views
Unable To Set Environmental Variables in Apache
I am trying to set environmental variables in Apache for a little added security, and access them with PHP. I am using SetEnv inside of the VirtualHost directive in httpd.conf. So in httpd.conf, I ...
0
votes
0answers
11 views
Use Anaconda environment in Atom (Mac OS)
I am working on Mac OS and installed Atom. I was wondering if there's a way to make all the packages from my anaconda3 environment available in Atom.
As of right now, runnning import scipy throws the ...
0
votes
0answers
30 views
Python fails to import NumPy, probably due to being in the wrong conda environment
I'm trying to run a Jupyter Notebook in Ubuntu 20.04. I have installed first Miniconda and then Anaconda Python as the latter download file was too large for my PC.
When running the notebook file to ...
0
votes
1answer
17 views
How to run a background process by PHP in windows?
I try to run a Python script as a background process from PHP on Windows using exec() on this way:
<?PHP
$python = 'C:\\Users\\User\\anaconda3\\python.exe';
$py_script = 'C:\\wamp\\www\\...
1
vote
0answers
7 views
How to make environment map view sharp using modal-viewer
Okay, this is a question I really haven't been able to find any answers to. Please help :)
I'm using modal-viewer to view a 3D-object.
I also use an environment map on that object.
My problem is that ...
1
vote
1answer
17 views
Creating requriements.txt in conda doesn't show versions [duplicate]
I've been working inside a conda environment (python==3.6). I've been trying to make a requirements.txt using
pip freeze > requirements.txt
The file shows the following:
pandas @ file:///C:/ci/...
0
votes
0answers
22 views
Definitive way to have two version of Debian, a stable one and the latest
How is the workaround for having two version of Debian, a stable one and a bleeding edge one, in a partition?
How to succesfully have such with the stable being a main/primary and the latest one is ...
0
votes
1answer
7 views
Using shared AWS config/credentials files locally in NodeJS ExpressJS app
Im asking this question because I spent a long time trawling google trying to find an answer to it and finally stumbled upon a single line in an AWS doc that pointed me to the correct answer, but it ...
0
votes
1answer
19 views
How to add single quotes in laravel .env
I want to add a single quote in the .env file but nothing of the following seems to be working:
ALL_VIDEOS=App\Models\Video::where(\'video_type\', \'=\', \'Free\')->get();
ALL_VIDEOS=App\Models\...
0
votes
0answers
26 views
How to create an environment in conda?
I'm having an error when I try run the command
conda create --name myenv
Below is the full error report
(base) C:\Users\damieng>conda create --name myenv
Solving environment: done
# >>>&...
0
votes
1answer
49 views
cant get env variables in dockerfile
I am trying to build my webapp in a gcloud run docker environment.
I want to build with staging environments and i was thinking i could use this part:
Here is my docker file:
FROM tiangolo/node-...
0
votes
0answers
11 views
Conda does not create environment (ResolvePackageNotFound)
I am trying to create a conda environment.
This is the yml file I have:
name: py3_pygeos
channels:
- conda-forge
dependencies:
- nbformat=5.1.2
- scipy=1.1 ...
0
votes
0answers
31 views
can't use the command “conda” on powershell, but it's been added to my environment
can't use the command "conda" PS C:\Users\HP> conda on powershell, powershell said it can't find conda
The "conda" item cannot be recognized as the name of a cmdlet, function, ...
0
votes
0answers
33 views
Broken anaconda environment 'EnvironmentLocationNotFound'
I've got error EnvironmentLocationNotFound in one of the environments, creation of new env from requirements.txt did not fix the issue. I think that error have been created by improper shuting down ...
0
votes
0answers
19 views
How to switch between environments in manually created functions?
Let's consider function below which perform panel fixed effects regression for panel data:
library(plm)
fit_panel_lr <- function(y, x) {
x <- cbind(as.data.frame(x),as.data.frame(y))
...
-1
votes
0answers
13 views
Manage multiple docker environments without code duplication
I have a deep learning project that could be run both on CPU and GPU. I want to dockerize my project. So, I create a Dockerfile.CPU environment. now, I need to create a Dockerfile.GPU environment. ...
-3
votes
0answers
66 views
Fast change between multiple `dev-xxx` in runtime without touching the `.env` files in Symfony 5
Environment description to later on build the question on top of it
Let's assume a project that is not multitenant and is deployed at a few N customers which are all known (N something between 10 and ...
1
vote
1answer
45 views
difference between two python interpreters
I'm setting a python environment for new M1 mac(newbie of MacOS).
What I've done is installing Xcode, VScode, homebrew, and python3 in VScode installing extensions.
Then I tried to build some python ...
1
vote
0answers
22 views
Editing environment variables from code in PyCharm?
I'm working on a subclass for ttk.frame from Tkinter that displays a pygame window. First I coded everything in IDLE and it worked. Here's my code:
from tkinter import ttk
import os
import pygame
...
0
votes
0answers
5 views
conda error ResolvePackageNotFound, when I have the package
I just installed a few packages from a git repository and now I am trying to create a conda environment with these packages. My yml looks like this:
name: ampeltest
dependencies:
- ampel-core
But I ...
0
votes
0answers
12 views
Looking for best practise for updating environment variable inside project
I have a Web project (kotlin & tomcat), which will be deployed on different stages. In order to behave differently on each stage, I'm checking for a environment variable called APP_XY_ENV which ...
0
votes
0answers
41 views
Collecting package metadata (repodata.json): killed. / Ubuntu 18.04
I'm installing some project and trying to make environment with miniconda 3 but i'm getting this error:
[INFO] Creating a new conda environment 'ray'...
Collecting package metadata (repodata.json): |
...
0
votes
0answers
44 views
python3 command not found Linux
In my linux(64 bit, 16.04) python3 or pip command is not working.
So I tried to find python3 folder in /usr/bin.
And executed
cd /usr/bin
cd python3
It gave me following error
bash: cd: python3: no ...
0
votes
0answers
17 views
Building a Bare-Metal ARM GCC Toolchain
I am trying to compile toolchain following the instructions of link below;
https://vivonomicon.com/2019/02/19/building-a-bare-metal-arm-gcc-toolchain-from-source/
When I run build_presequites.sh ...
0
votes
0answers
22 views
Getting user environment for currently logged on user (Powershell)
For a script that runs under system credentials, I need to determine the current user's environment (in particular the 'special Folders' such as MyDocuments Appdata etc.)
I can run this snippet, but ...
0
votes
1answer
35 views
Replicate Python environment on another computer [duplicate]
How can I replicate the python environment setup of a windows machine onto another computer and be able to run very specific scripts successfully.
We have scripts that were written and run in python 3....
0
votes
0answers
33 views
VS Code Ruby debugger is not responding
I've been trying to set up my Ruby environment in VS Code for quite some time, and I keep hitting a wall. Here is some information:
-Ruby version: 3.0.0 (as verified by ruby -v)
-VS Code Version: 1.52....
0
votes
0answers
23 views
How to create a customized environment in Open AI based on a trained neural network?
I am aware of the way to create a custom environment in Open AI.But is it possible to do it based on a trained neural network?
I have a trained neural network which specifies the relationship between ...
0
votes
0answers
29 views
Setting environment with pipes, lazy and function in R
I am aware that pipes can mess up with the environment, so when I use lazy I should also be explicitly mentioning what environment I would like. However, in the example below, when I use the pipe, the ...
0
votes
0answers
19 views
Google Colab session is down for unknown reason
https://github.com/rgilman33/simple-A2C-PPO
I tried to use A2C-PPO with his ipynb, so I use Google Colab for it.
While it was go smoothly in importing part and loading agent part, but the problem rose ...
0
votes
0answers
22 views
How do you create a Docker container that includes a conda environment and all its dependencies? [duplicate]
I'm attempting to create a Docker container for a data science project. The project uses Anaconda and conda environments and I'm working in Windows.
I'm completely new to Docker and have seen ...
0
votes
1answer
21 views
How to properly manage .env files in a microservices architecture
I have been working for some time on a project with a microservices architecture where each service has its own environment variables which are handled with a .env file for each service/repository.
A ...
0
votes
0answers
24 views
Do closures store global variables?
According to MDN,
"A closure is the combination of a function and the lexical environment within which that function was declared. This environment consists of any local variables that were in-...
0
votes
1answer
31 views
How to setup different database connection based on environment - codeigniter 3
I have set up environment on my codeigniter project as development, production.
I have used this code.
switch($_SERVER["HTTP_HOST"])
{
case "localhost":
define('ENVIRONMENT', '...
0
votes
0answers
24 views
How to change python path when activating conda environment?
I tried to run a shell script to check which python is used while activating Conda environment like below
source ~/opt/anaconda3/etc/profile.d/conda.sh
conda activate python3.7_test
which python
I ...
0
votes
0answers
12 views
jupyter notebook kernel tab add same environment twice
Python [conda env:python3.7_test] and python 3.7_test is the same environment but it is registered twice in a different name.
Currently, to manage conda environment, Iām using nb_conda packages. It ...
0
votes
1answer
46 views
Manage multiple database IDs across environments
At work we have different databases for production and development environments. Those databases have the same schema, but the data is quite different.
We have multiple "behavior variables" ...
0
votes
1answer
36 views
Possible bug with `list2env()`
In my R package, I have a function that looks essentially like this:
li <- list(foo = "bar", bar = "foo")
f1 <- function(list) {
list2env(li, parent = parent.frame())
}
f1(...
0
votes
0answers
6 views
Cannot import dash from the folder where it is installed with conda
I have successfully installed the latest dash version 1.19.0 via conda, however I cannot import it in Spyder. The package is installed in the same folder as where the package is looked for. There is ...
0
votes
1answer
49 views
Visual Studio Code not activating the selected python interpreter for jupyter notebook
My conda environments all show up in the select interpreter path. When I select the conda environment (Python 3.7.7 64-bit ('adv_ml':conda)) I want and navigate to an existing jupyter notebook in ...
1
vote
1answer
99 views
VSCode issue with Python versions and environments from Jupyter Notebooks
Issue: I am having issues with the environment and version of Python not matching the settings in VSCode, and causing issues with the packages I am trying to use in Jupyter notebooks. I am using a ...
1
vote
1answer
39 views
How to make configmap propagate to running pods (without restarting them)
When changing a variable in a configmap, the environment variables inside running pods are not updated.
We have a stateful pod that cannot be restarted easily.
Trying to update the environment ...
0
votes
0answers
27 views
Eslint config inside package.json is ignored on React.js build
Eslint is ignored in the React.js build.
In the text editor (for example, VS Code) the Eslint with the config in package.json works! But when I build with CI = true defined in .env, eslintConfig is ...
0
votes
0answers
9 views
Jupyter notebook can't connect to a kernel
For my jupyter notebook, I have several kernels. Except for python-cvcourse kernel, I can get the rest of the kernels connected.
python-cvcourse kernel doesn't work
May I know what possibly could go ...
0
votes
2answers
30 views
Hide API information
I have successfully connected my static html form to my Airtable DB after following a short tutorial, I say follow.... more taking snippets to use in my own environment.
This worked perfectly but my ...
0
votes
0answers
41 views
VSCode is running two different versions of Python - one for environment and one for system
I am trying to create geographical maps of data, and to do this I am trying to use the basemap package. As I was using Python 3.9 on Windows 10, installing basemap was nearly impossible. So I created ...
5
votes
1answer
43 views
Julia - If I activate a new environment, why can I still load modules from my general environment?
I was wondering how the environments in Julia work. I thought that by creating a new environment you should be able to see only the packages that are in that environment, but that doesn't seem to be ...
1
vote
1answer
62 views
How can I use the @Environment(\.calendar) in a View to initialize a @State variable?
I have a calendar view like so:
struct CalendarView: View {
@Environment(\.calendar) var calendar
@State var daysForMonthView: [DateInterval]
...
}
where i need to initialize the ...
0
votes
3answers
64 views
Path.equals behaves different on Windows and Linux
I use the following code to compare two Paths in Java:
import java.nio.file.Paths;
public class PathTest {
public static void main(String args[]) {
String path1 = "path1\\file1.jpg"...
0
votes
2answers
63 views
How can you make a change to the @Environment(\.calendar) in SwiftUI?
I would like to change the @Environment(\.calendar) to use calendar.firstWeekday = 2. How can I do that?