Discussion

You need to log in to create posts and topics.

installation glitch with Anaconda3

Last week I installed FoxDot and everything (Python3, Git, SuperCollider) from scratch and it was working nicely. Thanks!

Unfortunately now my install is broken, at least partly because I decided to install the full Anaconda3 environment for Python. I thought it would be good to have just one Python install, and so I uninstalled my original Python before installing Anaconda3, which has its own installation of Python built in.

I am hoping to repair this without putting in a duplicate Python installation. Details below. Thanks for any tips!

Here is what's happening on my Windows 10 machine:

  • With the new anaconda/Python, I executed "pip install FoxDot", which seemed to work great
  • In order to get Python working I had to add "c:\Users\me\Anaconda3\Scripts;c:\Users\me\Anaconda3" to my PATH
  • SuperCollider seems to be fine, listening for FoxDot
  • When I tried "python -m FoxDot" I got an error about a missing tutorial/demo directory. The error msg is copied below
  • I then created an empty Tutorial/demo directory where it was looking, and FoxDot starts successfully
  • But when I try to "p1 >> play("x-o-")" I get a "queue object not an iterator" error, also copied below.

Thanks for any advice!!

Here is the error if I don't create a new/empty Tutorial/demo folder

C:\Users\me>python -m FoxDot
Traceback (most recent call last):
 File "C:\Users\me\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
 "__main__", mod_spec)
 File "C:\Users\me\Anaconda3\lib\runpy.py", line 85, in _run_code
 exec(code, run_globals)
 File "C:\Users\me\Anaconda3\lib\site-packages\FoxDot\__main__.py", line 23, in <module>
 FoxDot = workspace(FoxDotCode).run()
 File "C:\Users\me\Anaconda3\lib\site-packages\FoxDot\lib\Workspace\Editor.py", line 117, in __init__
 self.menu = MenuBar(self, visible = True)
 File "C:\Users\me\Anaconda3\lib\site-packages\FoxDot\lib\Workspace\MenuBar.py", line 86, in __init__
 for tutorial in GET_TUTORIAL_FILES():
 File "C:\Users\me\Anaconda3\lib\site-packages\FoxDot\lib\Settings\__init__.py", line 65, in GET_TUTORIAL_FILES
 return [os.path.realpath(TUTORIAL_DIR + "/" + path) for path in os.listdir(TUTORIAL_DIR)]
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\me\\Anaconda3\\lib\\site-packages\\Tutorial\\demo'

Here is the error after I start FoxDot and try to generate sounds:

>>> p1 >> play("x-o-")
Traceback (most recent call last):
 File "C:\Users\me\Anaconda3\lib\site-packages\FoxDot\lib\Code\main_lib.py", line 106, in __call__
 exec(self._compile(code), self.namespace)
 File "FoxDot", line 1, in <module>
 """
 File "C:\Users\me\Anaconda3\lib\site-packages\FoxDot\lib\Players.py", line 352, in __rshift__
 self.update(other.name, other.degree, **other.kwargs)
 File "C:\Users\me\Anaconda3\lib\site-packages\FoxDot\lib\Players.py", line 833, in update
 self.metro.schedule(self, self.event_index)
 File "C:\Users\me\Anaconda3\lib\site-packages\FoxDot\lib\TempoClock.py", line 343, in schedule
 self.queue.add(obj, beat, args, kwargs)
 File "C:\Users\bruce\Anaconda3\lib\site-packages\FoxDot\lib\TempoClock.py", line 444, in add
 if beat < next(self):
TypeError: 'Queue' object is not an iterator

Hi there, this isn't a problem with your system, just the way FoxDot was packaged on pip. The "demo" folder has been moved and the contents will be included when installing from pip. If you run

pip install FoxDot --upgrade

The latest version should run fine. The clock issue was of my own making and should also be corrected.