Comments (10)
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.
Yes, I've installed with pip. But I have to do this command (dos2unix) for every file?
from linkpred.
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.
To properly solve this, the best way is probably to let Travis deploy to PyPI.
from linkpred.
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.
Ouch, sorry about the trouble! I'll get my hands on a Linux box and figure out what the problem is.
from linkpred.
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.
Fixed in ce33b09.
from linkpred.
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.
As far as I can tell, this is fixed. Feel free to reopen if this still pops up.
from linkpred.
Related Issues (20)
- Clarify `excluded` parameter to `Predictor.__init__` HOT 1
- ROC Plot HOT 5
- error when running linkpred from terminal HOT 4
- Test Community predictor HOT 3
- How to do link prediction on a large graph without 'MemoryError' HOT 3
- Error when nodes name are string type and int type HOT 2
- AssertionError with self-loops from Python but not from command line HOT 5
- I plot ROC curve successfully, but the range of the X axis isn't 0 to 1 HOT 1
- Port test suite to pytest HOT 1
- Typo while importing a module in Community class HOT 3
- ZeroDivisionError HOT 3
- EvaluationSheet : fully understand the universe terme HOT 1
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- how to explain the input file format HOT 2
- linkpred is in maintenance mode
- Update test infrastructure
- test_katz fails in CI HOT 6
- UndefinedError: Measure is undefined if there are no relevant or retrieved items HOT 1
- What link prediction method is used by the sample code in the linkpred folder HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkpred.