<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Michael,<br>
<br>
I did not find a solution, however since this week it started
working!...<br>
The Qgs classes are not marked as error any more, and I get text
completion and the tool tip suggesting the available methods for
each class.<br>
<br>
The change was that I upgraded to the latest version of QGIS from
the kyngchaos website, which is 2.2 Valmiera. I'm also using the
latest PyCharm 3.1.1 build from 14th Feb.<br>
<br>
Give it a try and it might work for you as well...<br>
<br>
Best regards,<br>
Jorge<br>
<br>
<div class="moz-cite-prefix">On 23/03/2014 03:29, Michael Wagner
wrote:<br>
</div>
<blockquote
cite="mid:012988d3-ac38-4856-8986-f614d3ffd1f1@googlegroups.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Jorge,<br>
<br>
Did you find a solution eventually? I am using PyCharm 3.1.1 and
added /Applications/QGIS.app/Contents/Resources/python/ to the
list of paths.<br>
My import statement is not marked as error anymore but every
Qgs... class still is. I removed/added the path multiple times,
restarted PyCharm, invalidated the cache, etc. without success<br>
<br>
Many thanks,<br>
<br>
Michael<br>
<br>
<br>
On Wednesday, October 9, 2013 7:44:37 PM UTC+8, Jorge Gil wrote:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hi
everyone,
<br>
<br>
I'm new to QGIS plug-in developemtn and I'm setting up a
development <br>
environment on Mac OS X.
<br>
<br>
At the moment I'm going with PyCharm and got the remote
debugging to <br>
work. Thanks to this list!
<br>
<br>
One thing I can't get to work is code completion for the
PyQGIS API.
<br>
<br>
I've added '/Applications/QGIS.app/<wbr>Contents/Resources/python/<wbr>qgis/'
and <br>
'/Applications/QGIS.app/<wbr>Contents/Resources/python/' to
the interpreter's <br>
path. PyCharm can find PyQGIS and ads it to the external
libraries. This <br>
way I can import the qgis modules without errors, in the
Python console <br>
for example.
<br>
However, code completion doesn't work in the editor nor in the
console.
<br>
<br>
Thanks in advance for your help,
<br>
Jorge
<br>
<br>
<br>
______________________________<wbr>_________________
<br>
Qgis-developer mailing list
<br>
<a moz-do-not-send="true" href="javascript:" target="_blank"
gdf-obfuscated-mailto="N5tX_4J0HfwJ"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">Qgis-de...@lists.osgeo.org</a>
<br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/qgis-developer"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-developer\46sa\75D\46sntz\0751\46usg\75AFQjCNGhUW91lOiXGLCR8b_yLD-s2CDFwg';return
true;"
onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-developer\46sa\75D\46sntz\0751\46usg\75AFQjCNGhUW91lOiXGLCR8b_yLD-s2CDFwg';return
true;">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a>
<br>
</blockquote>
</div>
</blockquote>
<br>
<div class="moz-signature">
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt;
color:rgb(210,62,40);font-family:Arial,sans-serif">
________________________________________</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<font class="Apple-style-span" face="Arial,sans-serif" size="2"><b>Jorge
Gil</b></font></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span class="Apple-style-span" style="font-size:11px;
font-family:Arial,sans-serif">Research Associate</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span class="Apple-style-span" style="font-size:11px;
font-family:Arial,sans-serif">Bartlett School of Graduate
Studies</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<font class="Apple-style-span" face="Arial,sans-serif" size="2"><br>
</font></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<a href="http://www.bartlett.ucl.ac.uk/graduate" style="color:
blue; text-decoration: underline; "><b>
<span style="font-size: 8.5pt; color: rgb(210, 62, 40);
font-family: Arial, sans-serif; ">The Bartlett School of
Graduate Studies</span>
</b></a><b><u><span style="font-size: 8.5pt; color: rgb(210,
62, 40); font-family: Arial, sans-serif; "><o:p></o:p></span></u></b></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif">UCL
Faculty of the Built Environment</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif"><br>
</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<font class="Apple-style-span" face="Arial,sans-serif" size="2">
<span class="Apple-style-span" style="color: rgb(128, 128,
128); font-family: Arial; font-size: 10px; ">
<a href="mailto:jorge.gil@ucl.ac.uk" style="font-family:
Helvetica; color: red; text-decoration: underline; ">jorge.gil@ucl.ac.uk</a></span></font></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif">+4420
3108 9031 (Internal x89031)</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif"><br>
</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif">Central
House,</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif">14
Upper Woburn Place,</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif">London
WC1H 0NN</span></p>
</div>
</body>
</html>