Python Error

View previous topic View next topic Go down

Python Error

Post by Leach54 on 2010-11-13, 03:05

i keep getting an error
"unexpected character after line continuation character"
when i run the python command
">>> from .\files\cat_times import *"
Any Tips?

It is so very frustrating, i'm trying to learn a new language and it simply isnt working.

_________________

"Would it be cheaper to fly to California and then take the train to Hawaii?"
avatar
Leach54
Lieutenant
Lieutenant

Male Number of posts : 1068
Age : 22
Location : Over the rainbow
Registration date : 2009-03-27

Back to top Go down

Re: Python Error

Post by Shemuel on 2010-11-13, 07:28

umm, could it be the gap between times and import?

Shemuel
Captain
Captain

Male Number of posts : 10418
Age : 25
Registration date : 2007-12-23

Back to top Go down

Re: Python Error

Post by Darkwing on 2010-11-13, 10:57

There's other spaces in there though, so I'm assuming spaces are OK in Python. Doesn't JPB know some Python or something?

_________________


avatar
Darkwing
Founder
Founder

Male Number of posts : 17809
Age : 26
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Re: Python Error

Post by JPB18 on 2010-11-13, 11:46

I'm into Basic Family and C Family... But I can try to learn a bit of Python...

Anyway, you wont go anywere if you don't know programing logic, cause most of the times that's what's needed... not knowing the sintax...

_________________
[quote="Thingy"]Awww... Here i was hoping for to see some quick barbecue followed by a good pounding... [/quote]

PlayOgg


avatar
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 23
Location : At atlantis searching for the ultimate weapon! Ok.. I'm in Azeitão, Portugal...
Registration date : 2008-05-15

http://joaopedroborrego.wordpress.com/

Back to top Go down

Re: Python Error

Post by Darkwing on 2010-11-13, 11:47

Well somebody around here was learning Python like last year. Maybe it was DJ or something

_________________


avatar
Darkwing
Founder
Founder

Male Number of posts : 17809
Age : 26
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Re: Python Error

Post by JPB18 on 2010-11-13, 11:48

DJ, Shem knows a little, and I guess someone else was thinking of it...

_________________
[quote="Thingy"]Awww... Here i was hoping for to see some quick barbecue followed by a good pounding... [/quote]

PlayOgg


avatar
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 23
Location : At atlantis searching for the ultimate weapon! Ok.. I'm in Azeitão, Portugal...
Registration date : 2008-05-15

http://joaopedroborrego.wordpress.com/

Back to top Go down

Re: Python Error

Post by Vedic on 2010-11-13, 12:33

What is Python?
avatar
Vedic
Lieutenant
Lieutenant

Male Number of posts : 1769
Age : 22
Location : In Pyongyang, with Mah Main man Kim
Registration date : 2010-08-20

Back to top Go down

Re: Python Error

Post by Darkwing on 2010-11-13, 12:34

It's a scripting language that's actually quite common. It's the scripting language Blender uses

_________________


avatar
Darkwing
Founder
Founder

Male Number of posts : 17809
Age : 26
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Re: Python Error

Post by JPB18 on 2010-11-13, 12:38

And is also pretty easy to learn, as it is, along with Basic, one of the highest level languages out there...

_________________
[quote="Thingy"]Awww... Here i was hoping for to see some quick barbecue followed by a good pounding... [/quote]

PlayOgg


avatar
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 23
Location : At atlantis searching for the ultimate weapon! Ok.. I'm in Azeitão, Portugal...
Registration date : 2008-05-15

http://joaopedroborrego.wordpress.com/

Back to top Go down

Re: Python Error

Post by Vedic on 2010-11-13, 12:40

3D uses scripting?
avatar
Vedic
Lieutenant
Lieutenant

Male Number of posts : 1769
Age : 22
Location : In Pyongyang, with Mah Main man Kim
Registration date : 2010-08-20

Back to top Go down

Re: Python Error

Post by JPB18 on 2010-11-13, 12:41

No, but blender has a gaming engine creator and uses python to program it...

_________________
[quote="Thingy"]Awww... Here i was hoping for to see some quick barbecue followed by a good pounding... [/quote]

PlayOgg


avatar
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 23
Location : At atlantis searching for the ultimate weapon! Ok.. I'm in Azeitão, Portugal...
Registration date : 2008-05-15

http://joaopedroborrego.wordpress.com/

Back to top Go down

Re: Python Error

Post by Vedic on 2010-11-13, 12:42

Oh, that explains it then.
avatar
Vedic
Lieutenant
Lieutenant

Male Number of posts : 1769
Age : 22
Location : In Pyongyang, with Mah Main man Kim
Registration date : 2010-08-20

