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

windows installation problems #104

Closed
nturley opened this issue Jun 26, 2016 · 6 comments
Closed

windows installation problems #104

nturley opened this issue Jun 26, 2016 · 6 comments

Comments

@nturley
Copy link
Contributor

nturley commented Jun 26, 2016

I ran into a few bumps trying out fusesoc, this is what I tried on a windows 10 machine with python 2.7.8

>pip install fusesoc
...
Successfully installed fusesoc-1.4
>fusesoc init
'fusesoc' is not recognized as an internal or external command,
operable program or batch file.

looks like setup.py put a file named fusesoc in C:/Python27/Scripts. Let's try running that.

>python C:\Python27\Scripts\fusesoc init
Traceback (most recent call last):
  File "C:\Python27\Scripts\fusesoc.py", line 25, in <module>
    from fusesoc.build import BackendFactory
  File "C:\Python27\Scripts\fusesoc.py", line 25, in <module>
    from fusesoc.build import BackendFactory
ImportError: No module named build

It's confused. I decided to try inside of a virtual environment.

>python venv/Scripts/fusesoc init
...
ImportError: No module named yaml

That got further. That one looks like a missing dependency

>pip install pyyaml
>python C:\Python27\Scripts\fusesoc init
...
INFO:  FuseSoC is ready to use!

UPDATE:

I think I figured out the issue: https://python-packaging-user-guide.readthedocs.io/en/latest/distributing/#scripts

"Although setup() supports a scripts keyword for pointing to pre-made scripts to install, the recommended approach to achieve cross-platform compatibility is to use console_scripts entry"

I'm working on a fix

@olofk
Copy link
Owner

olofk commented Jun 26, 2016

Thanks. I've seen the PR. FYI, I love to have this working on windows, but I'm not sure anyone has tested it that much, so I expect you to hit some problems after it's installed. I'm happy to review and discuss any windows-related patches, but as I don't have easy access to a windows machine, I can't really test things myself that easily

@nturley
Copy link
Contributor Author

nturley commented Jun 26, 2016

Cross platform testing is a pain. Usually that's what CI is for. Have you thought about using travis or appveyor? I'll spend some time looking into it and you can see if you like it.

@olofk
Copy link
Owner

olofk commented Jun 26, 2016

Oh, that would also be very welcome. I've been kicking myself for not doing unit testing from the beginning. Could have caught a lot of unnecessary errors that way. But just build/install testing with travis (or similar) would be great.

@nturley
Copy link
Contributor Author

nturley commented Jun 29, 2016

I broke this up with #106, #107, and #108. So at this point this issue is scoped to windows not being able to execute the "fusesoc" file in C:/Python27/Scripts.

@olofk
Copy link
Owner

olofk commented Jul 9, 2016

Hopefully this should be fixed now. Would be great if you or someone else could confirm this. Thanks!

@nturley
Copy link
Contributor Author

nturley commented Jul 9, 2016

Awesome!

@nturley nturley closed this as completed Jul 9, 2016
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

2 participants