Comments (16)
Hello,
I think I have the same problem, in QGIS 3.16.13 or 3.22.1 in Win 10.
The plugin starts to work (I tried with the sample dataset) and arrives at the first iteration and then it does not go on with other iterations and does not produce any result.
I tried with QGIS 3.16.7 and it works properly
Thank you in advance
Daniele
from cartogram3.
Hi Alexandre, hi Daniele!
Thanks for reporting this. I’m suspecting that this is somehow related to #22 (on MacOS). I’ll try to have some time to look into it soon :)
Not sure how GRASS would be involved in it, as cartogram does not use any grass algorithm, but maybe there’s some module loading side effect. Thanks for reporting that, too.
from cartogram3.
Hi,
Just reporting that I have a similar problem using 3.22.1 on a Mac. It crashes at the end of the first iteration and then opens some 15 instances of QGIS, with multiple errors.
Thanks!
from cartogram3.
Could you try whether this version works? (Install it via the option ‘Install from ZIP’ in the plugin manager)
Thanks!
from cartogram3.
Dear Christoph,
thank you, I tried to install it via zip, but this is the error message:
Thank you and best regards
Daniele
from cartogram3.
Just upgraded QGIS and successfully installed plugin - will test now.
from cartogram3.
from cartogram3.
Goes a bit crazy for me too: opens up a lot more QGIS instances, some of which give an error dialogue boxes saying "Update of view in private qgis.db failed database is locked" and errors in the main QGIS screen saying "Invalid Data Source: /--multiprocessing-fork is not a valid or recognized data source."
from cartogram3.
Thanks for testing, and sorry it did not work (yet).
I have a new version that seems to work well on Windows and Linux, but there’s still some quirks on MacOS which I will try to fix over the next few evenings.
If you’re on Linux or Windows, please test this plugin ZIP: cartogram3-3.1.0.zip
Thanks!
from cartogram3.
Dear Christoph,
thanks in advance for all these efforts!
I tried with QGIS 3.14.14 and 3.22.1, both stand-alone and OSGeo4W installer and it works very well and faster than the previous version!
Is it possible to know the problem that you found with this version of QGIS and WIN10? Because I found other problems with this new version of QGIS related to Reference Systems, and I guess if it could be a problem of the new PROJ and/or GDAL libraries
Best regards
Daniele
from cartogram3.
I’m not 100% sure what to pin it down to, since I changed a lot of things that just were not state-of-the-art anymore.
Most likely the one change that made most difference is that the plugin now does not operate on QgsGeometry/QgsFeature objects anymore. Memory management, garbage collection, object ownership and the like are slightly complicated in PyQGIS (or so I feel). These objects are coming from the C++ main application, and modifying them in Python is not always straightforward (and moving them between threads is even worse).
from cartogram3.
Thanks for the patience, @seancarmody, this one now should work also on MacOS (I tested it on an ageing MacBookAir that did not receive updates after Catalina, so can’t be 100% sure). Please report back whether it works for you, so I can release it to the QGIS plugin repository.
from cartogram3.
from cartogram3.
Thanks for reporting and testing!
from cartogram3.
Dear Christoph,
thank you too! Only to let you know that now this new plugin version does not work with QGIS 3.16.11, while with 3.16.14 and 3.22.1 it works very well, but I think it is not a problem because 3.16 will dismiss very soon... but just in case I send you the log:
Best regards
Daniele
2021-12-14T10:48:00 CRITICAL Traceback (most recent call last):
File "C:/PROGRA1/QGIS31.16/apps/qgis-ltr/./python\qgis\utils.py", line 334, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/danilopc/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cartogram3_init.py", line 34, in classFactory
from .cartogram3 import Cartogram
File "C:/PROGRA1/QGIS31.16/apps/qgis-ltr/./python\qgis\utils.py", line 793, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/danilopc/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cartogram3\cartogram3.py", line 9, in
from .lib import CartogramUserInterfaceMixIn, CartogramWorkOrchestratorMixIn
File "C:/PROGRA1/QGIS31.16/apps/qgis-ltr/./python\qgis\utils.py", line 793, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/danilopc/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cartogram3\lib_init.py", line 5, in
from .cartogramprocessingprovider import CartogramProcessingProvider
File "C:/PROGRA1/QGIS31.16/apps/qgis-ltr/./python\qgis\utils.py", line 793, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/danilopc/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cartogram3\lib\cartogramprocessingprovider.py", line 12, in
from .cartogramprocessingalgorithm import CartogramProcessingAlgorithm
File "C:/PROGRA1/QGIS31.16/apps/qgis-ltr/./python\qgis\utils.py", line 793, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/danilopc/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cartogram3\lib\cartogramprocessingalgorithm.py", line 23, in
from .cartogramfeatures import CartogramFeatures
File "C:/PROGRA1/QGIS31.16/apps/qgis-ltr/./python\qgis\utils.py", line 793, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/danilopc/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cartogram3\lib\cartogramfeatures.py", line 28, in
class CartogramFeatures:
File "C:/Users/danilopc/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cartogram3\lib\cartogramfeatures.py", line 125, in CartogramFeatures
@functools.cache
AttributeError: module 'functools' has no attribute 'cache'
from cartogram3.
Thanks for noticing! It seems 3.16.11 comes with Python<3.9 which does not have functools.cache yet ... I’ll restrict the versions, then - thanks!
from cartogram3.
Related Issues (20)
- QgsPointV2 renamed to QgsPoint HOT 1
- QgsGeometry: API Change HOT 1
- AttributeError: type object 'QgsMessageBar' has no attribute 'INFO' HOT 3
- Save iteration progress after crash? HOT 1
- Memory management on Windows HOT 1
- TypeError: QgsMapLayer.exportNamedStyle(): argument 2 has unexpected type 'str' HOT 6
- TypeError: QgsMapLayer.exportNamedStyle(): not enough arguments HOT 5
- QgsGeometry.set() is deprecated HOT 1
- Just hangs in 0% with this dataset HOT 3
- Crashing HOT 14
- rewrite does not (yet) allow cancel button HOT 1
- Plugin does not anymore report remaining average error
- Cartogram computation never moves beyond 1% HOT 12
- Update translations
- Add help text to Processing plugin HOT 1
- Fix invalid polygons in input data set
- Bug on MacOS HOT 8
- Plugin does not work on Python < 3.8 HOT 3
- Handling Null Values HOT 6
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 cartogram3.