No module named pywebhdfs.web hdfs - webhdfs

I’ve installed pywebhdfs on 5 nodes and verified each by
python
help ('pywebhdfs')
Help on package pywebhdfs:
NAME
pywebhdfs
FILE
/../pywebhdfs/init.py
Getting "No module named pywebhdfs.web hdfs"
Appreciate and help
Thanks

You need to install something else as well:
pip install WebHDFS

Related

Trouble running openai gym environment on google colab

Error that I'm struggling with
I'm trying to use MarsExplorer (https://github.com/dimikout3/MarsExplorer) in google colab, but I'm struggling with properly importing it. I was able to successfully clone the repo, but when I try to run the demo mars_explorer isn't imported. How can I fix this?
Indeed #Dr.Snoopy makes a great point here. This is the line in test.py where it is expected to work:
from mars_explorer.envs.settings import DEFAULT_CONFIG as conf
Now, notice that this is being called from your runtime path, usually root in Colab's case (I suppose), then it should return an error.
Now, if installed, for instance with pip install -e you can both import the module and edit it as you go.
Check out these docs.-,6.1.2.%20The%20Module%20Search%20Path,-%C2%B6), they may be helpful to understand this error.
apply these two commands in colab cell:
!git clone https://github.com/dimikout3/GeneralExplorationPolicy.git
the above command will save GeneralExplorationPolicy folders in your colab and inside this folder you can find mars-explorer folder then make copy of the path of the mars-explorer folder for example. /content/GeneralExplorationPolicy/mars-explorer
then apply this command for install mars-explorer:
!pip install -e /content/GeneralExplorationPolicy/mars-explorer

Sypder: missing dependeny (parso version)

When I fire up Spyder, I recently get the following pop up:
error message parso dependency
However, the versions seems to correspond.
(base) C:\Users\ma.kofler>conda list parso
# packages in environment at C:\Users\ma.xxxxx\Miniconda3:
#
# Name Version Build Channel parso 0.5.2 pypi_0 pypi
Could anyone help me out?
Many thanks in advance
(Spyder maintainer here) To fix this problem you need to open the Anaconda Prompt and run there
conda install parso=0.7.0

hyperledger fabric run first-network of fabric-samples error on Mac

I do all the things just according to the official tutorial: https://hyperledger-fabric.readthedocs.io/en/release-1.0/getting_started.html
But it still does not work. Errors display as below:
My environment variables are set like this:
the red part is go and platform-specific binaries.
btw, I check the first error. It said: "open /opt/gopath/src/xxx...: permission denied". But there‘s no path to there:
I found this directory is set in first-network/base/docker-compose-base.yaml:
It makes me very confused. Anyone can help me?
Thanks very much!
I just solve this problem by getting help from another place:)
check ownership of files under fabric-samples folder and I found all the files belong to root.
then I need to take ownership for my user: sudo chown -R [my user] *
then it works!

Missing ecto_image_pipeline

I am trying to run object recognition kitchen adn to do mesh_object but when I run
rosrun object_recognition_reconstruction mesh_object --all --visualize --commit
I get this:
import ecto_image_pipeline.conversion
ImportError: No module named conversion
I found somewhere that I have to add the ecto_image_pipeline ros package to my local workspace and build the module by hand but I don't know how to do it. Can anyone help me please?

Doxygen and Graphviz on Lion

I have succesfully installed Doxygen and GraphViz on my mac (running Lion OS), but when I run doxygen with graphViz I get following error messages:
1) sh: dot: command not found
2) Problems running dot: exit code=127, command='dot', arguments='"/Users/../xxx.dot" -Tpdf -o
3) error: problems opening map file /Users/.../xxx_graph.map for inclusion in the docs!
If you installed Graphviz/dot after a previous failing run,
try deleting the output directory and rerun doxygen.
It must be a problem with my Graphviz/dot paths, but I dont know how to solve it.
I have already installed Graphviz using MacPorts but I still get the same error messages.
What could I do to solve this problem? Thanks in advance!
Thanks #cyfdecyf and #fkerber for your answers. WIth your answer I could be able to run the dot programm from the console, but I was not able to run doxygen with it. I did not know, but one has to manually give in the path of the dot program in the doxygen user interface. To do this one have to click on Expert -> dot (under topics menu) -> and give the path under DOT_PATH, in my case it was /usr/local/bin.
Thanks guys.
Try the following:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
Issue this on the command line and see if it solve the problem. You may also need to add it in ~/.profile
Refer to MacPorts' doc if you need more information.
I think you have put the path to your dot executable in your PATH variable so that it can be found if someone is just typing dot in the console.
Perhaps this page can help you:
http://www.sweeting.org/mark/blog/2008/05/26/mac-os-x-tip-setting-path-environment-variables

Resources