All Questions

15
votes
1answers
47389 views

tkinter: how to use after method

Hey I am new to python and am using tkinter for my gui. I am having trouble using the "after" method. The goal is to make a random letter appear every 5 seconds. Here is my code: import random impor...
194
votes
15answers
94985 views

PyCharm shows unresolved references error for valid code

I am using PyCharm to work on a project. The project is opened and configured with an interpreter, and can run successfully. The remote interpreter paths are mapped properly. This seems to be the c...
42
votes
10answers
34669 views

How to link PyCharm with PySpark?

I'm new with apache spark and apparently I installed apache-spark with homebrew in my macbook: Last login: Fri Jan 8 12:52:04 on console user@MacBook-Pro-de-User-2:~$ pyspark Python 2.7.10 (default,...
198
votes
11answers
159260 views

Unresolved reference issue in PyCharm

I have a directory structure ├── simulate.py ├── src │   ├── networkAlgorithm.py │   ├── ... And I can access the network module with sys.path.insert(). import ...
33
votes
1answers
8134 views

Pycharm utils.py not getting syntax highlight

I have several django projects and several different files with name utils.py, however pycharm treats them as simple .txt files with no syntax highlighting or any other kind of parsing, how can I fix ...
157
votes
5answers
31733 views

How can I tell PyCharm what type a parameter is expected to be?

When it comes to constructors, and assignments, and method calls, the PyCharm IDE is pretty good at analyzing my source code and figuring out what type each variable should be. I like it when it's rig...
99
votes
8answers
205891 views

How do I import modules in pycharm?

In PyCharm, I've added the Python environment /usr/bin/python. However, from gnuradio import gr fails as an undefined reference. However, it works fine in the Python interpreter from the command li...
20
votes
1answers
16449 views

Why isn't PyCharm's autocomplete working for libraries I install?

PyCharm's autocomplete isn't working for installed libraries. I have the following code: from boto.emr.connection import EmrConnection conn = EmrConnection(aws_keys.access_key_id, aws_keys.secret_ke...
68
votes
8answers
126663 views

Error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)

Im trying to install numpy with PyCharm but i keep getting this error: error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat). Can someone please explain to me exactly wh...
65
votes
3answers
5276 views

How do I specify that the return type of a method is the same as the class itself in python?

I have the following code in python 3: class Position: def __init__(self, x: int, y: int): self.x = x self.y = y def __add__(self, other: Position) -> Position: r...

Previous Next