Flash Trek: The Unofficial Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Python Error

5 posters

Go down

Python Error Empty Python Error

Post by Leach54 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.
Leach54
Leach54
Lieutenant
Lieutenant

Male Number of posts : 1081
Age : 30
Location : NY / CA depending on the day
Registration date : 2009-03-27

Back to top Go down

Python Error Empty Re: Python Error

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

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

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

Back to top Go down

Python Error Empty Re: Python Error

Post by Darkwing 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?
Darkwing
Darkwing
Founder
Founder

Male Number of posts : 17810
Age : 34
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Python Error Empty Re: Python Error

Post by JPB18 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...
JPB18
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 30
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

Python Error Empty Re: Python Error

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

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

Male Number of posts : 17810
Age : 34
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Python Error Empty Re: Python Error

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

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

Male Number of posts : 5475
Age : 30
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

Python Error Empty Re: Python Error

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

What is Python?
Vedic
Vedic
Lieutenant
Lieutenant

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

Back to top Go down

Python Error Empty Re: Python Error

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

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

Male Number of posts : 17810
Age : 34
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Python Error Empty Re: Python Error

Post by JPB18 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...
JPB18
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 30
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

Python Error Empty Re: Python Error

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

3D uses scripting?
Vedic
Vedic
Lieutenant
Lieutenant

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

Back to top Go down

Python Error Empty Re: Python Error

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

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

Male Number of posts : 5475
Age : 30
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

Python Error Empty Re: Python Error

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

Oh, that explains it then.
Vedic
Vedic
Lieutenant
Lieutenant

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

Back to top Go down

Python Error Empty Re: Python Error

Post by Darkwing 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
Darkwing
Darkwing
Founder
Founder

Male Number of posts : 17810
Age : 34
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Python Error Empty Re: Python Error

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

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

Male Number of posts : 5475
Age : 30
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

Python Error Empty Re: Python Error

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

There we go, at least I was partly right Smile
Darkwing
Darkwing
Founder
Founder

Male Number of posts : 17810
Age : 34
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Python Error Empty Re: Python Error

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

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

Male Number of posts : 5475
Age : 30
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

Python Error Empty Re: Python Error

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

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

Male Number of posts : 17810
Age : 34
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Python Error Empty Re: Python Error

Post by JPB18 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...
JPB18
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 30
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

Python Error Empty Re: Python Error

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

Ah, that's cool
Darkwing
Darkwing
Founder
Founder

Male Number of posts : 17810
Age : 34
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Python Error Empty Re: Python Error

Post by JPB18 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...)
JPB18
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 30
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

Python Error Empty Re: Python Error

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

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

Male Number of posts : 1081
Age : 30
Location : NY / CA depending on the day
Registration date : 2009-03-27

Back to top Go down

Python Error Empty Re: Python Error

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

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

Male Number of posts : 17810
Age : 34
Location : Everywhere
Registration date : 2007-10-13

http://www.flashtrek-tuf.com

Back to top Go down

Python Error Empty Re: Python Error

Post by JPB18 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
JPB18
JPB18
Commander
Commander

Male Number of posts : 5475
Age : 30
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

Python Error Empty Re: Python Error

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

Agree ^
Leach54
Leach54
Lieutenant
Lieutenant

Male Number of posts : 1081
Age : 30
Location : NY / CA depending on the day
Registration date : 2009-03-27

Back to top Go down

Python Error Empty Re: Python Error

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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