electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » Clavia Nord Modular » g2ools utilities
Supported Python versions
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
jdd



Joined: Dec 01, 2015
Posts: 4
Location: San Bruno, CA

PostPosted: Tue Dec 01, 2015 12:34 pm    Post subject: Supported Python versions Reply with quote  Mark this post and the followings unread

Hi,

I'm getting started with g2ools, and trying to run it in several environments, but not having much luck. On Python 2.7 I get errors about __init__ having the wrong number of arguments. On Python 2.5.4 I get an error that the global name "bytearray" does not exist. (I also tried Jython 2.5 and couldn't get g2ools to run there, not because of any problem in g2ools but because Jython has a limit on compiled class size and the Modules class is too big for it).

Does anyone have any advice?

Thanks,
JD
Back to top
View user's profile Send private message
Electromagnetic Wave



Joined: Apr 28, 2013
Posts: 143
Location: Kebek
G2 patch files: 23

PostPosted: Tue Dec 01, 2015 3:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hi jdd,

From my side :
Quote:
YES! I'ts work with python v2.7.5 ! But not with v2.2.3


http://www.electro-music.com/forum/post-389612.html#389612
Back to top
View user's profile Send private message
jdd



Joined: Dec 01, 2015
Posts: 4
Location: San Bruno, CA

PostPosted: Wed Dec 02, 2015 10:44 am    Post subject: Reply with quote  Mark this post and the followings unread

Nope, I definitely don't have any luck using g2ools from github with Python 2.7.5:

File "g2ools/nord/g2/file.py", line 119, in parse
bitstream = BitStream(data, 7*8)
TypeError: __init__() takes exactly 2 arguments (3 given)

And here's the error with 2.4.4:

File "g2ools/nord/g2/file.py", line 84, in __init__
self.data = bytearray(64<<10)
NameError: global name 'bytearray' is not defined
Back to top
View user's profile Send private message
jdd



Joined: Dec 01, 2015
Posts: 4
Location: San Bruno, CA

PostPosted: Wed Dec 02, 2015 12:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

After some research it seems that bytearray was introduced in 2.6, and the change to object.__init__ was also introduced in 2.6. So I tried Python 2.6.0 and got this:

File "g2ools/nord/g2/file.py", line 912, in read
memview = self.parse_header(memoryview(self.data), filename)
NameError: global name 'memoryview' is not defined

Well, the Python docs say memoryview was introduced in 2.7. Curiouser and curiouser.
Back to top
View user's profile Send private message
Electromagnetic Wave



Joined: Apr 28, 2013
Posts: 143
Location: Kebek
G2 patch files: 23

PostPosted: Wed Dec 02, 2015 12:07 pm    Post subject: Reply with quote  Mark this post and the followings unread

What is your file.py ? Are you sure this file is ok ?

All your files are in the g2ools-1.5 folder ?

Can you try with another .py file ?
Back to top
View user's profile Send private message
jdd



Joined: Dec 01, 2015
Posts: 4
Location: San Bruno, CA

PostPosted: Wed Dec 02, 2015 12:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

I was using g2ools cloned from github, not the g2ools-1.5 distribution.

Now I have g2ools-1.5 with Python 2.7 and so far it is looking better.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Clavia Nord Modular » g2ools utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use