Comments (5)
It should display if you enable "experimental plugins":
from chinese-postman.
Thanks, that allowed me to install the plug-in, but I still don't see it from the plug-ins menu.
Do I have to have anything selected for it to show up? The instructions say 'Select the features that you want to use. The "Select Features by Polygon" tool works great if you only want to use a small part of a large network.' but when I select the OpenStreetMap layer (I want to select certain street segments and find the minimal path to walk all of them) all the select options are grayed out.
from chinese-postman.
Ah, it may be beacuse there is an error initializing the module, I didn't see this until I restarted:
Couldn't load plugin 'chinesepostman' due to an error when calling its classFactory() method
ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib/python3.9/fractions.py)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "/home/michael/.local/share/QGIS/QGIS3/profiles/default/python/plugins/chinesepostman/__init__.py", line 34, in classFactory
from .chinesepostman import ChinesePostman
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/michael/.local/share/QGIS/QGIS3/profiles/default/python/plugins/chinesepostman/chinesepostman.py", line 27, in
from . import postman
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/michael/.local/share/QGIS/QGIS3/profiles/default/python/plugins/chinesepostman/postman.py", line 18, in
import networkx as nx
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 259, in load_module
File "/home/michael/.local/share/QGIS/QGIS3/profiles/default/python/plugins/chinesepostman/lib/networkx-1.7-py2.7.egg/networkx/__init__.py", line 76, in
import networkx.algorithms
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 259, in load_module
File "/home/michael/.local/share/QGIS/QGIS3/profiles/default/python/plugins/chinesepostman/lib/networkx-1.7-py2.7.egg/networkx/algorithms/__init__.py", line 11, in
from networkx.algorithms.dag import *
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 259, in load_module
File "/home/michael/.local/share/QGIS/QGIS3/profiles/default/python/plugins/chinesepostman/lib/networkx-1.7-py2.7.egg/networkx/algorithms/dag.py", line 2, in
from fractions import gcd
ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib/python3.9/fractions.py)
from chinese-postman.
I was able to install the plug-in from QGIS 3.26.2 under Windows.
from chinese-postman.
Hi @michael-ts, how did you solve the gcd import error? I'm running into the same issue here (Ubuntu 22.10).
from chinese-postman.
Related Issues (18)
- failed by: AttributeError: 'generator' object has no attribute 'sort' HOT 3
- Turn-by-Turn? HOT 2
- Error: Could not find any components. Try selecting different features. HOT 2
- Error postman.py HOT 1
- Inaccurate results for trivial problems HOT 4
- AttributeError: 'set' object has no attribute 'items' HOT 2
- cant export from qgis HOT 2
- Incompatible with QGIS 2 HOT 7
- AttributeError: module 'networkx' has no attribute 'connected_component_subgraphs' HOT 8
- Unable to install plugin in QGIS 3.14.0-Pi HOT 1
- Tips for using the Chinese Postman plugin HOT 1
- AttributeError: module 'networkx' has no attribute 'connected_component_subgraphs' HOT 12
- Cannot import gcd from fractions HOT 1
- icon.png HOT 4
- No module named resources HOT 1
- Slightly off topic - CRS? HOT 7
- Windy Chinese Postman HOT 2
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 chinese-postman.