Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues at first run #2

Open
shakedlokits opened this issue Jan 13, 2016 · 7 comments
Open

Issues at first run #2

shakedlokits opened this issue Jan 13, 2016 · 7 comments

Comments

@shakedlokits
Copy link

I'm getting this error when I try to import (just checked, also on installation..):
OSX 10.11, Python 3.4.3

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/ ... /OSC.py", line 781
    binary = struct.pack('>LL', 0L, 1L)
                                 ^
SyntaxError: invalid syntax

Any idea?

@frnsys
Copy link

frnsys commented May 7, 2016

I'm having this same issue, any luck?

@FreedomEclipse
Copy link

Also getting this error and its really driving me nuts. Any luck anyone?

@nariakiiwatani
Copy link

I'm using pyOSC from python2.7 so I don't get this error but hope it helps.

The error message suggests that they don't have "L" literal in python3.
Since all integers are 64bit in python3, it may be fixed by simply removing "L" literal.

@Villentretenmert
Copy link

Just removin L and get
binary = struct.pack('>LL', 0, 1)

It does not work

@pedro-arevalo-moxie
Copy link

The program is still not working for Python 3. Any solutions?

@ninicksicard
Copy link

The OSC.py file wasnt completed for 3.5+
these are the modifications i made:
binary = struct.pack('>LL', 0L, 1L) ----> binary = struct.pack('>LL', 0, 1)
print "txt" ---->print("txt")
except error, e ----> except error as e
raise error, ----> raise error()
SocketServer ----> socketserver
ForkingMixIn : rebuilt the class from pythono 2.7 directly in the file
fromstr = map(ord, fromstr) --- > for i in fromstr : fromstr.append(ord(i))
FloatTypes = [types.FloatType] -----> FloatTypes = [float]
IntTypes = [types.IntType] -----> IntTypes = [int]
Just replace the OSC.py file with mine and run the install. The installation works, but i dont know if the rest of the library does yet.

OSC.py.txt

@kaosbeat
Copy link

having same issue, OSX 10.13.2 Python 3.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants