I have to install Hadoop before installing Pig package.
Hadoop requires a working Java 1.6.x installation.So I tried to run the following command to install sun-java6-jdk:
$ sudo apt-get install sun-java6-jdk
but I have problems and I obtain this error when trying to install any other package
Traceback (most recent call last): File
"/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 968, in
simulate
trans.unauthenticated = self._simulate_helper(trans) File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1092, in
_simulate_helper
return depends, self._cache.required_download, \ File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 235, in
required_download
pm.get_archives(fetcher, self._list, self._records) SystemError: E:I wasn't able to locate a file for the sun-java6-bin package. This
might mean you need to manually fix this package.
How to solve this problem?
Probably means that you have not (correctly) installed Hadoop, which is required for running Pig.
You can either install on a single node for testing / development and then deploy on a cluster if you have access to one.
Guide to install Hadoop (either single or cluster):
http://hadoop.apache.org/common/docs/stable/single_node_setup.html
http://hadoop.apache.org/common/docs/stable/cluster_setup.html
Related
I was following this github, where it gave me the following instructions:
Project was built with poetry (https://python-poetry.org/), so it is
recommended to get poetry first to install all the dependencies. After
poetry installation you can simply clone this repo, navigate to the
root directory, and run:
From the website I ran this command:
!curl -sSL https://install.python-poetry.org | python3 -
After executing this I get the following prompt:
Retrieving Poetry metadata
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the `poetry` command to Poetry's bin directory, located at:
/root/.local/bin
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.1.15)
Installing Poetry (1.1.15): Creating environment
Installing Poetry (1.1.15): Installing Poetry
Installing Poetry (1.1.15): Creating script
Installing Poetry (1.1.15): Done
Poetry (1.1.15) is installed now. Great!
To get started you need Poetry's bin directory (/root/.local/bin) in your `PATH`
environment variable.
Add `export PATH="/root/.local/bin:$PATH"` to your shell configuration file.
Alternatively, you can call Poetry explicitly with `/root/.local/bin/poetry`.
You can test that everything is set up by executing:
`poetry --version`
Thus, I ran the following command next:
!export PATH="/root/.local/bin:$PATH"
This gave no issues. But, after running poetry --version. It gave me the following error prompt:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-25-4666e7fa95ae> in <module>
----> 1 poetry --version
NameError: name 'poetry' is not defined
Can anyone help how to run this? I am new to colab. I got a similar question here. But, it is not working in my case.
Using something like this: !/root/.local/bin/poetry --version is working, but how do I add that $PATH in the shell configuration file in colab, so I don't have to call it by using the path before it every time?
I've just upgraded my home server OS to Ubuntu 20.04 and having funny problems.
It seems like somehow python's PATH information is messed up.
Traceback (most recent call last):
File "/home/myname/dirname/venvname/bin/pip3", line 6, in <module>
from pip._internal import main
ModuleNotFoundError: No module named 'pip'
After brief research, I've figured out Ubuntu 20.04 dropped support on Python2.
So I installed Python2 and pip manually and tried the above command again, but still throwing the same error.
Traceback (most recent call last):
File "/home/myname/dirname/venvname/bin/gunicorn", line 6, in <module>
from gunicorn.app.wsgiapp import run
ModuleNotFoundError: No module named 'gunicorn'
Moreover, It throws the same kind of error for Gunicorn.
So, I believe this is not a problem just related to Python2.
I know it is insufficient information for diagnostic, but I have no idea what would be helpful.
So any guess or ask for additional information would be appreciated.
EDIT 1) I've reinstall python on venv with
sudo apt purge python3
sudo apt install python3
and still have the same problem.
Does python3 -m pip works? I am not sure if it would work, but I resolved this kind of error by invoking pip like this previously.
After some tries, I've give up the original venv and make a new one. There was some chore to setup venv and project again, but it works just fine.
If anyone has the same issue, consider re-make another venv.
Tried several methods to install matplotlib on Ubuntu 16.04, but failed miserably. First I ran
sudo apt-get install python3-matplotlib, it always installed matplotlib 1.5.1 and I wanted the latest version 3.2.1. So I purged it and ran pip3 install matplotlib and what I got was always the following error
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-hse72gvy/matplotlib/setup.py", line 139
raise IOError(f"Failed to download jquery-ui. Please download "
^
SyntaxError: invalid syntax
which seems to suggest that I must install jQuery-UI. I haven't found any working solutions on the internet. Any more has a tip or solution?
I need the mod_wsgi whl file for win 64 bit-Apache webserver 2.2 +Python 3.5
I searched for it but could not get it. I have the one for apache version 2.4
Where do I get it?
when I try pip install mod-wsgi I get error
(r_web) C:\Users\Administrator\r_web\RosterWeb>pip install mod-wsgi
Collecting mod-wsgi
Using cached mod_wsgi-4.5.11.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ADMINI~1\AppData\Local\Temp\2\pip-build-xybcspx9\mod-wsgi\s
etup.py", line 150, in <module>
'missing Apache httpd server packages.' % APXS)
RuntimeError: The 'apxs' command appears not to be installed or is not execu
table. Please check the list of prerequisites in the documentation for this pack
age and install any missing Apache httpd server packages.
I am having a hard time installing lxml(3.1.0) on python-3.3.0. It installs without errors and I can see the lxml-3.1.0-py3.3-linux-i686.egg in the correct folder (/usr/local/lib/python3.3/site-packages/), but when I try to import etree, I get this:
from lxml import etree
Traceback (most recent call last):
File "", line 1, in
ImportError: /usr/local/lib/python3.3/site-packages/lxml-3.1.0-py3.3-linux-i686.egg/lxml/etree.cpython-33m.so: undefined symbol: xmlBufContent
I did try to install with apt-get, I tried "python3 setup.py install" and I did via easy_install. I have to mention that I have 3 versions installed (2.7, 3.2.3 and 3.3.0.), but I am too much of a beginner to tell if this has to do with it.
I did search all over, but I could not find any solution to this.
Any help is greatly appreciated!
best,
Uhru
You should probably mention the specific operating system you're trying to install on, but I'll assume it's some form of Linux, perhaps Ubuntu or Debian since you mention apt-get.
The error message you mention is typical on lxml when the libxml2 and/or libxslt libraries are not installed for it to link with. For whatever reason, the install procedure does not detect when these are not present and can give the sense the install has succeeded even though those dependencies are not satisfied.
If you issue apt-get install libxml2 libxml2-dev libxslt libxslt-dev that should eliminate this error.