2,866
questions
0
votes
0
answers
26
views
Unable to execute commands from the powershell terminal inside VSCode but they execute fine in powershell in the same directory
The PowerShell terminal inside VS code doesn't execute commands related to Git, Ruby, Seedling, and Ruby. But the PowerShell terminal in the same directory executes these commands correctly.
...
0
votes
1
answer
55
views
How to set the value of os.environ in python using the command line?
OS:Win10
reg add HKCU\Environment /F /V http_proxy /d "http://127.0.0.1:8080"
reg add HKCU\Environment /F /V https_proxy /d "http://127.0.0.1:8080"
I'm pretty sure this is the ...
0
votes
0
answers
17
views
urllib3/connectionpool.py line 1180 AttributeError: 'str' object has no attribute 'close'
Anytime I run a conda command, the command crashes with this error repeated multiple times
Traceback (most recent call last):
...
0
votes
0
answers
32
views
Python package and conda environnement
I have encountered a behavior relative to package versions in different conda environment that I don’t understand and seems illogical. There is probably something fundamental that I do not understand ...
0
votes
1
answer
25
views
Porting conda environments from intel to M2?/
I've been unknowingly using the intel version of anaconda to manage my python environments on my M2 mac mini, but I am now considering making the switch to the ARM64 version.
How would you recommend I ...
1
vote
0
answers
32
views
Tagging releases in a monorepo, in trunk
We have a monorepo and are using trunk based development (single trunk branch)
We have 2 environments dev and prods, and we want to tag the latest releases.
Should we tag each release env commit?
Like ...
0
votes
0
answers
48
views
'cygpath is not available, fallback to manual path conversion'
following 'conda deactivate' to use virtual venv I receive 'cygpath is not available'.
what is this and how to resolve?
(.venv) (base)
02acl@ali_ah MINGW64 C:/Users/02acl/AppData/Local/Programs/...
0
votes
0
answers
23
views
Pushing Changes Between Environments in AWS Amplify
I’m currently working on an Amplify app on AWS and encountering issues when trying to push changes from one environment to another. I use Git to track my changes, but whenever I attempt to push all ...
-1
votes
0
answers
13
views
pygame module not found, even though I installed it in my environment [duplicate]
the code snippet giving me trouble
I am trying to use pygame. I successfully used it but the next day somehow it broke. the error message is
PS C:\Users\Tyven Christopher> python -u "c:\Users\...
0
votes
1
answer
40
views
NSIS installer says environment variables are empty at runtime
Create basic.nsi to read an environment variable at runtime using ReadEnvStr:
!include "LogicLib.nsh"
Outfile "TestInstaller.exe"
Name "Test Installer"
InstallDir $...
0
votes
0
answers
21
views
Does AddSingleton<LoginState>() method creates multiple instances if I host this web application in multi pod environment?
Do we have more than one LoginState objects if my applications is scaled to multi pod environment. I am trying capture logged in user email ids to a class object and I am registering it as Singleton ...
0
votes
0
answers
22
views
"conda env create -f environment.yml" -- solving environment failed
I am attempting to implement a BNN posted on GitHub in the link attached: https://github.com/yucenli/bnn-bo.
In the README section, I tried running code "conda env create -f environment.yml",...
0
votes
1
answer
27
views
How to access environment variables for Scheduled Colab Enterprise Notebook Run
I currently have a notebook on Colab Enterprise that accesses environment variables from a .env file to get access into a database to do ETL. When I run the notebook manually using a runtime instance, ...
0
votes
0
answers
12
views
PyCharm creates environments depending on which unittest I run (using unittest library)
When I run tests, there are different ways. You can right click and run on:
triangle next to test
triangle next to test class definition
space in the file above the test class
For some reason, all ...
0
votes
0
answers
13
views
Jupyter notebook showing incorrect version of Python in pycharm or vs code
Terminal shows python 3.10.10
Jupyter notebook shows 3.8.19
I am trying to create the new environment with different python version and use pycharm jupyter notebook. I have changed the interpreter and ...
0
votes
1
answer
30
views
How can i solve the error "TypeError: this __dict__ descriptor does not support '_DictWrapper' objects" in tf_agents?
I wrote a reinforcement learning algorithm using tf_agents, complete with a custom environment and network. The observation from the environment is a dictionary (I tried creating the environment both ...
0
votes
0
answers
50
views
Change environment variable for executed java program
I have a java program I want to run (that I did not write; I only have the .jar and I execute it with java), and it puts a bunch of gunk in my home directory, so I'd like to export a new home ...
0
votes
2
answers
142
views
How to get environment name in Program.cs file in .NET 8?
I am trying to add appsettings.json file for different environments. How do I get environment name in program.cs in .NET 8 that looks like this:
var options = new ConfigurationBuilder()
...
-2
votes
1
answer
142
views
How to Avoid "No module named 'dotenv'" Error After Installing python-dotenv in Anaconda Environment?
I used VS Code and created a conda enviroment. Then I wrote the following code:
from dotenv import load_dotenv
load_dotenv()
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model="...
1
vote
1
answer
38
views
Pass element form character vector in loop to function and use in assign
I have a function that chooses, reads and formats Excel reports from Workday, and produces data.frames. I've simplified for purposes of begging for your help. :-)
In the function, I pass a parameter ...
1
vote
1
answer
33
views
Conda will not deactivate environment for removal
I am trying to remove all traces of an environment so that I can set it up again. Unfortunately, conda thinks that the environment is active no matter how many times I type conda deactivate.
I'm using ...
0
votes
0
answers
51
views
Initialize environment modules in TaskProlog with Slurm
I have the following Slurm setup (with slurm version 24.05.0):
one server running slurmctld
one server running slurmdbd
one login node and
(currently) one compute node.
On the compute node, there ...
0
votes
0
answers
46
views
Error for mitosheet only when run in streamlit
I am trying to use the mitosheet python package with streamlit. I have installed mitosheet to my virtual environment by "pip install mitosheet".
I only have the following few lines of code ...
0
votes
1
answer
37
views
How can I install python and pip via conda without internet access during environment creation in AzureML?
I need to create an environment in AzureML, however there is no public internet access configured in the network settings of my workspace. I can access my Python packages locally on a storage account ...
1
vote
1
answer
517
views
Env variable visible in Vite build production environement
I have only a simple frontend React/Vite application (used for AWS Cognito login), no backend.
All my environment variables are in an .env file prefixed with "VITE_".
How can I keep them ...
0
votes
1
answer
49
views
How to change python version
I have Python 3.11, and I want 3.8. I downloaded 3.8, and removed 3.11 from path. My command prompt says:
C:\Users\forha>python --version
Python 3.8.0
In VScode, my terminal says
C:\Users\forha\...
0
votes
1
answer
39
views
Command Prompt/ Powershell loads miniconda environments. WSL loads anaconda3 environemts
When I run conda env list on Powershell, I get the following list of environments in miniconda3:
# conda environments:
#
base C:\Users\name\miniconda3
quant C:\...
0
votes
0
answers
34
views
Invalid python interpreter selected in HPC
I interact with the HPC of my workplace via VScode, and my company’s HPC system uses Linux, so my terminal is in Bash. For my projects, I created a custom environment (call it environment RE). The ...
1
vote
0
answers
72
views
How to setup unleash environment with golang
I am currently working on a task and I am stuck. We use unleash and have default, development and production environment but we only use default. While connecting to unleash using golang, we don't ...
0
votes
0
answers
56
views
Error Loading Large .RDataTmp File into RStudio
I am encountering an error when trying to load a .RDataTmp file into RStudio. The file is approximately 87 MB in size. Here are the steps I've taken and the issues I've encountered:
I have tried ...
0
votes
1
answer
75
views
Can`t create a Windows Flutter Desktop app, VS2022 C++ toolchain absent from "flutter doctor" output
After some time, I tried to create a Windows Flutter app. But I found out the VS2022 toolchain isn't listed on the flutter doctor output anymore:
So, when trying to create a new Windows Flutter app I ...
-3
votes
2
answers
257
views
How to create an environment-aware configuration in Laravel 11?
I'm working on a Laravel 11 project and I need to set up environment-aware configurations that is accessible with config method. For example, I have a constant.php file in the config directory for ...
0
votes
0
answers
24
views
Issue with Pod file build
I've been struggling with building my project on Xcode. Getting errors such as "Linker command failed with exit code 1 (use -v to see invocation)" and "/Users/node_modules/react-native/...
0
votes
0
answers
59
views
R in VS Code: can't show variables Environment/Workspace
I recently started using VS Code for programming R but I always have issues with getting the environment/workspace to work. I need it to have an overview of my variables (and especially the data ...
0
votes
0
answers
41
views
Dynamic environment (URL) in IONIC Angular
As the title says, I am looking for a way to use only one environment.prod.ts file where the environment URL can be set from the login screen in my Ionic app, but I can't find a way to make it dynamic....
1
vote
0
answers
72
views
How to access environment variables loaded using Vite defineConfig in index.html?
I know that prepending environment variables with VITE_ exposes them to Vite and they become accessible in the index.html file with %VITE_MY_VARIABLE%.
Also, what I understood from the docs is that, ...
0
votes
1
answer
276
views
How to fix mamba install timeout error on ubuntu
I am using a bash script to create a conda environment for a project. The bash script uses mamba create command. I have installed mamba using their official guide. However, when I run the script, I ...
-1
votes
1
answer
243
views
Change Poetry Python version
Context
I want Poetry to use Python 3.12.x
Poetry is installed globally, and I've set Pyenv to default to 3.12 globally on my machine
I'm using VSCode
In the terminal in my project, I've done poetry ...
1
vote
1
answer
52
views
Nextflow process running in AWS with docker container can't find program in $PATH, although program is there
I'm running a nextflow pipeline on AWS which executes a series of processes, each with their own docker. The pipeline has worked well locally, but when I run it on AWS I am getting a strange command ...
0
votes
0
answers
110
views
kafka Kraft Production setup ( one node is down another broker also getting down)
Kraft cluster 3 node i am using .If one node is down another broker is also getting down.
Do we need configure any additional configuration for production environment?
data replication also not ...
1
vote
1
answer
98
views
Is there a nice way of cleaning up an old conda base environment littered with packages?
Asking for those of us who have been using python and conda for a long time, and installed a bunch of packages in the base environment when we were first learning, and now want to clean things up to ...
0
votes
1
answer
450
views
How to create conda environment using python built from source that is located in a separate directory
I built python 3.11 from source on a research cluster following the guide in this post.
Now, I would like to create a Conda environment using this python version that is stored in a directory like ...
0
votes
0
answers
13
views
How to check Python environment for hidden modules (not listed, but can be imported)
To expand on the title, my question comes in two parts:
Is it possible for a Python package to be installed in an environment as a dependency for another package, but not show up when you list down ...
1
vote
1
answer
42
views
share conda environments between devices using a cloud
How can I share conda environments between two (or more computers) automatically, so that changes I make on one device are available on the other the next time too? (think of PC and Laptop with the ...
0
votes
1
answer
70
views
How to export multiple profiles with env variables for different command in Makefile?
I'd like to create a Makefile which allows me to run a script on different environments what depends on secret ENV_VAR and exposed ENV environment variables:
export ENV_VAR=<secret_env_var>
...
0
votes
0
answers
58
views
Conda and Python Integration with C++: how to?
I'm facing an issue trying to call python code from a c++ application. I basically need to call python scripts and get the results, nothing too fancy.
I'm using Conda to manage my environments.
I ...
5
votes
2
answers
836
views
Why are there double parentheses around my Python virtual environment in Visual Studio Code?
After updating Visual Studio Code to version 1.88.0, I opened one of my Python projects and noticed that there are double parentheses in my virtual environment: ((env) ).
I'm using the Python ...
0
votes
0
answers
30
views
I tried create -n virtual environment with anaconda: An unexpected error has occurred
I want to make virtual environment. I installed powershell, anaconda, jupyter etc. and I set evironment variable. but I can't make virtual environment with anaconda help me. I studying python - ...
0
votes
0
answers
368
views
Setting specific package version in Google Colab
It's a long post but I'll try to make it more clear as possible.
For reproducibility reason, I would like to set up conda environment in Google Colab to use a specific version of some packages.
Based ...