Questions tagged [environment]

The O/S in which a process is executed, especially settings that affect the process

environment
Filter by
Sorted by
Tagged with
0 votes
2 answers
148 views

How to access self variable array type?

I have defined subnetIds in serverless: enviroment: subnetIds: - subnet1 - subnet2 Now, at function define enviroment, I want to get each subnet like that: environment: ...
Sefirosu's user avatar
1 vote
0 answers
94 views

No module named 'setup_environment'

here is my code I am using jupyter on aws sagemaker # Environment Setup: import sys import os sys.path.append('data-science/commons/') import setup_environment import importlib importlib.reload(...
Mohamed Ashraf's user avatar
0 votes
0 answers
16 views

Use environment variable as connection with paramiko (Python) [duplicate]

How can I use environment variable to connect with paramiko package. My parameters currently are hard coded: client.connect(hostname="",username="",password="")
Natalie 's user avatar
1 vote
0 answers
357 views

SendGrid - Whitelist Environments

Currently we're using sendgrid in our production, dev and test environments. Is it possible to have sendgrid only allow emails to be sent to users on a whitelist? The use case is we have real user ...
agleno's user avatar
  • 448
0 votes
0 answers
84 views

Python os.environ unexpected behaviour

I'm trying to set environment variable in Ubuntu, just like: from uuid import uuid4 from os import environ, getenv, _exit mykey = str(uuid4()) environ['mykey'] = mykey getkey = environ['mykey'] ...
Pavel M.'s user avatar
  • 612
0 votes
1 answer
939 views

Jupyter Kernel dies when importing from transformers class on Mac (M1) OS

I am trying to run the following line of code for a class project but cannot get it to work! I have seen a similar question here: Jupyter kernel dies when importing pipeline function from transformers ...
Jake Wright's user avatar
1 vote
0 answers
114 views

Flutter Web and Firebase with Multi Environment

I started a Flutter Web project and used Firebase Auth, Firestore, Hosting, Functions and Storage. I have two different Firebase project for this app; one of them is for development, the other of them ...
Ceren Yaşa's user avatar
1 vote
0 answers
965 views

CommandNotFoundError error when trying to activating a conda environment in AWS SageMaker

The Problem I am working on an AWS SageMaker instance and simply trying to run a created conda environment MyEnv. However, when running conda activate MyEnv I am getting CommandNotFoundError: Your ...
PeeteKeesel's user avatar
2 votes
0 answers
174 views

Conda environment creation from yml does work locally but not on AWS SageMaker

