Re: [Qgis-user] new manageR
Hi gang, I don't actually use Numeric directly, this is likely an rpy2 issue. I'll ask around on that list to see if I can see a simple solution... I'll keep you updated on my progress... Carson There is a dependency on Numeric. Apparently Carson needed some functionality from Numeric that is unavailable in numpy. Carson: is this something that cannot be worked around? Numeric has been replaced by numpy, and there is no easy_install method for Numeric. This seems problematic. John On Mar 29, 2009, at 7:44 PM, Maxim Dubinin wrote: Hi Carson, great news, I'm using R a lot and the idea of interfacing it with QGIS is great. I have some problems with making manageR work. Though it seems that all the components are there (python-rpy2, python-numpy): http://gis-lab.info/images/screenshots/20090329-fqt-109kb.jpg I'm still getting this error after installing and clicking on manageR button Traceback (most recent call last): File C:/Documents and Settings/mdubinin/.qgis//python/plugins\manageR\manageR.py, line 28, in run import manageRDialog File C:/Documents and Settings/mdubinin/.qgis//python/plugins\manageR\manageRDialog.py, line 6, in from QLayerConverter import QVectorLayerConverter, QRasterLayerConverter File C:/Documents and Settings/mdubinin/.qgis//python/plugins\manageR\QLayerConverter.py, line 4, in import Numeric, array ImportError: No module named Numeric Âåðñèÿ Python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] Ïóòü ïîèñêà Python:['C:/OSGeo4W/apps/qgis/./python', 'C:/Documents and Settings/mdubinin/.qgis//python/plugins', 'C:/OSGeo4W/apps/qgis/./python/plugins', 'C:\\WINDOWS\\system32\\python25.zip', 'C:\\OSGeo4W\\apps\\Python25\\DLLs', 'C:\\OSGeo4W\\apps\\Python25\\lib', 'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win', 'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk', 'C:\\OSGeo4W\\apps\\qgis\\bin', 'C:\\OSGeo4W\\apps\\Python25', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\Documents and Settings\\mdubinin\\.qgis\\python\\plugins\\fTools\\tools'] -- Best regards, Maxim Вы писали 29 марта 2009 г., 19:26:25: CF Hello listers, CF I am pleased to announce a new version of manageR is now available in my CF plugin repository (http://www.ftools.ca/cfarmerQgisRepo.xml or via the CF plugin installer using 3rd party repos). I am particularly happy with CF this version, as I think it is a major improvement over the older CF manageR. The interface is cleaner, and the console is more like a proper CF R console, so R users will likely find it easier to use. Multi-line CF commands can be entered line by line, or pasted into the console (type CF Ctrl+H in the console to see usage details), and layers can be imported CF and exported to and from manageR using simple keyboard commands. CF This plugin is still in relatively early stages of development, but it CF should be safe enough to not destroy your data ;-) If you would like to CF help me improve manageR, and make it more stable, please report any bugs CF or suggestions using my google-code site: CF http://code.google.com/p/ftools-qgis/ or if you prefer, you can email CF me at: carson_dot_farmer_at_gmail_dot_com. I will also add more CF information to http://www.ftools.ca/manageR.html over the next few days. CF Requirements: QGIS version 1.x - http://www.qgis.org/index.php CF Rpy2 version 2.0.3 - http://rpy.sourceforge.net/rpy2.html CF R version 2.7.1 or higher (= 2.8.0 recommended) - CF http://www.r-project.org/ CF Numpy version 1.x.x - http://numpy.scipy.org/ CF Cheers, CF Carson ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Carson J. Q. Farmer ISSP Doctoral Fellow National Centre for Geocomputation (NCG), Email: carson.far...@gmail.com Web: http://www.carsonfarmer.com/ http://www.ftools.ca/ ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] new manageR
Hi Maxim, On Sun, 29. Mar 2009 at 21:44:54 -0500, Maxim Dubinin wrote: I'm still getting this error after installing and clicking on manageR button Traceback (most recent call last): File C:/Documents and Settings/mdubinin/.qgis//python/plugins\manageR\manageR.py, line 28, in run import manageRDialog File C:/Documents and Settings/mdubinin/.qgis//python/plugins\manageR\manageRDialog.py, line 6, in from QLayerConverter import QVectorLayerConverter, QRasterLayerConverter File C:/Documents and Settings/mdubinin/.qgis//python/plugins\manageR\QLayerConverter.py, line 4, in import Numeric, array ImportError: No module named Numeric Hm, reminds me of http://trac.osgeo.org/osgeo4w/ticket/65 somehow. Might installing R 2.6.2 and python-rpy help? Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-20 Dipl.-Inf. (FH) Rheinstraße 13Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] new manageR
Hi Jürgen, Hi Maxim, On Sun, 29. Mar 2009 at 21:44:54 -0500, Maxim Dubinin wrote: I'm still getting this error after installing and clicking on manageR button Traceback (most recent call last): File C:/Documents and Settings/mdubinin/.qgis//python/plugins\manageR\manageR.py, line 28, in run import manageRDialog File C:/Documents and Settings/mdubinin/.qgis//python/plugins\manageR\manageRDialog.py, line 6, in from QLayerConverter import QVectorLayerConverter, QRasterLayerConverter File C:/Documents and Settings/mdubinin/.qgis//python/plugins\manageR\QLayerConverter.py, line 4, in import Numeric, array ImportError: No module named Numeric Hm, reminds me of http://trac.osgeo.org/osgeo4w/ticket/65 somehow. Might installing R 2.6.2 and python-rpy help? Nope, don't do this! manageR only works with the new rpy2, and newer versions of R... having said that, the Numeric dependency has been removed (just now), and I'll upload a new version in about 10 minutes! Cheers, Carson ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] new manageR
Hi, Le 30/03/2009 14:01, Carson Farmer a écrit : I'll upload a new version in about 10 minutes! Thanks for the (very) fast answer ! Now I have a python error displaying when I click on the R button (no more Numeric message). Looks like manageR can't find R : Traceback (most recent call last): File C:/Documents and Settings/Jeremy/.qgis//python/plugins\manageR\manageR.py, line 28, in run import manageRDialog File C:/Documents and Settings/Jeremy/.qgis//python/plugins\manageR\manageRDialog.py, line 6, in from QLayerConverter import QVectorLayerConverter, QRasterLayerConverter File C:/Documents and Settings/Jeremy/.qgis//python/plugins\manageR\QLayerConverter.py, line 6, in import rpy2.robjects as robjects File C:\OSGeo4W\apps\Python25\lib\site-packages\rpy2\robjects\__init__.py, line 12, in import rpy2.rinterface as rinterface File C:\OSGeo4W\apps\Python25\lib\site-packages\rpy2\rinterface\__init__.py, line 22, in This might be because R.exe is nowhere in your Path.) RuntimeError: Unable to determine R version from the registery.Calling the command 'R RHOME' does not return anything. This might be because R.exe is nowhere in your Path. Is there a way to indicate the correct path ? Jeremy ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] new manageR
Maxim, Did you delete the previous version of the plugin from your python plugin directory? I had something similar when I did a reinstall without first deleting the old version. John On Mar 29, 2009, at 7:44 PM, Maxim Dubinin wrote: Hi Carson, great news, I'm using R a lot and the idea of interfacing it with QGIS is great. I have some problems with making manageR work. Though it seems that all the components are there (python-rpy2, python-numpy): http://gis-lab.info/images/screenshots/20090329-fqt-109kb.jpg I'm still getting this error after installing and clicking on manageR button Traceback (most recent call last): File C:/Documents and Settings/mdubinin/.qgis//python/plugins \manageR\manageR.py, line 28, in run import manageRDialog File C:/Documents and Settings/mdubinin/.qgis//python/plugins \manageR\manageRDialog.py, line 6, in from QLayerConverter import QVectorLayerConverter, QRasterLayerConverter File C:/Documents and Settings/mdubinin/.qgis//python/plugins \manageR\QLayerConverter.py, line 4, in import Numeric, array ImportError: No module named Numeric Âåðñèÿ Python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] Ïóòü ïîèñêà Python:['C:/OSGeo4W/apps/qgis/./python', 'C:/ Documents and Settings/mdubinin/.qgis//python/plugins', 'C:/OSGeo4W/ apps/qgis/./python/plugins', 'C:\\WINDOWS\\system32\\python25.zip', 'C:\\OSGeo4W\\apps\\Python25\\DLLs', 'C:\\OSGeo4W\\apps\\Python25\ \lib', 'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win', 'C:\\OSGeo4W\ \apps\\Python25\\lib\\lib-tk', 'C:\\OSGeo4W\\apps\\qgis\\bin', 'C:\ \OSGeo4W\\apps\\Python25', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site- packages', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib', 'C:\ \OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin', 'C:\ \OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\Documents and Settings\\mdubinin\\.qgis\\python\\plugins\\fTools \\tools'] -- Best regards, Maxim Вы писали 29 марта 2009 г., 19:26:25: CF Hello listers, CF I am pleased to announce a new version of manageR is now available in my CF plugin repository (http://www.ftools.ca/cfarmerQgisRepo.xml or via the CF plugin installer using 3rd party repos). I am particularly happy with CF this version, as I think it is a major improvement over the older CF manageR. The interface is cleaner, and the console is more like a proper CF R console, so R users will likely find it easier to use. Multi- line CF commands can be entered line by line, or pasted into the console (type CF Ctrl+H in the console to see usage details), and layers can be imported CF and exported to and from manageR using simple keyboard commands. CF This plugin is still in relatively early stages of development, but it CF should be safe enough to not destroy your data ;-) If you would like to CF help me improve manageR, and make it more stable, please report any bugs CF or suggestions using my google-code site: CF http://code.google.com/p/ftools-qgis/ or if you prefer, you can email CF me at: carson_dot_farmer_at_gmail_dot_com. I will also add more CF information to http://www.ftools.ca/manageR.html over the next few days. CF Requirements: QGIS version 1.x - http://www.qgis.org/index.php CF Rpy2 version 2.0.3 - http://rpy.sourceforge.net/rpy2.html CF R version 2.7.1 or higher (= 2.8.0 recommended) - CF http://www.r-project.org/ CF Numpy version 1.x.x - http://numpy.scipy.org/ CF Cheers, CF Carson ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] new manageR
Carson, I find that the plugin works for me on OSX with the analysis branch, but not in trunk. Trunk spits out this error: An error has occured while executing Python code: Traceback (most recent call last): File /Users/jctull/.qgis//python/plugins/manageR/manageR.py, line 28, in run import manageRDialog File /Users/jctull/.qgis//python/plugins/manageR/ manageRDialog.py, line 6, in from QLayerConverter import QVectorLayerConverter, QRasterLayerConverter File /Users/jctull/.qgis//python/plugins/manageR/ QLayerConverter.py, line 6, in import rpy2.robjects as robjects File /Library/Python/2.5/site-packages/rpy2/robjects/__init__.py, line 12, in import rpy2.rinterface as rinterface File /Library/Python/2.5/site-packages/rpy2/rinterface/ __init__.py, line 6, in R_HOME = os.popen(R RHOME).readlines() IOError: [Errno 4] Interrupted system call Python version: 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) [GCC 4.0.1 (Apple Inc. build 5465)] John On Mar 29, 2009, at 5:26 PM, Carson Farmer wrote: Hello listers, I am pleased to announce a new version of manageR is now available in my plugin repository (http://www.ftools.ca/cfarmerQgisRepo.xml or via the plugin installer using 3rd party repos). I am particularly happy with this version, as I think it is a major improvement over the older manageR. The interface is cleaner, and the console is more like a proper R console, so R users will likely find it easier to use. Multi-line commands can be entered line by line, or pasted into the console (type Ctrl+H in the console to see usage details), and layers can be imported and exported to and from manageR using simple keyboard commands. This plugin is still in relatively early stages of development, but it should be safe enough to not destroy your data ;-) If you would like to help me improve manageR, and make it more stable, please report any bugs or suggestions using my google-code site: http://code.google.com/p/ftools-qgis/ or if you prefer, you can email me at: carson_dot_farmer_at_gmail_dot_com. I will also add more information to http://www.ftools.ca/manageR.html over the next few days. Requirements: QGIS version 1.x - http://www.qgis.org/index.php Rpy2 version 2.0.3 - http://rpy.sourceforge.net/rpy2.html R version 2.7.1 or higher (= 2.8.0 recommended) - http://www.r-project.org/ Numpy version 1.x.x - http://numpy.scipy.org/ Cheers, Carson -- Carson J. Q. Farmer ISSP Doctoral Fellow National Centre for Geocomputation (NCG), National University of Ireland, Maynooth, Email: carson.far...@gmail.com Web: http://www.carsonfarmer.com/ http://www.ftools.ca/ ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user