question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ubuntu 18.04 installation fails

See original GitHub issue
# pip install geetools
Collecting geetools
  Using cached https://files.pythonhosted.org/packages/51/83/3f6f6cc185902d27468dcbef69736d12244386ec26439cabb6a09a30f471/geetools-0.1.7.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-bitz479n/geetools/setup.py", line 5, in <module>
        from geetools import __version__
      File "/tmp/pip-build-bitz479n/geetools/geetools/__init__.py", line 17, in <module>
        from . import tools, bitreader, cloud_mask, expressions, decision_tree,\
      File "/tmp/pip-build-bitz479n/geetools/geetools/tools/__init__.py", line 3, in <module>
        from . import imagecollection, date, dictionary, image, number, \
      File "/tmp/pip-build-bitz479n/geetools/geetools/tools/imagecollection.py", line 3, in <module>
        import ee
      File "/usr/local/lib/python3.6/dist-packages/ee/__init__.py", line 1, in <module>
        from .main import main
      File "/usr/local/lib/python3.6/dist-packages/ee/main.py", line 10, in <module>
        import StringIO
    ModuleNotFoundError: No module named 'StringIO'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-bitz479n/geetools/

likewise with pip2, or pip3

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
fitoprincipecommented, Apr 4, 2019

Ok. I’d recommend to use a virtual environment, so I guide you through this.

  1. Make the Virtual Environment a. open a terminal in the path you want to have the virtual environment b. we’ll name it geepy3, you can change that. Type:

    vitrtualenv geepy3 --python=python3

  2. activate your environment. Type:

    . geepy3/bin/activate

  3. Install google earth engine python API

    pip install earthengine-api oauth2client

  4. Test it

    python -c “import ee; ee.Initialize()”

  5. If it is the first time you run it, it will ask you to open a link and copy/paste a code…

  6. Install dependencies:

    pip install pandas pygal ipyleaflet folium pyshp pillow requests

  7. Then you can install geetools. Type:

    pip install geetools

Let me know how it goes =)

1reaction
KonstantinosFcommented, Mar 15, 2019

Hi @fitoprincipe

I installed it successfully.

It was me having that problem in the first place and @alexmyczko was trying to help me. Thanx.

Read more comments on GitHub >

github_iconTop Results From Across the Web

freeze - Ubuntu 18.04 installation problem
Disable Secure boot (BIOS setting) · Boot from USB · In the grub menu, go to the Install Ubuntu option (BUT DONT PRESS...
Read more >
Solved: Trouble installing Ubuntu 18.04 and 20.04
Solved: Hello, I'm having trouble installing either version of Ubuntu LTS. I get the same generic error- sorry there was a problem ......
Read more >
Installation Failed on linux ubuntu 18.04.5 LTS - Ignition
Hello, I got an error when starting the ignition gateway, below is the line Ignition Successfully Installed The wizard has finished ...
Read more >
Installation failed on Ubuntu 18.04 and Ubuntu 20.04 #66
Solved it. It does appear that SSL is now forced, yet the script doesn't enable it on the NGINX server. So you just...
Read more >
Installation error on Ubuntu 18.04 - Progress Community
When trying to install OE 10.2B 32-bit on Ubuntu 18.04 64-bit an error is returned. Steps to Reproduce.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found