Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • P PyMetric
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • verktoy
  • PyMetric
  • Issues
  • #1
Closed
Open
Issue created Oct 16, 2018 by Morten Knutsen@mortenkContributor

Failure to start with newer networkx python module

Created by: he32

Pymetric fails to start when networkx version 2.1 is used.

The error is:


Initializing model....
Traceback (most recent call last):
  File "/home/he/pymetric/metrics.py", line 42, in <module>
    cli = MetricShell(filename=infile)
  File "/home/he/pymetric/command.py", line 47, in __init__
    self.model.refresh_from_file(self.filename)
  File "/home/he/pymetric/model.py", line 591, in refresh_from_file
    self.graph = read_pajek(filename)
  File "/home/he/pymetric/pajek.py", line 27, in read_pajek
    G=parse_pajek(lines)
  File "/home/he/pymetric/pajek.py", line 90, in parse_pajek
    G.add_edge(u,v,edge_data)
TypeError: add_edge() takes exactly 3 arguments (4 given)
%

The problem is apparently that the API of networkx has changed. I have a proposed fix, I'll submit it as a pull request and link it to this issue.

Assignee
Assign to
Time tracking