I have a private GitHub repository in which I included an environment.yml file. What works: When I am trying to create an environment locally from a different laptop (compared to the one on which I ...
PeeteKeesel's user avatar
0 votes
0 answers
419 views

Failed to create conda environment ResolvePackageNotFound

I was trying to run a yaml provided by a git but got the following error: ResolvePackageNotFound: - python==3.8.3=cpython_he5300dc_0 - torchvision==0.8.2=py38_cu101 - faiss==1.7.1=...
Graceli's user avatar
1 vote
1 answer
503 views

DEPRECATED USAGE: Forwarding SINGULARITYENV_TMP as environment variable will not be supported (Nextflow)

I have a nextflow workflow using a singularity .sif file for one of the processes. After running my workflow I saw in the logs the following message: WARNING: DEPRECATED USAGE: Forwarding ...
1288Meow's user avatar
  • 329
0 votes
0 answers
666 views

php.exe is missing. gone

OS: Windows 10 yesterday I install xampp because I want to learn laravel. everything is normal. I setup laravel and all. and I got to develop some progress. before I went to sleep, I turn off my ...
dimas krisrianto's user avatar
1 vote
3 answers
137 views

How to assign a variable inside of an inner function to a variable in the outer function? [duplicate]

enter image description here x <- function(){ number<- 10 y <- function(){ number <- 20 } y() print(number) } x() This code prints the value 10. How would I set the value of &...
Ben_Roche's user avatar
0 votes
2 answers
269 views

Use PowerShell to change the Env:Path in a mounted windows image

I've written a PowerShell script to create a custom Boot.wim file that contains some useful utilities and custom .ps1 scripts along with the PowerShell executable. This all works just as it should. ...
RetiredGeek's user avatar
  • 3,093
2 votes
1 answer
273 views

Install Google Maps 4.7 on Conda Environment

I would like to to install the latest Google Maps (Version 4.7 as of today) in a conda environment. The question is, how to do it in the configuration file (The YAML file) which defines the ...
Mark's user avatar
  • 237
1 vote
2 answers
573 views

How do I inject Azure Dev Ops build variables into my environment.ts file/s

I want to reference Azure CI Build.BuildNumber variable in my Angular app, but need a way to inject the build number into the environment file. I have tried referencing the Azure environment variables ...
below43's user avatar
  • 517
0 votes
1 answer
1k views

How to resolve reference error "src/environments/environment.ts' is not a module."

Hi I am trying to implement the solution to hide sensitive Information(for example GOOGLE_API_KEY) To do this I have created environment.ts file and added to .gitignore section, as I don't want to ...
mad hu's user avatar
  • 15
1 vote
3 answers
62 views

How can I make type environments for an expression to satisfy specific conditions?

I have a question to make the environment of if true then x else y not closed, closed but not well typed, and closed and well typed. How can I do this in OCaml? All I know is that not closed means ...
user832075's user avatar
-1 votes
1 answer
48 views

VSC Conda Enviroments - Can select interpreter but kernel remains always at base

(This is the first time I am asking a question on Stack Overflow, so apologies in advance if I am breaking a convention). Context: I am using a work laptop with VSC, Anaconda (22.9.0), and Python (3.9....
MAttias Nilsson's user avatar
0 votes
1 answer
875 views

Qiime2 installation from pre built yaml file into conda environment doesnt work because of genomeinfodbdata package, how to fix?

When installing the newest qiime2 version (2022.8) into a conda environment with the given yaml file on the official qiime2 website. The installation gives an error which has something to do with the ...
Jippe's user avatar
  • 21
0 votes
1 answer
141 views

Conda dependency range specifiction: ResolvePackageNotFound

I have an environment.yaml with this content (MWE) name: the-env dependencies: - pandas>=1.5.0,<2.0.0 I run conda env create -f environment.yaml I get Collecting package metadata (repodata....
lo tolmencre's user avatar
  • 3,884
-1 votes
1 answer
371 views

SwiftUI Custom Environment Value

I try to make custom environment key to read its value as shown in the code below, I read many resources about how to make it and all have the same approach. Example Code struct ...
Ammar Ahmad's user avatar
0 votes
1 answer
429 views

How to get Program Files on Windows 64 bit in vb.net

Environment.SpecialFolder.ProgramFiles and Environment.SpecialFolder.ProgramFilesX86 returning x86 my pc is 64 bit so how to get Program Files on Windows 64 in vb.net or #c Dim ProgramFiles As ...
ElMaGeK MoSaAd's user avatar
0 votes
1 answer
157 views

How to package & share Selenium scripts with non-technical team?

I have a few python/selenium scripts that automate tedious work in browser-based apps (e.g., data entry from a CSV file). I would like to share the scripts with my team members who are tech-savvy but ...
Ellis Driscoll's user avatar
0 votes
2 answers
4k views

Can't install anything in conda environment. CondaSSLError: OpenSSL appears to be unavailable on this machine

I have set up a new environment on conda. Once it was created, I disabled threading so that the performance of the software I would be using will be maximised using: conda env config vars set ...
Ria Dunn's user avatar
0 votes
2 answers
693 views

python3 how to set os.environ variable when its value is json object?

Have tried, export "INDEX_SET"="{"index_all":false,"index_group":true,"index_channel":true,"exclude_chats":[],"include_chats":[...
data 's user avatar
0 votes
1 answer
190 views

PYTHONPATH environment variable

My virtual-environment worked perfectly until I upgraded to Ubuntu 22.04 LTS. But when I upgraded the virtual environment is not working any longer. It gives this message: ImportError: Couldn't ...
David H's user avatar
  • 45
2 votes
1 answer
2k views

Set Enviroment in WebApplication.CreateBuilder from configuration

So I'm trying to setup the webapp enviroment name according to the company deployment policy based on transformations of appsettings file during the pipeline deployment. We are using ...
freshbm's user avatar
  • 5,564
0 votes
0 answers
37 views

`which deactivate` command in a `Python` virtual enviroment prints out the whole function instead of a location

I simply create a Ptyhon virtual environment: python -m venv venv and activate it: source venv/bin/activate Then I run: which deactive and suppose to get a location, but I get: deactivate () { ...
Yusheng Wu's user avatar
0 votes
1 answer
232 views

No JREs that are compatible with JavaSE-16

The error below frequently occurs whenever a new Java Project is created. I know how to fix this issue but is there a more permanent solution so that my JDK system library is pre-installed instead of ...
Abdullah's user avatar
0 votes
2 answers
544 views

Updating a list object in the global environment from within a function in R

I am trying to update a global list from inside a function. Here is the code that does not work (can be sourced as a whole file): require(rlang) (my_list <- list(a = 1, b = "two", c = &...
4554888's user avatar
  • 87
2 votes
0 answers
2k views

openmpi not working; no error message; only show warning message "hwloc/linux: Ignoring PCI device with non-16bit domain."

I tried to use mpirun on my linux machine (Ubuntu 22.04LTS; linux kernel 5.14.0-1051-oem), however I only got a warning message: hwloc/linux: Ignoring PCI device with non-16bit domain. Pass --enable-...
x.y.z liu's user avatar
1 vote
1 answer
96 views

An R function cannot work in local environment of other functions

I use Matchit package for propensity score matching. It can generate a matched data after matching using get_matches() function. However, if I do not run the get_matches() function in the global ...
Qidi Man's user avatar
0 votes
1 answer
132 views

Script for exporting/importing a Python Virtual Environment (venv) - I'm looking for a way to easily move it to another computer

Normally when I want to move a Python-project to another computer it's always a bit of a hassle. I thought maybe there was a way to export/import a project with a bat-script (Windows 10), but I ...
Lorena's user avatar
  • 1
0 votes
1 answer
52 views

Load tibble to environment does not work as expected

From this simple piece of code df = tibble(A = 1) save(df, file = file.path("tmp.RData")) df = tibble(A = 2) # tmp <- rlang::env() tmp <- environment() load("tmp.RData", ...
paulduf's user avatar
  • 161
1 vote
3 answers
2k views

I think I screwed up my python installation

I'm sort of a beginner to python right now. I work in VScode. After I downloaded python 3.11, I was experiencing issues in VScode (importing and installing libraries wasn't working). I realized I had ...
Lavaa's user avatar
  • 25
-1 votes
1 answer
290 views

Mac : "gnupg 2.3.8 is already installed and up-to-date" BUT "zsh: command not found: gpg"

Hello I need gnupg in order to install RVM. When running from bash brew install gnupg, I get the following error : However when running gnupg I get :
Julie's user avatar
  • 25
0 votes
0 answers
15 views

In Pycharm , Selecting Interpreter

Let's say that Python has virtual environments env1, env2. When working with files within env1, I select the env1 interpreter, and when working with env2, I repeat the task of switching to the env2 ...
Chya's user avatar
  • 1
2 votes
1 answer
5k views

why does my conda deactivate doesn't work?

I am having troubles with my conda installation on a cluster. It seems that i can't deactivate any of my environments. it goes so far, that i have to close my terminal because it froze. I am working ...
Assa Yeroslaviz's user avatar
0 votes
1 answer
37 views

Terraform - Environment Handling Variables

I am trying to create DNS records for my various environments but for production I would like to use the apex domain directly; for most environments it returns dev or tst but I'd like for prd to ...
trickyricky's user avatar
0 votes
0 answers
514 views

Environment Variable does not update automatically on Changes in SwiftUI?

Context I am storing the current Profile inside the Environment of my App. This works great, however, sometimes SwiftUI does not automatically update the View when the Value of this Environment ...
christophriepe's user avatar
0 votes
1 answer
44 views

I want to share all of files in laravel framework named by t05 on github but it have a trouble .env file is not shared. I don't know why

I want to share all of files in laravel framework named by t05 but it have a trouble .env file is not shared. I don't know why. enter image description here
20jz0114グェン ヴァン ソン's user avatar
1 vote
1 answer
97 views

Undeploy API from Apigee X Environment of type "archive"

Does anyone have an idea how to "undeploy" an API proxy from an "archive" type Apigee-x environment? It seems like it can't be done from the Apigee UI, it throws an error: "...
Veselin Stoilov's user avatar
0 votes
1 answer
318 views

Laravel Dynamically load different .env file

I would like to ask how can I possibly dynamically load different env file setting? I have read the documentation, I have created two files (.env and .env.uat) .env for development and .env.uat for ...
Ming Tim Chan's user avatar
1 vote
0 answers
19 views

How to let Apple get logged into a closed environment on Citrix during app review?

Our organization and our environments run at closed environments (behind Citrix and no public access given to mobile apps connected to those). We have developed a mobile app for iOS, for one of these ...
user3394645's user avatar
0 votes
1 answer
450 views

How do I use an .env file to connect to a Postgresql database in Intellij?

The .env file has the following info: POSTGRES_USER=admin POSTGRES_PASSWORD=admin My Postgresql is running inside Docker. I now need to connect my Intellij with the database running inside Docker. I'...
santa_cloudy's user avatar
1 vote
0 answers
283 views

Angular - How to configure or import StoreDevtoolsModule at runtime or is there way to load json file before imports in app.module?

I am working with Angular 13.3.2 and using ngrx store and importing StoreDevtoolsModule in app.module.ts file like imports: [ .... other imports StoreModule.forRoot({root: appReducer}), EffectsModule....
shashi kanth's user avatar
0 votes
1 answer
111 views

OpenGauss environment installation problem

Traceback (most recent call last): File "/opt/software/openGauss/script/gspylib/os/gsfile.py", line 31, in <module> import psutil File "/opt/software/openGauss/script/gspylib/os/....
Sarah's user avatar
  • 13
0 votes
1 answer
111 views

why does pip export with a different version on subsequent conda env exports?

I have been trying to establish a pre-commit git hook to detect environment changes and create a new env.yml export automatically ... similar to the ones described here Where I am having trouble is ...
Garrett's user avatar
  • 193
0 votes
1 answer
476 views

Problem installing matplotlib using conda and virtual environment. ModuleNotFoundError

I have tried to install matplotlib in my environment "cs323V2"with the following commands: (cs323V2) conda install matplotlib Collecting package metadata (current_repodata.json): done ...
JuanMuñoz's user avatar

1
4 5
6
7 8
59