Giter Site home page Giter Site logo

Comments (10)

rafguns avatar rafguns commented on September 23, 2024

Thanks for the report!

Did you install with pip? It seems that this is not an issue in the GitHub repo but just with the package on PyPI, caused by preparing it on Windows sigh. I'll look into better ways of preparing packages.

If you need it urgently, you can probably fix manually for now by finding the linkpred executable and fixing line endings (e.g., with dos2unix).

from linkpred.

YasCoMa avatar YasCoMa commented on September 23, 2024

Yes, I've installed with pip. But I have to do this command (dos2unix) for every file?

from linkpred.

rafguns avatar rafguns commented on September 23, 2024

I cannot easily test this at the moment but I think this just needs to happen for the linkpred executable script. You should be able to locate it with which linkpred (I think).

from linkpred.

rafguns avatar rafguns commented on September 23, 2024

To properly solve this, the best way is probably to let Travis deploy to PyPI.

from linkpred.

YasCoMa avatar YasCoMa commented on September 23, 2024

I did this for the executable linkpred...The python module worked but the command on terminal gives the following error:
ImportError: No module named linkpred.cli

from linkpred.

rafguns avatar rafguns commented on September 23, 2024

Ouch, sorry about the trouble! I'll get my hands on a Linux box and figure out what the problem is.

from linkpred.

rafguns avatar rafguns commented on September 23, 2024

As far as I can see, the problem may arise if multiple Python versions (or environments) are installed. I encounter this on Ubuntu when linkpred is installed using Python3/pip3, but #!/usr/bin/env python resolves to Python 2.7. Changing it to #!/usr/bin/env python3 solves the problem for my case but would cause problems for someone who installed linkpred in Python 2...

The best way to solve all this, including the original problem, is probably to start using the console_scripts entry point. I will work on that soon, unless someone else wants to take a crack at it first. If so, please comment here.

from linkpred.

rafguns avatar rafguns commented on September 23, 2024

Fixed in ce33b09.

from linkpred.

rafguns avatar rafguns commented on September 23, 2024

I just released version 0.4, which contains the fix.

@YasCoMa Can you verify that this works on your end? You should be able to upgrade by running

pip install --upgrade linkpred

Thanks!

from linkpred.

rafguns avatar rafguns commented on September 23, 2024

As far as I can tell, this is fixed. Feel free to reopen if this still pops up.

from linkpred.

Related Issues (20)

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.