Back to top Go down

Re: Python Error

Post by Darkwing on 2010-11-13, 12:42

I actually think Blender is itself coded with Python or something as well, but don't quote me on that

_________________


avatar
Darkwing
Founder
Founder

Male Number of posts : 17809
Age : 26
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Re: Python Error

Post by JPB18 on 2010-11-13, 12:47

It was coded in C, C++ and Python...

_________________
[quote="Thingy"]Awww... Here i was hoping for to see some quick barbecue followed by a good pounding... [/quote]

PlayOgg


avatar
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 23
Location : At atlantis searching for the ultimate weapon! Ok.. I'm in Azeitão, Portugal...
Registration date : 2008-05-15

http://joaopedroborrego.wordpress.com/

Back to top Go down

Re: Python Error

Post by Darkwing on 2010-11-13, 12:47

There we go, at least I was partly right Smile

_________________


avatar
Darkwing
Founder
Founder

Male Number of posts : 17809
Age : 26
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Re: Python Error

Post by JPB18 on 2010-11-13, 12:49

Sure... I guess they programmed some modules in C++ and Python and then stuck all together with C...

_________________
[quote="Thingy"]Awww... Here i was hoping for to see some quick barbecue followed by a good pounding... [/quote]

PlayOgg


avatar
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 23
Location : At atlantis searching for the ultimate weapon! Ok.. I'm in Azeitão, Portugal...
Registration date : 2008-05-15

http://joaopedroborrego.wordpress.com/

Back to top Go down

Re: Python Error

Post by Darkwing on 2010-11-13, 12:51

That's cool, I didn't know you could code a piece of software using different languages

_________________


avatar
Darkwing
Founder
Founder

Male Number of posts : 17809
Age : 26
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Re: Python Error

Post by JPB18 on 2010-11-13, 12:59

Sure you can... Once compiled, the code produced by you turns to be 1's and 0's, so you can totally combine them...

_________________
[quote="Thingy"]Awww... Here i was hoping for to see some quick barbecue followed by a good pounding... [/quote]

PlayOgg


avatar
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 23
Location : At atlantis searching for the ultimate weapon! Ok.. I'm in Azeitão, Portugal...
Registration date : 2008-05-15

http://joaopedroborrego.wordpress.com/

Back to top Go down

Re: Python Error

Post by Darkwing on 2010-11-13, 12:59

Ah, that's cool

_________________


avatar
Darkwing
Founder
Founder

Male Number of posts : 17809
Age : 26
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Re: Python Error

Post by JPB18 on 2010-11-13, 13:01

Sure it is... That way people can combine their skills in diferent languages and create programs that couldn't be created with a single one... (or that would me much harder to make...)

_________________
[quote="Thingy"]Awww... Here i was hoping for to see some quick barbecue followed by a good pounding... [/quote]

PlayOgg


avatar
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 23
Location : At atlantis searching for the ultimate weapon! Ok.. I'm in Azeitão, Portugal...
Registration date : 2008-05-15

http://joaopedroborrego.wordpress.com/

Back to top Go down

Re: Python Error

Post by Leach54 on 2010-11-13, 21:34

I found my problem. Python uses .'s instead of 's

_________________

"Would it be cheaper to fly to California and then take the train to Hawaii?"
avatar
Leach54
Lieutenant
Lieutenant

Male Number of posts : 1068
Age : 22
Location : Over the rainbow
Registration date : 2009-03-27

Back to top Go down

Re: Python Error

Post by Darkwing on 2010-11-14, 12:30

And that is the joys of coding, one little, tiny thing can mess everything up

_________________


avatar
Darkwing
Founder
Founder

Male Number of posts : 17809
Age : 26
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Re: Python Error

Post by JPB18 on 2010-11-14, 12:32

Yeah... But also admit... When you accomplish something you were trying to do for the last 3 hours... it's pretty awesome Very Happy

_________________
[quote="Thingy"]Awww... Here i was hoping for to see some quick barbecue followed by a good pounding... [/quote]

PlayOgg


avatar
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 23
Location : At atlantis searching for the ultimate weapon! Ok.. I'm in Azeitão, Portugal...
Registration date : 2008-05-15

http://joaopedroborrego.wordpress.com/

Back to top Go down

Re: Python Error

Post by Leach54 on 2010-11-14, 19:27

Agree ^

_________________

"Would it be cheaper to fly to California and then take the train to Hawaii?"
avatar
Leach54
Lieutenant
Lieutenant

Male Number of posts : 1068
Age : 22
Location : Over the rainbow
Registration date : 2009-03-27

Back to top Go down

Re: Python Error

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum