[Qgis-developer] Compliation issues of sources using make on Linux Ubuntu

2015-05-11 Thread Florin-Daniel Cioloboc
Hello everyone,

I am getting a rather strange message after using the make command, which
is preventing me from compiling my sources for a plugin. As a result, the
plugin doesn't show up in QGIS.

Message:

 
 Compiled translation files to .qm files.
 
 make: execvp: scripts/compile-strings.sh: Permission denied
 make: *** [transcompile] Error 127


Had an earlier issue but it was partly solved by installing PyQT4. I don't
really understand what's wrong.

I typed in prompt: *make test* and got:

 pyrcc4 -o resources_rc.py  resources.qrc
 make: pyrcc4: Command not found
 make: *** [resources_rc.py] Error 127

 I could use really use some help.

Best wishes,
Florin
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Compliation issues of sources using make on Linux Ubuntu

2015-05-11 Thread Florin-Daniel Cioloboc
Thanks for the reply Alessandro,

Already done that. It still doesn't work yet, however I got the idea to
source it: source scripts/run-env-linux.sh /usr/bin/qgis-2.2/ and it worked
up, at least that command.

Unfortunately, when running make test command it get the same permission
error so at the moment I'm trying to set it using chmod but it doesn't seem
to be working.



On Mon, May 11, 2015 at 11:45 AM, Alessandro Pasotti apaso...@gmail.com
wrote:

 2015-05-11 10:44 GMT+02:00 Florin-Daniel Cioloboc 
 cioloboc.flo...@gmail.com:

 Hello everyone,

 I am getting a rather strange message after using the make command, which
 is preventing me from compiling my sources for a plugin. As a result, the
 plugin doesn't show up in QGIS.

 Message:

 
 Compiled translation files to .qm files.
 
 make: execvp: scripts/compile-strings.sh: Permission denied
 make: *** [transcompile] Error 127


 Had an earlier issue but it was partly solved by installing PyQT4. I
 don't really understand what's wrong.

 I typed in prompt: *make test* and got:

 pyrcc4 -o resources_rc.py  resources.qrc
 make: pyrcc4: Command not found
 make: *** [resources_rc.py] Error 127

 I could use really use some help.



 make: pyrcc4: Command not found

 You have to install pyrcc4, if you're on Linux Ubuntu  or Debian it's in
 the pyqt4-dev-tools package.


 --
 Alessandro Pasotti
 w3:   www.itopen.it

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Compliation issues of sources using make on Linux Ubuntu

2015-05-11 Thread Florin-Daniel Cioloboc
Apparently, neither chmod +x scripts/compile-strings.sh nor chmod 001
scripts/compile-strings.sh work.
Whenever I use make test:


 Compiled translation files to .qm files.
 
 make: execvp: scripts/compile-strings.sh: Permission denied
 make: *** [transcompile] Error 127


Does anyone know why?




On Mon, May 11, 2015 at 12:06 PM, Florin-Daniel Cioloboc 
cioloboc.flo...@gmail.com wrote:

 Thanks for the reply Alessandro,

 Already done that. It still doesn't work yet, however I got the idea to
 source it: source scripts/run-env-linux.sh /usr/bin/qgis-2.2/ and it worked
 up, at least that command.

 Unfortunately, when running make test command it get the same permission
 error so at the moment I'm trying to set it using chmod but it doesn't seem
 to be working.



 On Mon, May 11, 2015 at 11:45 AM, Alessandro Pasotti apaso...@gmail.com
 wrote:

 2015-05-11 10:44 GMT+02:00 Florin-Daniel Cioloboc 
 cioloboc.flo...@gmail.com:

 Hello everyone,

 I am getting a rather strange message after using the make command,
 which is preventing me from compiling my sources for a plugin. As a result,
 the plugin doesn't show up in QGIS.

 Message:

 
 Compiled translation files to .qm files.
 
 make: execvp: scripts/compile-strings.sh: Permission denied
 make: *** [transcompile] Error 127


 Had an earlier issue but it was partly solved by installing PyQT4. I
 don't really understand what's wrong.

 I typed in prompt: *make test* and got:

 pyrcc4 -o resources_rc.py  resources.qrc
 make: pyrcc4: Command not found
 make: *** [resources_rc.py] Error 127

 I could use really use some help.



 make: pyrcc4: Command not found

 You have to install pyrcc4, if you're on Linux Ubuntu  or Debian it's in
 the pyqt4-dev-tools package.


 --
 Alessandro Pasotti
 w3:   www.itopen.it



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Compliation issues of sources using make on Linux Ubuntu

