environment

How to activate a virtualenv using a makefile?

≯℡__Kan透↙ 提交于 2019-12-02 00:46:51
问题 At the top of my makefile I have this line: SHELL := /bin/sh which is needed for most of the commands. However, I would like to also have a make command to activate my virtual env, which is on a different path. Here is the code that I wrote for it: activate: source ~/.envs/$(APP)/bin/activate; \ The problem with this is, that this just prints out what is written here, and it doesn't get executed. I read that it might have something todo with only bash knowing about source, but I can't figure

Error in `setDT` from `data.table` package

时光怂恿深爱的人放手 提交于 2019-12-01 22:57:48
问题 It seems like setDT returns an error whenever you are trying to run it on a stored data in the datasets package. For example library(data.table) setDT(CO2) ## Error in assign(name, x, parent.frame(), inherits = TRUE) : ## cannot change value of locked binding for 'CO2' The strangiest thing is that if you rerun setDT(CO2) it will work So I've looked in the source code of setDT and tried to reproduce the error x <- CO2 name <- as.character(substitute(x)) assign(name, x, parent.frame(), inherits

TERM environment variable not set on mac

ⅰ亾dé卋堺 提交于 2019-12-01 22:49:08
I keep on getting the "TERM environment variable not set." error when I work with svn commands on my Mac terminal. I thought I had set up my profile by doing: export SVN_EDITOR=/usr/bin/nano export EDITOR=/usr/bin/nano in .profile and .bash_profile, reset the terminal and it still gives me that error. Any help? Add this to your profile: export TERM=xterm-color 来源: https://stackoverflow.com/questions/3911574/term-environment-variable-not-set-on-mac

Error in `setDT` from `data.table` package

半城伤御伤魂 提交于 2019-12-01 22:26:35
It seems like setDT returns an error whenever you are trying to run it on a stored data in the datasets package. For example library(data.table) setDT(CO2) ## Error in assign(name, x, parent.frame(), inherits = TRUE) : ## cannot change value of locked binding for 'CO2' The strangiest thing is that if you rerun setDT(CO2) it will work So I've looked in the source code of setDT and tried to reproduce the error x <- CO2 name <- as.character(substitute(x)) assign(name, x, parent.frame(), inherits = TRUE) Which worked and didn't return any error. My guess is that the parent.frame() is the one that

Windows JAVA HOME problems

家住魔仙堡 提交于 2019-12-01 20:38:42
问题 I'm trying to experiment with OracleHelp for Java on my Windows Vista server. I downloaded Oracle help, and I'm following their installation instructions which states: Unzip the OHJ installation .zip file into a directory of your choice Ensure that you have the JAVA_HOME environment variable set to the location of your compatible Java SE installation In the OHJ installation directory, there is a bin subdirectory containing Windows .cmd files and Unix/Linux shell scripts. On Windows platforms,

Windows JAVA HOME problems

爱⌒轻易说出口 提交于 2019-12-01 19:50:24
I'm trying to experiment with OracleHelp for Java on my Windows Vista server. I downloaded Oracle help, and I'm following their installation instructions which states: Unzip the OHJ installation .zip file into a directory of your choice Ensure that you have the JAVA_HOME environment variable set to the location of your compatible Java SE installation In the OHJ installation directory, there is a bin subdirectory containing Windows .cmd files and Unix/Linux shell scripts. On Windows platforms, double click on the .cmd files to launch them (or type the .cmd file name on the command line). On

No valid Maven installation found. Either set the

社会主义新天地 提交于 2019-12-01 19:18:38
No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system. 最近接手了一个新的JAVA项目,在IDEA中配置好了Debug了,点击Debug,在控制台报错如下: ? 1 [FATAL_ERROR] Cannot start Maven: No valid Maven installation found. Either set the home directory in the <ahref="#">configuration dialog</a> or set the M2_HOME environment variable on your system. 我以前的项目都可以正常使用Maven,这个项目居然不能使用了,我的~/.zshrc一切配置都正常,真是奇怪了。后来去stackoverflow上查了下,原来是Mac的Shell环境变量未必能够被GUI应用读到。解决方法如下: ? 1 sudovim/etc/launchd.conf //一般Mac上默认是没有这个文件的 在这个文件中加上你的M2_HOME的配置: ? 1 setenv M2

Do conda environments have access to 'root' environment? (== system packages)?

时光毁灭记忆、已成空白 提交于 2019-12-01 16:06:05
问题 What is the 'root' environment in conda? Is it just an environment which uses (only) the system packages? Do other environments use the system packages as well (I would assume giving preference to their versions of duplicates)? Or would I need to install all of my packages in the environment where I want to use them? Is there a way of configuring this as an option? I have a system package installed but I can't import it when I'm in a conda environment. 回答1: The root environment is just the

Spring 3.1 configuration: environment not injected

时光毁灭记忆、已成空白 提交于 2019-12-01 15:46:57
I am using the following for the spring 3.1 configuration: @Configuration @EnableTransactionManagement public class DataConfig { @Inject private Environment env; @Inject private DataSource dataSource; // @Bean public SpringLiquibase liquibase() { SpringLiquibase b = new SpringLiquibase(); b.setDataSource(dataSource); b.setChangeLog("classpath:META-INF/db-changelog-master.xml"); b.setContexts("test, production"); return b; } @Bean public EntityManagerFactory entityManagerFactory() { LocalContainerEntityManagerFactoryBean b = new LocalContainerEntityManagerFactoryBean(); b.setDataSource

Asp.Net VNext App Settings on Azure

淺唱寂寞╮ 提交于 2019-12-01 12:06:40
I really enjoyed the new Configuration feature of Asp.Net vNext using de default appsettings.json But I would like to change the values of that file when I publish the website as a Azure Web App. The old web.config appsettings was easy to change and configure the properties on the environment. Do you know how to do this? I prefer to user the default provider instead of creating a custom configuration provider. Thank you! If you set App Settings in the Azure Portal, they become environment variables at runtime, and should get picked up by the ASP.NET vNext runtime. So you don't need to