Questions tagged [environment]
The O/S in which a process is executed, especially settings that affect the process
2,807
questions
0
votes
0
answers
32
views
Installation and launch of payara not working
I have to install and launch Payara for a project but at launch using the command .\asadmin.bat start-domain and the result is this:
Error: Could not find or load main class Files
Caused by: java....
0
votes
1
answer
23
views
I want to create a second environment for Jupyterlab Desktop but fail
For a start, I have tried environments created with both python venv and conda. With the conda environments I have successfully created new kernels for use in Jupyterlab Desktop, so I can do some ...
0
votes
0
answers
15
views
Building task scheduling environment for training DQN agent
description:
I have a dataset which includes task requirements, nodes specifications, and resources usage. I need to use this data to train DQN agent to get optimal task scheduling. How can I build ...
0
votes
0
answers
9
views
Updating path for OS environment
Before you proceed, update the PATH
import os
os.environ['PATH'] = f"{os.environ['PATH']}:/root/.local/bin"
os.environ['PATH'] = f"{os.environ['PATH']}:/opt/conda/lib/python3.6/site-...
-2
votes
0
answers
19
views
How to make a RL environment with a datafram
I'm trying to learn implementation of reinforcement learning.
my data set is NSL-KDD and I already have normalized it in a pandas dataframe. now I want to use it as my RL environment but I have no ...
0
votes
1
answer
23
views
Syntax error in python3.7 site packages python_utils/converters.py
File "~/anaconda3/envs/posydon-conda/lib/python3.7/site-packages/python_utils/converters.py", line 89
if match := regexp.search(input_):
^
SyntaxError: invalid syntax
I ...
5
votes
4
answers
77
views
Subsetting a custom S4 class using the "subset" function within another function
I'm trying to define a subset method for my custom S4 class. While subsetting works as intended when I provide the subsetting critearia directly to subset, the method fails whenever I call it within ...
0
votes
0
answers
16
views
Make azure-pipelines.yml environment specific
How can I write azure-pipelines.yml to be environment specific.
For now in my angular application , I have one big azure-pipelines.yml which has all the stages defined : deploy_to_dev, deploy_to_sit ...
0
votes
1
answer
54
views
I'm trying to install pySurvival but this error appears
^ `/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked ...
0
votes
0
answers
32
views
Load environment variables from .env in Cypress (vite build) [duplicate]
Cypress test
I am writing a cypress test for my Ionic React app, compiled using vite. Specifically, I want to intercept a request to my endpoint:
const baseUrl = someBaseUrl;
cy.intercept(`${baseUrl}/...
0
votes
0
answers
20
views
R using eval() to evaluate functions in different environment [duplicate]
I am trying to evaluate an R function in a specific environment and getting different results than expected.
Example below, I would like to eval my function in testEnv, but when I set envir to that it ...
-1
votes
1
answer
42
views
Issue with Creating Conda Environment
I’m trying to run the code below in the command line from Anaconda Prompt to create a virtual Python environment from a YML file. The virtual environment is named environment.yml.
However, when I run ...
-1
votes
0
answers
25
views
VS Code created environment
Since my version should update for the geopandas library, I set my python version to 11 from the environment variables, but now none of my libraries like pandas numpy work, I tried updating all of ...
0
votes
0
answers
22
views
How do I mix conda environments for multi-projects in PyCharm?
I am currently facing a problem with mixed conda environments in PyCharm. Assuming I've a project A, which depends on project B and C. To keep things separated, project B and C each has their own ...
0
votes
0
answers
59
views
Packages excluded by strict priority or samtools not found
I have a yml file which needs to specify the package version so that it is consistent among multiple users. The yml file is activated in a Snakemake pipeline. The environment either runs into a ...
0
votes
0
answers
25
views
Conda in cmd doesn't behave as in conda prompt
I recently updated conda to the latest version and while it works flawlessly on the conda prompt:
it doesn't seem to work when i launch conda from a cmd window:
What i notice is the conda version is ...
-1
votes
0
answers
23
views
How to generate Solana key pair?
I am a fresher to Solana. So I tried to install solana environment to my pc.
My pc is using Windows 10 OS.
But I have an issue whild building solana environment.
After setup solana CLI, and I tried to ...
0
votes
0
answers
31
views
Using GAMLSS predictions within a wrapper function
I'm trying to write functions that wrap basic gamlss modeling (because I'm preparing a higher-level, application-specific package). But I've run into issues wrapping predict.
The example from the ...
-1
votes
0
answers
22
views
Modules aren't resolved using pip install -e command, however seem to be installed
I wanted to use "pip install -e path" so I can edit a package's source code. The package seems to be installed which I checked with "pip list". On VS Code, the package can't be ...
0
votes
0
answers
23
views
Is there an easy way to clean to the SAS environment between projects?
I want to make sure that there are no macro vars in existance after running one project and starting the next. I've found code that claims to do this but it also cleans the prompt vars that are defind ...
0
votes
1
answer
37
views
Understanding ls() scoping and environments
I'm having trouble understanding why this piece of R code works the way it does. Here is a simple function:
weird_ls <- function() {
some_env <- new.env()
assign("a", value = 1, ...
1
vote
1
answer
41
views
NX Feature Create: Receiving 'NX Expected a synchronous delegate but got an asynchronous one.'
Hello I am attempting to do a simple feature library generation using NX for angular
I use the UI, but the command it spits out is
nx generate @ngrx/schematics:feature --name=form --project=reps-...
1
vote
1
answer
28
views
Unable to create process using 'C:\Users\...\.conda\envs\env_STAligner\python.exe "C:\Users\...\.conda\envs\env_STAligner\Scripts\pip-script.py" '
When I create a new virtual environment with anaconda use
conda create -n env_STAligner python=3.8
I cannot use pip inside this environment but all other environment including system env. The error I ...
0
votes
1
answer
66
views
I have both cudatoolkit and cudnn in my conda environment, but pytorch is still using my CPU
(my_project_env) C:\\Users...\\pythonProject3\>conda list cudatoolkit
# packages in environment at C:\\ProgramData\\anaconda3\\envs\\my_project_env:
#
# Name Version ...
0
votes
1
answer
34
views
unable to get control of the terminal after executing script
source /path/to/your_script.csh <parameter_1> <parameter_2> && echo "hello world"
it just executes the script and comes out , doesn't execute the hello world part
When i ...
0
votes
1
answer
37
views
function arguments not found in call environment
I'm creating a function which takes column names as arguments and to plot survival plots. however my arguments can't be found in the calling function.
thanks in advance for your help
plt_survive <- ...
0
votes
1
answer
66
views
Angular 16 build mismatch
According to the docs ng build builds artifacts for production. My environment is as follows: environment.development.ts for development and environment.ts for production. When I build the app it uses ...
0
votes
1
answer
111
views
conda InvalidVersionSpec: Invalid version error when tryin to install from requirements.tct file
I created a requirements/txt file from a conda environment, usin conda.
The files looks like:
# This file may be used to create an environment using:
# $ conda create --name <env> --file <...
0
votes
0
answers
11
views
How to create a non episodal environment in OpenAI GYM
I have a non episodal environment and I want to train an agent in this environment. However, I don't want to attribute a 'done' flag to any state as I don't want my agent to identify any state as a ...
0
votes
0
answers
30
views
Issues verifying that JAVA_HOME is set as expected
relieved and grateful to find this community you have made and keep it up!
I installed JDK on my laptop, it is JDK20 on OS X Ventura 13.4.1 on ARM64
java version "20.0.2" 2023-07-18
Java(TM) ...
0
votes
0
answers
126
views
No module named "datasets" even after installation
I am trying to use the datasets package of huggingface . I am using conda and Git bash terminal in VS Code. The script file include
import datasets
However I got the message
ModuleNotFoundError: No ...
0
votes
0
answers
28
views
problems in torch.hub.load()
I' using the following script on a python notebook:
This is the class
class yolov5l6_ti_lite_640(ObjectDetector):
def __init__(self, dictionary):
super().__init__()
...
0
votes
2
answers
41
views
What is the relationship between a python interpreter and a global environment
There are a lot of good articles explaining why you should use python virtual environments. But what I am not able to find out is whether there is one global environment on my machine, or one per ...
0
votes
3
answers
277
views
docker build exactly same requirements.txt & Dockerfile, 4 weeks ago success, but currently failed
Steps to reproduce the failure.
Docker version 24.0.2
Python version in container 3.10.9 see base image
requirements.txt
pycurl==7.45.1
delta==0.4.2
fiftyone==0.21.0
filetype==1.2.0
Flask==2.2.2
kfp=...
1
vote
1
answer
51
views
Environment Variables not present in Windows Powershell, but everywhere else is fine
Thank you for taking the time to check out this posting. A while ago I accidentally deleted my PATHs record from my env variables. I have been trying to correct pick the right paths and fixing this ...
0
votes
0
answers
27
views
VS Code doesn't open from Git Bash terminal (but only in some conda environments)
I am used to calling the shortcut 'code' to open VS Code from the Git Bash terminal, either in a specific folder or to open a file. This works fine in my default environment with common packages. But ...
1
vote
3
answers
3k
views
Fail to load Unity project in Vscode
I'm using Unity 2021.3.28f version.
An error appears when I open VSCode from Unity, and the project can't load, resulting in autofill not working. How can I fix this?
`*[warning] The project file 'c:\...
-2
votes
1
answer
29
views
Format python virtual environment name on bash prompt without root access
Normally you would change simply PS1 in /bin/activate. Problem is the file is readonly. How would you do that from bash_profile, for example?
This is part of the /bin/activate file:
if [ -z "${...
0
votes
0
answers
26
views
Robosuite - Building Your Own Environment
robosuite: A Modular Simulation Framework and Benchmark for Robot Learning. I am trying to build my own environment in the robosuite/docs/quickstart.md #BYOE. I have followed the steps in order and ...
0
votes
0
answers
36
views
RL Custom Environment Stable Baselines
I am training a custom environment on gym, but when i try to apply the learn method, i get this error:
RuntimeError: Calling torch.geqrf on a CPU tensor requires compiling PyTorch with LAPACK. Please ...
0
votes
1
answer
105
views
Spring - Getting config values from another file
I have a Spring application where in I need to access certain credentials. To keep them stored secretly, in my application.properties I only declare the path to the file where the credentials are ...
0
votes
0
answers
20
views
Extend PATH for QProcess
I am working on a program built with Qt 6.5.1 where I want to extend the PATH environment variable to include /usr/local/bin. This is the code I have come up with:
QProcess *process = new QProcess(...
0
votes
0
answers
26
views
Generate different APK from same code base, using conditional compilation. Flutter
I have a Flutter App. I have to make two versions (apk) of the same application with some functionality changing between the two, although they're mostly similar.
I have a finished project that, on ...
-4
votes
1
answer
42
views
Python environment [closed]
When working with multiple Python environments, is it possible to activate the desired environment before working on a specific project. How to select correct Python interpreter and dependencies are ...
0
votes
0
answers
17
views
calling program in conda env with subprocess
I am trying to run a program (clinker) from a python script using subprocess - it should generate a html file containing a plot:
version 1:
cmd = f'clinker {files}-p "{work_dir}/plot.html"'
...
0
votes
0
answers
13
views
consumer in one consumer poll 0 record
The same code which means the exact same configurations for Kafka consumers.
In my local environment, the consumer works well and can poll lots of records, but in another testing environment, the ...
0
votes
2
answers
102
views
The way to pass system environment variables to child process in java
I want to create child process in JAVA, and I wantthis process to have parent's env variables and some new envariables all.
In my knowledge, If I use Runtime.exec(cmd, null), then child process just ...
0
votes
1
answer
38
views
How can list all packages etc. that are actually used in my env/code
I usually create a new envirnoment in conda for every new project I work on. Lats time I created a yml-File from my envirnoment. This I have to share with others so they can easily run my code. I ...
0
votes
2
answers
45
views
How to terminate the AWS Elastic Beanstalk environment?
I wanted to deploy react app with the help of docker environment on EBS. I kept all the values as default and created the environment but now I am facing this error. Now how can I terminate this ...
1
vote
1
answer
51
views
Failed measures to prevent conda from reverting to base environment
I installed Anaconda on my Windows 10 machine. The conda version is 4.9.0. The only non-base environment I have is py39 for Python 3.9
I followed this Stack Overflow answer in an attempt to keep ...