#StackBounty: #python #installation #anaconda #virtualenv Moving Anaconda installation from one user account to another

Bounty: 100

I apologize if this is not the correct site for this. If it is not, please let me know.

Here’s some background on what I am attempting. We are working on a series of chat bots that will go into production. Each of them will run on a environment in Anaconda. However, our setup uses tensorflow, which uses gcc to be compiled, and compliance has banned compilers from production. In addition, compliance rules also frown on us using pip or conda install in production.

As a way to get around this, I’m trying to tar the Anaconda 3 folder and move it into prod, with all dependencies already compiled and installed. However, the accounts between environments have different names, so this requires me to go into the bin folder (at the very least; I’m sure I will need to change them in the lib and pckg folders as well) and use sed -i to rename the hard coded paths to point from home<dev account>anaconda to home<prod account>anaconda, and while this seems to work, its also a good way to mangle my installation.

My questions are as follows:

  1. Is there any good way to transfer anaconda from one user to another, without having to use sed -i on these paths? I’ve already read that Anaconda itself does not support this, but I would like your input.
  2. Is there any way for me to install anaconda in dev so the scripts in it are either hard coded to use the production account name in their paths, or to use ~.
  3. If I must continue to use sed, is there anything critical I should be aware of? For example, when I use grep <dev account> *, I will some files listed as binary file matches. DO I need to do anything special to change these?

And once again, I am well aware that I should just create a new Anaconda installation on the production machine, but that is simply not an option.

So far, I’ve changed the conda.sh and conda.csh files in /etc, as well as the conda, activate, and deactivate files in the root bin. As such, I’m able to activate and deactivate my environment on the new user account. Also, I’ve changed the files in the bin folder under the bot environment. Right now, I’m trying to train the bot to test if this works, but it keeps failing and stating that a custom action does not exist in the the list. I don’t think that is related to this, though.

I’ve confirmed that the error I was getting was not related to this. In order to get the bot to work properly with a ported version of Anaconda, all I had to change was the the conda.sh and conda.csh files in /etc so their paths to python use ~, do the same for the activate and deactivate files in /bin, and change the shebang line in the conda file in /bin to use the actual account name. This leaves every other file in /bin and lib still using the old account name in their shebang lines and other variable that use the path, and yet the bots work as expected. By all rights, I don’t think this should work, but it does.

Get this bounty!!!

#StackBounty: #oracle #oracle-12c #installation Oracle SQLPLUS: ORA-12547: TNS:lost contact

Bounty: 100

This is a total rewrite of the previous post, where people suggested to start from scratch protocoling my actions.

  1. I used How to install Oracle 18c (Enterprise Edition) on Ubuntu 18.04?
    4-step guide + 1-step for troubleshooting.

  2. My machine is Ubuntu 18.04 (amd64) and distributive 18.3 Linux x86-64 downloaded from here. The distributive is run via ./runInstaller. On top of that I Inserted example database LINUX.X64_180000_examples.zip.

  3. Environmental variables:

    export ORACLE_BASE=/oracle18c/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/18.0.0/dbhome_1
    export PATH=/usr/sbin:/usr/local/bin:$PATH
    export PATH=$ORACLE_HOME/bin:$PATH
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
    export ORA_INVENTORY=/oracle18c/app/oraInventory
    export DATA_DIR=$ORACLE_BASE/oradata
    export TNS_ADMIN=$ORACLE_HOME/network/admin
    export ADR_HOME=$ORACLE_BASE/diag
    export ORACLE_SID=orcl
    export ORACLE_UNQNAME=orcl
    export PDB_NAME=pdb
    export TMP=/tmp; export TMPDIR=$TMP; export TEMP=$TMP
  4. Listener status:
    oracle@sergey-Bionic:~$ lsnrctl status
    LSNRCTL for Linux: Version - Production on 25-APR-2019 17:35:43
    Copyright (c) 1991, 2018, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sergey-Bionic)(PORT=1521)))
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version - Production
    Start Date                25-APR-2019 16:50:53
    Uptime                    0 days 0 hr. 44 min. 49 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /oracle18c/app/oracle/product/18.0.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /oracle18c/app/oracle/diag/tnslsnr/sergey-Bionic/listener/alert/log.xml
    Listening Endpoints Summary...
    The listener supports no services
    The command completed successfully
    oracle@sergey-Bionic:~$ ss -elpunt | grep -E "^Net|tnslsnr"
    Netid  State    Recv-Q   Send-Q      Local Address:Port      Peer Address:Port                                                                                  
    tcp    LISTEN   0        128                     *:1521                 *:*      users:(("tnslsnr",pid=3394,fd=8)) uid:54321 ino:39696 sk:12 v6only:0 <->       
  5. The error is still the same:
    oracle@sergey-Bionic:/$ strace -f -o /tmp/strace.log $ORACLE_HOME/bin/sqlplus /nolog
    SQL*Plus: Release - Production on Thu Apr 25 18:02:09 2019
    Copyright (c) 1982, 2018, Oracle.  All rights reserved.
    SQL> connect sys/oracle18c as sysdba;
    ORA-12547: TNS:lost contact

Solution suggested here Troubleshoot ORA-12547: TNS:lost contact error. does not help. What is interesting the value of ulimit -c is not persistent between reboots.

Any help, namely accessing a tutorial database, Oracle Database 18c Examples (18.3) for Linux x86-64, (sha256sum – 405ca9e9341a11f3468b792308c03781fc1988b4278395c1954984f2224a4d32), is highly appreciated!

Get this bounty!!!

