Duplicity "no module named dropbox" error - amazon-s3

I try to restore my backup from amazon using the following command as example
duplicity restore --sign-key '7F73FA36' --encrypt-key '5FD0100F' scp://rich#backup_server//mnt/backups/edge/main
and shell returns the following error
"Import of duplicity.backends.dpbxbackend Failed: No module named dropbox
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1466, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1459, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1312, in main"
Any advice will greatly help.

If you do not want to store backups in Dropbox, i suppose that this can be ignored.
I wondered the same as you, and looked a bit: it seems to me that Duplicity tries to load a Dropbox backend. See in /usr/lib64/python2.6/site-packages/duplicity/backends/dpbxbackend.py, there is a line from dropbox import client, rest, session
As i do not have this Python Dropbox library installed, it can not find it, but does not prevent me to use Duplicity for other backends

You may install dropbox python client by running
root#host# pip install dropbox2

Related

unable to start redis-cli from yugabyte database

I'm trying run redis/yedis on the yugabyte database by following https://docs.yugabyte.com/latest/yedis/quick-start/#linux.
I run the command ./bin/yb-ctl setup_redis but I end up with the error:
Setting up YugaByte DB support for Redis API.
Waiting for cluster to be ready.
Traceback (most recent call last):
File "./bin/yb-ctl", line 2104, in <module>
control.run()
File "./bin/yb-ctl", line 2081, in run
self.args.func()
File "./bin/yb-ctl", line 1967, in setup_redis_cmd_impl
self.wait_for_cluster_or_raise()
File "./bin/yb-ctl", line 1646, in wait_for_cluster_or_raise
if not self.wait_for_cluster():
File "./bin/yb-ctl", line 1591, in wait_for_cluster
cmd_list_tservers = self.yb_admin_cmd_list("list_all_tablet_servers")
File "./bin/yb-ctl", line 2036, in yb_admin_cmd_list
raise ValueError("Cannot form yb-admin command without knowing master addresses")
ValueError: Cannot form yb-admin command without knowing master addresses
Viewing file /tmp/tmpbg32mn95:
^^^ Encountered errors ^^^
2021-12-22 16:08:27,463 INFO: Waiting for master and tserver processes to come up.
I have my master and tserver both running after running the commands:
./bin/yb-master --flagfile master.conf >& /home/doug/mark/disk1/yb-master.out &
./bin/yb-tserver --flagfile tserver.conf >& /home/doug/mark/yb-tserver.out&
The master config file:
--master_addresses=192.168.1.62:7100
--rpc_bind_addresses=192.168.1.62:7100
--fs_data_dirs=/home/doug/mark/disk1
The tserver config file:
--tserver_master_addrs=192.168.1.62:7100
--rpc_bind_addresses=192.168.1.62:9100
--start_pgsql_proxy
--pgsql_proxy_bind_address=192.168.1.62:5433
--cql_proxy_bind_address=192.168.1.62:9042
--fs_data_dirs=/home/doug/mark/disk1
and in the master log I can see:
I1223 00:08:03.023463 1527298 heartbeater.cc:340] P 419a60d5690945c8ad23c42f7ba758ba: Connected to a leader master server at 192.168.1.62:7100
I1223 00:08:03.023666 1527298 heartbeater.cc:388] P 419a60d5690945c8ad23c42f7ba758ba: Registering TS with master...
But I'm not sure why I can't start up the redis-cli based on the tutorial link above?
Since you're running the yb-tserver & yb-master manually, try running this command:
./bin/yb-admin [-master_addresses server1:port,server2:port,server3:port,...] setup_redis_table
Note that YEDIS API is not a focus, it must be viewed as a deprecated API for new application development purposes. (docs link)

locusts-plugins: FileNotFoundError: [WinError 2] The system cannot find the file specified

