Questions tagged [environment]
The O/S in which a process is executed, especially settings that affect the process
2,618
questions
0
votes
0
answers
15
views
Safety and Clobber errors during clone of anaconda base environment (Version 2022.05)
I installed the anaconda distribution (version 2022.05) on a windows 10 (64 bit) machine. During installation I followed the recommendations given here (installed it only for myself and didn't add ...
1
vote
1
answer
29
views
Turn environment list to a graph
I have a function that lists all the accessible environments in the current session.
env_list <- function(start_env) {
# convenience function
last <- function(s) { s[[length(s)]]}
res <- ...
0
votes
1
answer
21
views
How to put API_KEY inside the ".env" file in a Flutter app?
I want to put my API key inside the .env file within my Flutter application and I did it like following:
API_KEY=ewwfwfwe
API_KEY = ewwfwfwe
API_KEY=`ewwfwfwe`
API_KEY = `ewwfwfwe`
But none of them ...
3
votes
1
answer
56
views
+250
pglm doesn't use any variables from local environment
I am writing some re-usable (hopefully) R code, and part of it is a pglm helper function:
pglm_helper <- function(family, fmla, fixed_effect, tbl) {
pglm::pglm(
fmla,
family=family,
...
-2
votes
0
answers
19
views
What is the easiest way for a non-developer on my team to share their technical environment for web application debugging? [closed]
I am working on a team as the only developer and I want to know if there is a way for other testers and trackers to share their technical environment? Similar to the info shown on the image attached ...
0
votes
2
answers
21
views
Conda change environment automatically when changing folder in powershell
I use PowerShell and python. As I have multiple project, I have also multiple conda environment.
I want to create a way to automatically change my environment based on the folder.
For the moment, I ...
0
votes
1
answer
20
views
multiple project use different launch setting profiles .net6
I have 2 net6 webapi project in same solution. I'm running same time 2 web api project. But i dont see anywhere how i debug Staging or Development environment. How i can select A project debug with ...
0
votes
1
answer
12
views
How to get windows login name
How can I get windows login name?
I need to print to db 'machine name' ( ${__machineName} ) and 'user name'.
Is there a way to get current user name?
Thanks,
0
votes
1
answer
20
views
docker desktop use container network alias as environment var for another container
Getting up to speed with Docker, and I'm stuck trying to pass the network identity (ip + port) of one container as an environment variable to another. I'm using Docker Desktop and running each ...
0
votes
0
answers
7
views
Check LMTOOLS ignores license file path environment variables
I want to enter the required information in LMTOOLS by creating a Batch file.
How to enable the LMTOOLS ignores license file path environment variables check box using the Batch file?
0
votes
1
answer
37
views
Installing packages with pip
I have been advised using pip in a Anaconda virtual environment is bad. But some packages are not on conda or on conda forge.
When I run
conda activate virtualenv
where pip
I get two paths, one which ...
0
votes
0
answers
17
views
When Trying run yarn, throw err; (Ubuntu)
When installing a development environment on my computer with yarn, I get the following error. I have already deleted NVM and YARN and reinstalled them but still, I get the same error:
yarn stg
...
0
votes
0
answers
10
views
Laravel 7: Website design not showing when run in localhost
I'm facing a problem while I'm trying to run my project. If I run the project with php artisan serve command it runs well. But when I try to access the project file with localhost/project all external ...
1
vote
1
answer
43
views
Upghrading a conda environment.yml file to current version that supports pandas 1.4.1
I have a environment.yml file and need pandas 1.4.1 and NOT pandas 1.4.2 due to a regression. How do I upgrade the active environment to everything that is current with pandas 1.4.1 without doing it ...
0
votes
0
answers
21
views
Empty visual studio react typescript template
i'm trying to create typescript app in Visual Studio 2022. I'm choosing "React standalone template" that uses typescript. After choosing it - console that install all the files needed appear....
0
votes
0
answers
5
views
How to use env in client side application (react.js/node.js)?
here is my env code
REACT_APP_APIKEY=AIzaSyCpP5Jdhy_dRmg_LxHfOyTWckrs74KQa6
REACT_APP_AUTHDOMAIN=assignment-11-e50b7.firebaseapp.com
REACT_APP_PROJECTID=assignment-11-e50b7
REACT_APP_STORAGEBUCKET=...
0
votes
0
answers
24
views
Microsoft SQL database project in Visual Studio 2019/2022 - How to deploy varying security principals/permissions dependent on target environment
I have database projects targeting Microsoft Azure SQL instances. The projects were created through and are managed by Visual Studio 2019 and Visual Studio 2022. The projects are deployed to multiple ...
0
votes
0
answers
13
views
GitHub Env Choice
Maybe someone is able to help. I have an example below, where you can choose an env you want to use. But if i have, for example, more then 10 envs, or i want to change them sometimes and i don't want ...
0
votes
0
answers
22
views
Add environment to VScode interactive window
I have some conda environments and using another environment set in '''.bashrc''' file as follows which is not a conda env:
function XX {
APEDIR=/vol/augerprime/software/ape/
APERC=$APEDIR/config/...
0
votes
1
answer
59
views
Adding libraries in Spyder
I installed the libraries I needed by using these commands below:
conda install matplotlib
conda install numpy
I see the '# All requested packages already installed.' in terminal. But when I try to ...
0
votes
2
answers
15
views
Discovering information about a Python Script Launched as a Service on Red Hat Linux
I have a client who has an existing Red Hat Linux server setup on Amazon Web Services (AWS) where the important Python server code is launched as a service using sudo service bigserver2 start. When I ...
0
votes
0
answers
28
views
Why do I have the same Python version in different environments?
I created different environments for different bioinformatic tools because I knew they would each require their own version of python. However, I am having troubles running one program and I think it'...
2
votes
0
answers
28
views
Github Action avoid approval on same environment rule within same workflow
Reusing same environment rule within same workflow
Running our workflow in Github, we split our tasks up into 2 jobs; Building docker image & attach tags and deploying to AWS using CodeDeploy. The ...
0
votes
0
answers
19
views
Precise specification of function environments
I would like to have the option of specifying very precisely (exactly, if possible) the behavior of functions. For example,
foo <- function() {}
Env <- new.env(parent=emptyenv())
environment(foo)...
2
votes
2
answers
94
views
Listing to knitr environment (R-markdown error when using list2env in R chunks)
Edit: I figured out that the issue stems from the yaml code. It comes from applying this solution to dynamically name files. I believe it creates a parent environment within the knitr code, because of ...
0
votes
0
answers
22
views
vscode remembers selected cmake kit of deleted folder
So if I make a completely new folder, open it in vscode, and run 'cmake configure' for the first time - the cmake extension asks me to select a kit. Note how this happens only on the first time 'cmake ...
0
votes
0
answers
5
views
How to run jupyter notebook from newly created anaconda virtual environment? [duplicate]
I have created a new virtual anaconda environment and named it "env".
After activating this "env" environment I'm not able to run jupyter notebook.
Please help me out to resolve ...
-2
votes
0
answers
25
views
Can't delete a directory that contains a python venv?
Hi I want to permanently remove a folder that has a python (3.8.5) venv but I can't?
I am using Windows 10 Pro and I created this folder in OneDrive.
I've followed some other threads but nothing works....
0
votes
0
answers
23
views
source cshrc file in python
I have to source a cshrc file from python and store the environment variables set by the cshrc file only in a dictionary. I am using this:
output = subprocess.check_output(
f'''source {file}; ...
0
votes
0
answers
10
views
Bug is fixed on localhost, but is still present/reproducible on environment?
A bug was reported in the environment. I managed to reproduce it locally and implemented the solution. After the deployment, the bug still remains to be reproducible in the environment. Any reasons ...
-1
votes
1
answer
35
views
Spring REST service behaving differently across environments
I'm developing a Spring REST service. In my local environment authentication failure returns a 401 response--the desired response. When the application is deployed to the test environment, however, ...
1
vote
0
answers
36
views
Databricks - Can we set environment variables for all clusters/using secret scopes in init scripts
I would like to use a databricks secret in an init script.
I can manually set an environment variable with ENVVAR={{/secrets/myscope/mysecret}} and then use ENVVAR in the init script. However doing ...
1
vote
2
answers
56
views
Is there any way to get Environment.SpecialFolder from file path?
I have a requirement where I want to get the Environment.SpecialFolder value from a file path.
Eg -
string filePath = @"C:\Program Files (x86)\text.txt"
//SpecialFolder sf = ...
0
votes
1
answer
37
views
Anaconda (3-2021.11) environment not showing up in Jupyter Notebook
I am having trouble getting my anaconda environment to show up in jupyter notebook. I'm not sure if the current solutions are dated or if I am doing something wrong. I make the behavior clear to ...
1
vote
0
answers
27
views
R: explanation of frames, substitute and deparse
I'm working my way through the R theory and struggling to fully understand the basic concept of R.
For this, I set myself the goal to extract the name of the variable that is passed as ...
0
votes
1
answer
23
views
CondaValueError: could not parse 'ÿþn a m e : m a t l a b _ 2 0 2 0 a ' in: .\environment.yml
Ideally I want a command that I can execute from a batch on Windows10. For the time being I'm experimenting with commands.
Right now this runs from a bat file but when I create an env from it the pip ...
1
vote
2
answers
45
views
What is a GitLab "environment" versus a software running environment?
GitLab Environments consist of a name and optionally a URL, according to its docs. In my software career an "environment" HAS a name, like "production", but CONSISTS of things ...
0
votes
0
answers
28
views
Stop My Program and Another Program From Receiving REAL User Input
I want to find a way to prevent my program (and a third party program being controlled by my program) from receiving any REAL user input.
We have purchased a third party program (a CAM program) to ...
0
votes
0
answers
32
views
Problem activating virtual environment using conda [duplicate]
I know a variation of this has been asked multiple times, but I wasn't able to fix the issue yet.
I'm on Windows and using conda to create a new environment:
(base) PS C:\ProgramData\Miniconda3\envs\...
0
votes
0
answers
50
views
How to deploy application to streamlit using conda and environment.yml file?
I have a streamlit application and an environment.yml file. This is a snippet of what the file looks like:
name: multivarPrphoetVar2
channels:
- conda-forge
dependencies:
- streamlit==1.8.1
- ...
0
votes
0
answers
25
views
Run Jax with PyTorch >=1.6.0 in same Environment
I am a big fan of Jax and have wrote a lot of code in it. At the same time, I have a bit of legacy code that I need to run with PyTorch (I am normally using 1.9.0). This hasn’t caused any issues until ...
0
votes
1
answer
31
views
How to get base conda installation directory (not CONDA_PREFIX)?
I'm trying to figure out the best way to get the base conda installation directory.
I wrote this but I know this isn't the best way to do it:
(base) -bash-4.2$ which conda
/usr/local/devel/ANNOTATION/...
0
votes
1
answer
30
views
Change Default Path of .env files in ReactJs ViteJs Project
I want to setup Multiple env file in ReactJs / ViteJs project, following the vite enDir documentation it should be something like that :
root
|
.env.dev
...
.env.prod
but since it can ...
0
votes
0
answers
39
views
Environment variables set through a script file showing in Docker run but not Docker exec
In my project, I used entrypoint.sh as a entrypoint wrapper script to set some dynamic variables inside the docker container.
#!/bin/sh
# entrypoint.sh
# Setting dynamic variable with another script
...
0
votes
0
answers
31
views
Issue installing soundfile
I'm trying to install soundfile in a new conda environment. I've tried everything and I keep getting the ModuleNotFoundError: No module named 'soundfile'.
On the same machine, I have an old conda ...
0
votes
0
answers
20
views
Run Python Script on multiple users on the same pc through console / powershell
How can I use a python script which needs certain versions of packages without being forced to install each package separately each time a new user runs the script. I read about virtual environments, ...
0
votes
0
answers
46
views
How to update paths after `module load` call inside modulefile
Is it possible to update PATHs immediately after a module load call inside a modulefile.
For the example shown below, a module named mymodule, the first call of module load mymodule will load conda ...
0
votes
1
answer
48
views
setting up scala for jupyter notebook
Hi i'm running trouble setting up scala on jupyter notebook.
I already created the environment on conda's command prompt but unlike python or julia environments i prepared before , this one is ...
0
votes
1
answer
49
views
Use powershell to set an environment variable (LOCID) based on what IP range the computer is in or the first 3 characters of the pc hostname
I've been using a cmd/batch file to create a locationid variable based on what IP range the computer is in. I need to do a similar function using powershell. Any advise would be welcomed.
As an ...
0
votes
0
answers
18
views
How to set eslint env for a spesific folder?
I have a project that contains two environments: browser and service worker.
In .eslintrc.js file I have
env: {
browser: true,
serviceworker: true
}
In service-worker.js file which could ...