2015-05-11 Thread Florin-Daniel Cioloboc
Thank you, Hugo!

That was a good tip, as I was checking the files I enabled the allow
executing file as program. Whether that was the magic trick, I am unsure
but in any case now it's working. Same goes for the import qgis.core in the
Ubuntu terminal, no more import errors.

Hopefully, I can actually start to work on my plugin.

Best regards

On Mon, May 11, 2015 at 2:13 PM, Hugo Mercier hugo.merc...@oslandia.com
wrote:

 Hi,

 Make sure you are on a file system that support unix file execution
 permission (no ntfs) and that it is mounted correctly.
 Make also sure that the user running make is the same as the owner of
 all files.

 On 11/05/2015 12:16, Florin-Daniel Cioloboc wrote:
  Apparently, neither chmod +x scripts/compile-strings.sh nor chmod 001
  scripts/compile-strings.sh work.
  Whenever I use make test:
 
  
  Compiled translation files to .qm files.
  
  make: execvp: scripts/compile-strings.sh: Permission denied
  make: *** [transcompile] Error 127
 
 
  Does anyone know why?
 
 
 
 
  On Mon, May 11, 2015 at 12:06 PM, Florin-Daniel Cioloboc
  cioloboc.flo...@gmail.com mailto:cioloboc.flo...@gmail.com wrote:
 
  Thanks for the reply Alessandro,
 
  Already done that. It still doesn't work yet, however I got the idea
  to source it: source scripts/run-env-linux.sh /usr/bin/qgis-2.2/ and
  it worked up, at least that command.
 
  Unfortunately, when running make test command it get the same
  permission error so at the moment I'm trying to set it using chmod
  but it doesn't seem to be working.
 
 
 
  On Mon, May 11, 2015 at 11:45 AM, Alessandro Pasotti
  apaso...@gmail.com mailto:apaso...@gmail.com wrote:
 
  2015-05-11 10:44 GMT+02:00 Florin-Daniel Cioloboc
  cioloboc.flo...@gmail.com mailto:cioloboc.flo...@gmail.com:
 
  Hello everyone,
 
  I am getting a rather strange message after using the make
  command, which is preventing me from compiling my sources
  for a plugin. As a result, the plugin doesn't show up in
 QGIS.
 
  Message:
 
  
  Compiled translation files to .qm files.
  
  make: execvp: scripts/compile-strings.sh: Permission
 denied
  make: *** [transcompile] Error 127
 
 
  Had an earlier issue but it was partly solved by installing
  PyQT4. I don't really understand what's wrong.
 
  I typed in prompt: /make test/ and got:
 
  |pyrcc4 -o resources_rc.py  resources.qrc
  make: pyrcc4: Command not found
  make: *** [resources_rc.py] Error 127|
 
  I could use really use some help.
 
 
 
  make: pyrcc4: Command not found
 
  You have to install pyrcc4, if you're on Linux Ubuntu  or Debian
  it's in the pyqt4-dev-tools package.
 
 
  --
  Alessandro Pasotti
  w3:   www.itopen.it http://www.itopen.it
 
 
 
 
 
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer
 

 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] How to set the PyQGIS environnement on Windows properly?

2015-05-05 Thread Florin-Daniel Cioloboc
Hello everyone,

I'm having problems with a specific error, which is pretty common from what
I can see but can't seem to find a solution.

When I try to import the qgis module the following error occurs:

ImportError: No module named 'qgis'

So far this is the guide http://planet.qgis.org/planet/user/3/ I'm using
and here's the settings for the .cmd, I'm assuming it has something to do
with this:

 @echo off
 SET OSGEO4W_ROOT=D:\OSGeo4W64
 call %OSGEO4W_ROOT%\bin\o4w_env.bat
 call %OSGEO4W_ROOT%\apps\grass\grass-6.4.3\etc\env.bat@echo off
 path %PATH%;%OSGEO4W_ROOT%\apps\qgis\bin
 path %PATH%;%OSGEO4W_ROOT%\apps\grass\grass-6.4.3\lib

 set PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\qgis\python;
 set PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\Python27\Lib\site-packages
 set QGIS_PREFIX_PATH=%OSGEO4W_ROOT%\apps\qgis
 set PATH=C:\Program Files (x86)\JetBrains\PyCharm Community Edition 
 4.0.6\bin\pycharm.exe;%PATH%
 cd %HOMEPATH%\TER\development
 start PyCharm aware of Quantum GIS /B C:\Program Files 
 (x86)\JetBrains\PyCharm Community Edition 4.0.6\bin\pycharm.exe %*

 I realize this is quite a beginner's question but in any case I could use
some help.

Best wishes
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer