Code Monkey home page Code Monkey logo

Comments (14)

amueller avatar amueller commented on June 23, 2024

I think using pip will be the easiest method. Make sure that you're using the pip that belongs to the environment you're executing in.
If pip throws any errors, please post them here.
Also, this code should probably be considered unmaintained, I haven't worked on or with this for several years.

from gco_python.

leronjulian avatar leronjulian commented on June 23, 2024

I'm getting the same issue as above after installing it using pip.

It gives: No module named 'pygco'

I import it like so:
import pygco

from gco_python.

amueller avatar amueller commented on June 23, 2024

are you sure that the executing environment is the same as the environment that pip installed into?
Are you executing a script? If so, try which python and which pip. You can also do python -m pip install pygco

from gco_python.

leronjulian avatar leronjulian commented on June 23, 2024

Yes they are. I am trying to execute example.py. When I try which python and which pip I get:

/Users/Shared/miniconda3/envs/myenv/bin/python and
/Users/Shared/miniconda3/envs/myenv/bin/pip

from gco_python.

amueller avatar amueller commented on June 23, 2024

hm that looks ok. what's the output of pip install pygco?

from gco_python.

leronjulian avatar leronjulian commented on June 23, 2024

Requirement already satisfied: pygco in /Users/Shared/miniconda3/envs/myenv/lib/python3.7/site-packages (0.0.1)
Requirement already satisfied: numpy in /Users/Shared/miniconda3/envs/myenv/lib/python3.7/site-packages (from pygco) (1.16.6)
Requirement already satisfied: cython in /Users/Shared/miniconda3/envs/myenv/lib/python3.7/site-packages (from pygco) (0.29.21)

from gco_python.

amueller avatar amueller commented on June 23, 2024

and pygco exists in /Users/Shared/miniconda3/envs/myenv/lib/python3.7/site-packages?

from gco_python.

leronjulian avatar leronjulian commented on June 23, 2024

Screen Shot 2020-12-10 at 5 49 50 PM

Yes it does

from gco_python.

amueller avatar amueller commented on June 23, 2024

There should be a folder that's just called pygco in addition to the dist-info folder. Remove the dist-info folder and do the pip install again. It looks like you did some partial install or uninstall at some point.

from gco_python.

leronjulian avatar leronjulian commented on June 23, 2024

I did that, now I'm trying to reinstall it using pip and I'm getting the error
gco_python.cpp:626:10: fatal error: 'ios' file not found #include "ios"

from gco_python.

amueller avatar amueller commented on June 23, 2024

make sure you have the standard libraries for C++ installed. As a warning the GCO code has been unmaintained for many years so you're mostly on your own there.

from gco_python.

leronjulian avatar leronjulian commented on June 23, 2024

I got it working. Thanks!

from gco_python.

hfpro avatar hfpro commented on June 23, 2024

please share how you managed to install this library

from gco_python.

rfmac-perceptus avatar rfmac-perceptus commented on June 23, 2024

I just got a simple fix and I'm going to let it here for the next people with the same problem.

First explaining, I was with exactly the same problem than in this issue, that is, I installed pygco with:

$ pip install pygco

But when running a script the result was:

No module named 'pygco'

Then running pip install pygco again I got into the site-packages folder and could find the pygco-0.0.1.dist-info sub-folder.

Then to solve I simply ran:

$ pip install -U pygco

Which upgraded pygco version from 0.0.1 to 0.0.16 and the problem was solved.

Hope that it helps someone! 😊

from gco_python.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.