#StackBounty: #updates #installation Cannot install / update apps

Bounty: 50

Since a short time ago, I cannot update / install apps.

E.g., if I try updating a given app, it is downloaded and shown as installing.

But as soon as the installation finishes, it shows again as available for updating, and I keep having in my phone the same “old” version.

What can be the cause, and solution for this? (I mean not to factory reset my phone…)

Could it be related to some setting in
Settings -> Apps -> Special Access -> Apps that can change system settings ?

Using Samsung J7 Prime, Android 8.1.0

Get this bounty!!!

#StackBounty: #npm #sass #installation #npm-init Solving the 'npm WARN saveError ENOENT: no such file or directory, open '/User…

Bounty: 50

I’m a newbie so please include links to URLs or explain terminologies so I can understand.

I’ve managed to install ‘npm’ on a Mac OS (10.13.3) via the terminal, and have installed some packages like SASS using it.

I’m now trying to install sass-mq using npm. I think I’ve managed to install it, but I’d like a second opinion on what I might have done that was incomplete, or wrong while doing it.

Initially, following the instructions on the sass-mq Github page, I was trying to use:

npm install sass-mq --save

which gave me this error:

npm WARN saveError ENOENT: no such file or directory, open '/Users/<username>/package.json'
    npm WARN enoent ENOENT: no such file or directory, open '/Users/<username>/package.json'
    npm WARN <username> No description
    npm WARN <username> No repository field.
    npm WARN <username> No README data
    npm WARN <username> No license field.

    + sass-mq@5.0.0
    updated 1 package and audited 1 package in 1.67s
    found 0 vulnerabilities

Looking around, I realised I’m meant to be using

npm init

..before typing my ‘install sass-mq –save’ command.

Cool, done that. Next error was this:

package name: (nikhil) sass-mq
version: (1.0.0) 
entry point: (index.js) 
test command: 
git repository: 
license: (ISC) 
About to write to /Users/nikhil/package.json:

  "name": "sass-mq",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "dependencies": {
    "sass-mq": "^5.0.0"
  "devDependencies": {},
  "scripts": {
    "test": "echo "Error: no test specified" && exit 1"
  "author": "",
  "license": "ISC"

Is this OK? (yes) 
darwin:~ nikhil$ npm install sass-mq --save
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "sass-mq" under a package
**npm ERR! also called "sass-mq". Did you name your project the same
npm ERR! as the dependency you're installing?**

I think this is saying that I can’t use ‘sass-mq’ (which is the name of the package, as the name of the local package (?) I’m installing into on my local machine. Some more info here.

So I simply tried this:

**package name: (sass-mq) media-queries-nikhil**
version: (1.0.0) 
git repository: 
license: (ISC) 
About to write to /Users/nikhil/package.json:

and it seems to have worked OK.

My question is: Is this the right way I should have done this? How do you usually do this?

Also, I get these warnings – is it OK to ignore them?

npm WARN media-queries-nikhil@1.0.0 No description
npm WARN media-queries-nikhil@1.0.0 No repository field.

I’m creating this question in part so others like me looking for the answer to a similar issue can find an explanation, instead of just commands they need to fix their issue. I found a few similar question-threads, but none that actually explained what was happening and why.

Thanks for reading, I really appreciate any help with this ūüôā

Get this bounty!!!

How to install Web Center Portal

Installing Oracle Web Center Portal has the following steps:

  • Download and Install:
    1. Weblogic Server 10.3.6 <!! 12c would not work, Only 11g Release 2 !!>
    2. Web Center Portal
      ollow the complete steps or follow the wizard as shown:
      *Please Note: Weblogic option will not be available if the Server version mentioned in the previous step is not 10.3.6. 12c will not work
    3. Database XE(Optional. install only if you dont have database already installed)
    4. RCU
      • In CMD, Open file


      • Follow the below steps to install RCU:
        2015-05-05_1724 2015-05-05_1725 2015-05-05_1726 2015-05-05_1726_001 2015-05-05_1727 2015-05-05_1729 2015-05-05_1729_001 2015-05-05_1729_002 2015-05-05_1729_003 2015-05-05_1730 2015-05-05_1730_001 2015-05-05_1731 2015-05-05_1731_001 2015-05-05_1809
  • Configure¬†Domain Config:

    2015-05-05_1819_001 2015-05-05_1819_002

    2015-05-05_1822_002 2015-05-05_1822_003

How to install Weblogic Server 10.3.6

Follow the link: Weblogic Server 10.3.6

  • Accept the user agreement radio button. The link to download(Oracle WebLogic Server 11gR1 (10.3.6)¬†ZIP Distribution) will be enabled.
    Note: You will be asked to login for the same.
  • click on the download link and the server jar file will be downloaded(wls1036_generic.jar)
  • Follow the complete steps mentioned here, or follow below steps:
    • Open CMD
    • Navigate to the directory where the file has been downloaded.
    • Run the following command as Admin

      java -jar wls1036_generic.jar

    • On Welcome, click the Next button.
    • On Choose Middleware Home Directory. select option

      Create a new Middleware Home

      click the Next button

    • On Register for Security Updates, enter email id, and unselect the security updates checkbox. This will disable update information.
      Click the Next button
    • Select Typical install on¬†Choose Install Type Screen and keep clicking next for default options as shown:
      Click on Done.
    • Domain Configuration(Quick Start) will open:
    • On the QuickStart links panel, select this link

      Getting started with WebLogic Server 10.3.6

    • Follow the wizard as shown below:
      Enter domain related details
  • Your weblogic server is now installed.