Cannot import sentinelsat python module - arcgis

I am a python newbie and am trying to get the sentinelhub module to work but have been receving this error message on my code:
import sentinelhub
Traceback (most recent call last):
File "<pyshell#0>", line 1, in
import sentinelhub
ImportError: No module named sentinelhub
After I've downloaded the module using "pip install sentinelhub" on the windows command. I am currently using Python version 2.7.18. Any suggestions would be helpful. Thanks.

It looks like sentinelhub requires a different version of Python.
From their own website they specify that it "requires Python >=3.7"
https://sentinelhub-py.readthedocs.io/en/latest/install.html

Related

Error when using pyautogui module in Mu-Editor

I'm trying to write some code and import the pyautogui module, but am getting an error.
import pyautogui
import webbrowser
webbrowser.open('https://roamresearch.com/#/app/test852')
b = pyautogui.locateOnScreen('JournalQuestions.png')
I'm getting the following error:
Traceback (most recent call last):
File "/Users/rika/mu_code/mouse.py", line 2, in
import pyautogui
ModuleNotFoundError: No module named 'pyautogui'
I found the answer in the Mu-Editor community. I just needed to download the Alpha version from here: https://codewith.mu/en/download. Then click on Gears icon and there is a tab for importing packages. Very user friendly!

cannot import name 'nosetester' error while importing pandas

Im getting below error while importing pandas
cannot import name 'nosetester'
Traceback (most recent call last):
File "/usr/bin/anaconda/envs/py35/lib/python3.5/site-packages/pandas/init.py", line 56, in
from pandas.util.nosetester import NoseTester
File "/usr/bin/anaconda/envs/py35/lib/python3.5/site-packages/pandas/util/nosetester.py", line 13, in
from numpy.testing import nosetester
ImportError: cannot import name 'nosetester'
Pandas version ->0.18.1
Numpy version ->1.18.0
Any help to resolve the error?
One approach is to use python 3.6 version like 3.6.5 is a stable version.
Another approach is if you want to continue in python 3.5 version itself then python 3.5.2 it worked correctly.

Anaconda install of Tensorflow missing 'audio_ops' from contrib framework

I'm trying to follow along the Audio Recognition Network tutorial.
I've created an Anaconda environment with python 3.6 and followed the install instruction accordingly for installing the GPU whl.
I can run the 'hello world' TF example.
When I go to run 'train.py' in the Audio Recognition Network tutorial/example, I get:
Traceback (most recent call last):
File "train.py", line 79, in <module>
import input_data
File "/home/philglau/speech_commands/input_data.py", line 35, in <module>
from tensorflow.contrib.framework.python.ops import audio_ops as contrib_audio
ImportError: cannot import name 'audio_ops'
The code in the tutorial that fails is:
from tensorflow.contrib.framework.python.ops import audio_ops as contrib_audio
I then backed up that chain until I could import some part of it:
import tensorflow.contrib.framework as test ==> works
import tensorflow.contrib.framework.python as test --> fail:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'tensorflow.contrib.framework' has no attribute 'python'
Not sure where I'm going wrong on my install.
Details:
Ubuntu 16.04
Anaconda env with python 3.6
Followed the 'anaconda' instruction on the TF install page. (GPU version)
I also tried using a python 2.7 env for anaconda but got the same results.
It looks like they're releasing the audio_ops modules in version 1.4 (https://github.com/tensorflow/tensorflow/issues/11339#issuecomment-327879009).
Until v1.4 is released, an easy way around this is to install the nightly tensorflow build
pip install tf-nightly
or with the docker image linked in the issue comment.
The short answer:
The framework is missing the "audio_ops.py" and the example wont work until the file is released. Or you code the wrappers.
More on this:
If you go to the: tensorflow.contrib.framework.python.ops local folder you can find other *_ops.py files but not the "audio_ops.py".
If you get it from the Master at: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/framework/python/ops
You will find the file is almost empty and with import labels wrong: "audio_ops" vs "gen_audio_ops".
With almost empty I mean that: decode_wav, encode_wav, audio_spectrogram , mfcc are not implemented/wrapped.
So, no working example and no fun.
We need to check again when "audio_ops.py" is released.
Here:
https://github.com/tensorflow/tensorflow/issues/11339
You can find a Developer saying: "we don't actually want to make them public / supported yet. I'm sorry this decision wasn't better documented"

No module named buildout.buildout

I'm trying to setup a Zope app following the steps in the official tutorial.
After downloading the Zope distribution and bootstrapping the buildout, I get to the last step, bin/buildout, and this error follows:
Traceback (most recent call last):
File "bin/buildout", line 9, in <module>
import zc.buildout.buildout
ImportError: No module named buildout.buildout
How should I proceed?
Try instead the instructions in
https://pypi.python.org/pypi/bobtemplates.plone (call it from the src-directory)
and
https://github.com/plone/bobtemplates.plone
and use a virtualenv:
virtualenv mrbobvenv
source mrbobvenv/bin/activate

Running HtmlUnit with Jython

This question is similar to this one and this one
I am running windows 7(x64) and following the example on this page:
http://blog.databigbang.com/web-scraping-ajax-and-javascript-sites/
I get a similar error:
Traceback (most recent call last):
File ".\gartner.py", line 24, in
import com.gargoylesoftware.htmlunit.WebClient as WebClient
ImportError: No module named gargoylesoftware
Running the script as (with the latest htmlunit-2.9):
>> jython -J-classpath "htmlunit-2.9/lib/*" gartner.py
I have also attempted second answer to this to no avail.
Any suggestions?
Thanks
Edit1:
I added "htmlunit-2.9/lib/" to my classpath through the system environment variables.
>> jython gartner.py
Same error as above.