-
Notifications
You must be signed in to change notification settings - Fork 5
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
Windows necessary? #1
Comments
Hi, thanks for the bug report. This is exactly the right place to discuss this issue. Daedalus is Windows software, but for this project I just bolted a cython interface onto the side of it; therefore, pydaedalus does not require Windows (in fact, I've never tested it on Windows, I've only ever built it on Mac and Linux). The _maze python extension is meant to be built with the setup.py script, and this should get called by pip automatically. If you're not able to import _maze, that on the face of it suggests a build error on your machine to me (more on this in a second). Before we get into that, though: why is your traceback showing pydaedalus under your ~/Documents directory? Surely that can't be where anaconda puts installed packages? I'd suggest trying the test code again, making sure that your working directory is not /Users/bbeckman/Documents/pydaedalus, just in case Python is loading from an uncompressed source download that doesn't have the extension compiled. I can't remember quite what happens when pip fails to build an extension, but you can try checking that things look OK. If you pip unistall pydaedalus and then reinstall, you can watch the build happening; if anything is breaking, this is where it's happening. For me, pip hides output unless I ask it to be verbose (like
With verbose output, I can watch the compiler (
So you can see that my extension module lives at As a final note, there's always the disappointing possibility that yer Mac OS X just plain doesn't have a C compiler; after all, Apples don't ship with compilers installed, you gotta do it yourself. If running both |
(apologies if this isn't the appropriate place to ask questions, but I don't know another place)
After "pip install pydaedalus" under Anaconda Python 2.7.13 on Mac, I get
I deduce that I must build the cpp sources and figure out how to get an interop module "_maze" going. No problem, but a few questions
Does this compile only on Windows, or is there any hope of building it on Mac or Linux? I notice the src directory has a version of Daedalus with a bunch of cpp files, some of which seems algorithmic and some of which seem to be interfacing to Windows. At least conceptually, it should be possible to separate the algorithmic bits from the Windows bits (but doing so requires some intentionality on the part of the original programmer, lest Windows dependencies leak all over the rest of the code). Because you're using matplotlib and Python for display, there should be no theoretical reason for dependency on Windows.
If you've built it off Windows, would you happen to have a CMakeLists.txt or makefile?
The text was updated successfully, but these errors were encountered: