Go to advanced search

by MauiSunset
Wed Jul 01, 2015 11:54 am
Forum: Python
Topic: Can PyCharm on my PC execute code on the RPi2?
Replies: 4
Views: 2600

Re: Can PyCharm on my PC execute code on the RPi2?

What I do is mount the Pi as a disk, which then allows me to code on my laptop - with PyCharm. I don't use PyCharm to run the code though, but an SSH window instead. Perhaps it helps. Thanks for the feedback. I'm trying to run "TightVNC" on both my RPi2 and PC and it's almost working this would all...
by MauiSunset
Mon Jun 29, 2015 9:27 pm
Forum: Python
Topic: Can PyCharm on my PC execute code on the RPi2?
Replies: 4
Views: 2600

Can PyCharm on my PC execute code on the RPi2?

Does anyone here use PyCharm on their PC or Mac and port their way into an RPi2? It sounds like it can be done, but I'm still fuzzy if it can be done. I'd like to stay on my PC and use the virtual Python environment to code and execute on the RPi2 via an IP address on my home network. If it can be d...
by MauiSunset
Sat Jun 20, 2015 4:16 pm
Forum: Python
Topic: Anyone using virtual-GPIO?
Replies: 3
Views: 1409

Re: Anyone using virtual-GPIO?

What are you actually trying to achieve? If you are trying to write programs to run on the Pi you really need to be using a Pi. If the Pi specific requirements are trivial then just write simple stubs. However once you need more than trivial I doubt it's worth the effort to simulate the Pi's hardwa...
by MauiSunset
Sat Jun 20, 2015 2:03 pm
Forum: Python
Topic: Error: Microsoft Visual C++ 10.0 is required (vcvarsall.bat)
Replies: 2
Views: 1551

Re: Error: Microsoft Visual C++ 10.0 is required (vcvarsall.

Gerhard, thank you so much!

I'll go through your examples this weekend and early next week.

I appreciate your feedback....
by MauiSunset
Sat Jun 20, 2015 1:58 pm
Forum: Python
Topic: Anyone using virtual-GPIO?
Replies: 3
Views: 1409

Anyone using virtual-GPIO?

I probably won't get RPi.GPIO ever working on a PC so I'm looking into a "virtual GPIO". Here's a link to what I've found: virtual-GPIO at: http://virtgpio.blavery.com/vgpio/ The actual Virtual-GPIO code is at: https://github.com/BLavery/virtual-GPIO Anyone have any experience using this? I'm assumi...
by MauiSunset
Sat Jun 20, 2015 12:29 pm
Forum: Python
Topic: Error: Microsoft Visual C++ 10.0 is required (vcvarsall.bat)
Replies: 2
Views: 1551

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

Ever get really, really, close to solving something and it's just beyond your reach? Maddening. Well, I'm still trying to get RPi.GPIO imported into my Python 2.7.10 for Windows. I feel like I'm so close but no cigar. I know that RPi.GPIO is on the RPi2 and that's fine, but 95% of my development wor...
by MauiSunset
Thu Jun 18, 2015 4:29 pm
Forum: Python
Topic: Pip not working on Windows 8.1 for Python 2.7.10 nor 3.4.3
Replies: 6
Views: 1702

Re: Pip not working on Windows 8.1 for Python 2.7.10 nor 3.4

Looks like the Arduino mimics the GPIO of the RPi2 - this is exactly what I need. But that brings me back to the problem of not being able to import the RPi.GPIO on a Windows platform. Should I be looking for a C or C++ compiler and install it so the Python module is happy? Thanks for any feedback...
by MauiSunset
Thu Jun 18, 2015 4:19 pm
Forum: Python
Topic: Pip not working on Windows 8.1 for Python 2.7.10 nor 3.4.3
Replies: 6
Views: 1702

Re: Pip not working on Windows 8.1 for Python 2.7.10 nor 3.4

B.Goode wrote:See this thread for suggestions for simulating GPIO. viewtopic.php?f=32&t=112970
B Goode thank you so much - it looks very interesting.
by MauiSunset
Thu Jun 18, 2015 2:17 pm
Forum: Python
Topic: Pip not working on Windows 8.1 for Python 2.7.10 nor 3.4.3
Replies: 6
Views: 1702

Re: Pip not working on Windows 8.1 for Python 2.7.10 nor 3.4

You have at least two issues. 1) The rpi.gpio package contains C language source code that is compiled when the package is installed. Either your Windows PC doesn't have a suitable C compiler, or the installation process is not finding the installed compiler and is generating the error you see on i...
by MauiSunset
Thu Jun 18, 2015 11:58 am
Forum: Python
Topic: Pip not working on Windows 8.1 for Python 2.7.10 nor 3.4.3
Replies: 6
Views: 1702

Pip not working on Windows 8.1 for Python 2.7.10 nor 3.4.3

I have come a long way in 1 week - I have 2 identical PCs, running Windows 8.1, and have Python 2.7.10 on one and 3.4.3 on the other. Installed Git on both, signed up for BitBucket, and PyCharm and am ready to start coding. However, I'm stuck and can't go forward and hope someone here has some ideas...
by MauiSunset
Mon Jun 15, 2015 11:06 pm
Forum: Python
Topic: Project teamwork with Python
Replies: 4
Views: 783

Re: Project teamwork with Python

Hello, git is a good choice, but svn is still quite popular. If you plan on a larger scale, you will need to have an own server somewhere on the web for your dev environment. If your project grows, you will need continuous integration (hudson) also. Possibly a ticketing system is needed, and of cou...
by MauiSunset
Mon Jun 15, 2015 6:36 pm
Forum: Python
Topic: Project teamwork with Python
Replies: 4
Views: 783

Project teamwork with Python

I'm working on an RPi2 Python project with my son and probably we will hire other programmers at some point. About 1/3 of the project will be controlling valves, reading barcodes, reading ID badges, etc. 1/3 of the project will be working with Apps we build to control the overall system. 1/3 of the ...
by MauiSunset
Mon Jun 15, 2015 12:01 pm
Forum: Python
Topic: Correct way to download and install modules into Python?
Replies: 17
Views: 10234

Re: Correct way to download and install modules into Python?

Thanks for the background info - it helps to understand how Python has evolved over the years. After blowing a full day with Python 3.X and it's inability to install factory Python modules I am up and running on My Python 2.X on the RPi 2. If I were still working for a company I'd tell them that Pyt...
by MauiSunset
Sun Jun 14, 2015 8:22 pm
Forum: Python
Topic: Correct way to download and install modules into Python?
Replies: 17
Views: 10234

Re: Correct way to download and install modules into Python?

ghp wrote:Hello, see http://dev.mysql.com/doc/connector-pyth ... mples.html
This is what I used some year ago to connect to a mysql database.

Hope this helps
Gerhard
Thank you Gerhard, I'll use Python 2 and I'm sure I'll get things working.
by MauiSunset
Sun Jun 14, 2015 8:19 pm
Forum: Python
Topic: Correct way to download and install modules into Python?
Replies: 17
Views: 10234

Re: Correct way to download and install modules into Python?

elParaguayo wrote:Are you using python 3? I don't think that the mysqldb module works in python 3 (but happy to be process wrong).
I'm using Python 3 and using Python 2 everything works fine!

I'm going to go outside and bang my head against a telephone pole for a while.

thank you for all your help and suggestions.
by MauiSunset
Sun Jun 14, 2015 7:28 pm
Forum: Python
Topic: Correct way to download and install modules into Python?
Replies: 17
Views: 10234

Re: Correct way to download and install modules into Python?

That's exactly what I want to do - eventually I will. In Rasbian I did a: " sudo apt-get install python-mysqldb" and Rasbian sure looks like it installed it with no errors - about 20 lines of output with no error messages. But in Python I get an error when I type in: "import MySQLdb" -> "no module M...
by MauiSunset
Sun Jun 14, 2015 6:15 pm
Forum: Python
Topic: Correct way to download and install modules into Python?
Replies: 17
Views: 10234

Re: Correct way to download and install modules into Python?

The name you type to install a module isn't necessarily the same as the name you use to import it. In this case, I think it's import MySQLdb Thanks for the input - I tried typing into Python "import MySQLdb" and may variants of that with no luck. From other examples on other websites it sounds like...
by MauiSunset
Sun Jun 14, 2015 5:53 pm
Forum: Python
Topic: Correct way to download and install modules into Python?
Replies: 17
Views: 10234

Re: Correct way to download and install modules into Python?

so from that list we clearly want the plain python-mysqldb package. sudo apt-get install python-mysqldb Thank you - installed it just fine with Raspbian but when I type into Python "import python-mysqldb" I get the error message "syntax error" with the "-" highlighted in red. Sounds like I'm close ...
by MauiSunset
Sun Jun 14, 2015 5:25 pm
Forum: Python
Topic: Correct way to download and install modules into Python?
Replies: 17
Views: 10234

Re: Correct way to download and install modules into Python?

Thanks for the help. I'm running Python 2.7.3 I got RPi.GPIO installed with your help - thanks again. I understand the problem with inconsistent versions and will not import anything but from the Python.org website. So if I want to find MySQL I'd type in "apt-cache search MySQL" to search for the pa...
by MauiSunset
Sun Jun 14, 2015 5:04 pm
Forum: Python
Topic: Correct way to download and install modules into Python?
Replies: 17
Views: 10234

Re: Correct way to download and install modules into Python?

Thanks for the input. It worked! Thanks so much! It sounds like its part of Raspbian. (Actually I goofed and typed in "sudo apt-get install RPi.GPIO" and that seemed to work) I now need to get a MySQL module from https://pypi.python.org/pypi/mysql-connector-python How do I tell Python where to go to...
by MauiSunset
Sun Jun 14, 2015 4:03 pm
Forum: Python
Topic: Correct way to download and install modules into Python?
Replies: 17
Views: 10234

Correct way to download and install modules into Python?

I'm new to Python and I like it - of course the greatest thing going for it is using modules/packages from other folks to save yourself a ton of time. I'm developing 100% in the RPi 2 and a lot of the YouTube videos out there deal with Windows - I don't want to program on Windows but direct on the R...
by MauiSunset
Fri Jun 12, 2015 10:39 pm
Forum: Python
Topic: Newbie to Raspberry Pi 2 and Python needs your advice
Replies: 10
Views: 1074

Re: Newbie to Raspberry Pi 2 and Python needs your advice

Thanks for the input.

I guess a test is in order - I should have thought of that.

Oh well, I'll be testing next week - thanks for the great idea.

Maui
by MauiSunset
Fri Jun 12, 2015 9:15 pm
Forum: Python
Topic: Newbie to Raspberry Pi 2 and Python needs your advice
Replies: 10
Views: 1074

Re: Newbie to Raspberry Pi 2 and Python needs your advice

12 V solenoid valves that are normally closed but opened for 1 to 3 seconds. (+-0.1 seconds is acceptable) If the power goes out the device is dark and the operator can't use it - along with everyone else in the store (except for their Apps). When power is restored the device WiFi's into the web and...
by MauiSunset
Fri Jun 12, 2015 2:55 pm
Forum: Python
Topic: Newbie to Raspberry Pi 2 and Python needs your advice
Replies: 10
Views: 1074

Re: Newbie to Raspberry Pi 2 and Python needs your advice

I'm 68 years old and still programming - I remember punching in Hex into some Heath Kit that had 4 K memory and thought I was in heaven then... So a newbie then. My first programs were on 5 hole paper tape sent by van to a Ferranti computer that used valves (vacuum tubes) not transistors. Seriously...
by MauiSunset
Fri Jun 12, 2015 1:49 pm
Forum: Python
Topic: Newbie to Raspberry Pi 2 and Python needs your advice
Replies: 10
Views: 1074

Re: Newbie to Raspberry Pi 2 and Python needs your advice

I'm 68 years old and still programming - I remember punching in Hex into some Heath Kit that had 4 K memory and thought I was in heaven then...

Go to advanced search