I've installed the locusts-plugins along with the other required modules as shown in the setup.py:
"locust>=1.4.3",
"psycogreen",
"psycopg2-binary",
"websocket-client",
"python-dateutil",
"pymongo",
"confluent-kafka",
"selenium>=4.0.0.b2",
"lxml",
"opencensus-ext-azure"
But when I attempt to run any of the examples using the webdrivers I get the error:
File "c:\users\mjohns33\pycharmprojects\pythonproject\venv\lib\site-packages\gevent\subprocess.py", line 1270, in _execute_child
hp, ht, pid, tid = CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
2021-04-12T20:11:44Z <Greenlet at 0x55012d0: > failed with FileNotFoundError
I have the standalone server running and chromedriver in the path, is there something I'm missing?
Thanks for the full callstack. The command that it is complaining about is killall, which is not available on Windows.
I've only ever run WebdriverUser on Mac and Linux. It might work if you just comment out that line (c:\users\mjohns33\pycharmprojects\pythonproject\venv\lib\site-packages\locust_plugins\users\webdriver.py, line 127)
(and manually kill chromedriver as needed)
I figured out that the locust-plugins is all-inclusive, meaning you don't want to install selenium or any other modules. Python, locust and locust-plugins, that's it.
I still see new errors but just having what's needed clears up a lot of these issues.

Is there any tool to automate Oracle Service Bus configuration for CICD and where to get it?

I have tried WLST. I am able to deploy wars. I have seen that there is a library to access OSB:
https://docs.oracle.com/middleware/1221/osb/java-api/toc.htm
https://docs.oracle.com/middleware/1221/osb/develop/GUID-AA6A4EAE-5F52-41B4-92A6-E0F3FACF5E2C.htm#OSBDV2771
I have read about WLI. In WLST console, I try the following:
wls:/osbdomain/serverConfig> from com.bea.wli.sb.management.configuration import SessionManagementMBean
Traceback (innermost last):
File "<console>", line 1, in ?
ImportError: no module named wli
I do not know if I have to download some JAR from anywhere or which install manual to follow.
Where is this JAR supposed to be? Where can it be downloaded?

gem5 FS mode run as super user fails with "IOError: Can't find a path to system files."

I am trying to run gem5 in FS mode. It works fine. But If I switch to super user(using sudo su) and then try then I get below error-
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/test/gem5/src/python/m5/main.py", line 435, in main
exec filecode in scope
File "configs/example/fs.py", line 344, in <module>
test_sys = build_test_system(np)
File "configs/example/fs.py", line 99, in build_test_system
options.ruby, cmdline=cmdline)
File "/home/test/gem5/configs/common/FSConfig.py", line 637, in makeLinuxX86System
makeX86System(mem_mode, numCPUs, mdesc, self, Ruby)
File "/home/test/gem5/configs/common/FSConfig.py", line 562, in makeX86System
disk0.childImage(mdesc.disk())
File "/home/test/gem5/configs/common/Benchmarks.py", line 58, in disk
return disk(self.diskname)
File "/home/test/gem5/configs/common/SysPaths.py", line 58, in __call__
raise IOError, "Can't find a path to system files."
IOError: Can't find a path to system files.
Any lead??
First, avoid running gem5 as with sudo/as root if you can, for the same reasons as any other programs.
I would guess that the command through sudo is not seeing the M5_PATH environment variable: How to keep environment variables when using sudo Can you ensure that the variable is visible to the executable?
Finally, as mentioned at Gem 5 IOError: Can't find a path to system files. Full System X86 simulation setup M5_PATH is not needed anymore, so I would really just never use it, and just explicitly point to the files gem5 needs with the command line options.

ImportError: No module named jupyter_core.command, path added with no issue persists

This has been discussed before but today I am seeing it again in my new company and it is a bit different this time:
I am doing a jupyter installation, first thing is I need to run the command to generate config file:
$ jupyter notebook --generate-config
I got error saying
Traceback (most recent call last): File
"/opt/cloudera/parcels/Anaconda/bin/jupyter", line 4, in
import jupyter_core.command ImportError: No module named jupyter_core.command
I found a similar discussion here, following it solved same issue in my previous company (both Anaconda 2/3 installed) but not this new company(Anaconda 4).
I suspect this relates to the needed library is missing, so I found the library's location and added it to $PATH
export PATH=$PATH:/opt/cloudera/parcels/Anaconda/pkgs/jupyter_core-4.2.0-py27_0/lib/python2.7/site-packages/
I ran the command again and the error persists.
What am I missing here? should I run any magic Linux command after the export?
Thank you very much.
Well, I faced the same problem too, and I solve it by change ~/.local/ group and owner from root to my account.I think it's a kind of permission issue, hope it works for you.
I change my owner from root to my account, then something wrong I met, my current account can't create related dirs, so, I changed my owner to root to create neccessary dir, meanwhile, chmod 777 to that dir. finally, my problem solved