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

Install fails on windows 7 - 64 bit : "OSError: currently only Windows and OSX are supported." #160

Closed
LouNo277 opened this issue Mar 9, 2015 · 8 comments
Labels
Milestone

Comments

@LouNo277
Copy link

LouNo277 commented Mar 9, 2015

Hi Felix,
Thanks for your continued great work on this project, xlwings has made my interactions with numerous spreadsheets a lot easier.

However, I've been trying to install the latest release on my win7 PC, but so far I have not been successful. The "OSError: currently only Windows and OSX are supported" is raised every time I run 'setup.py install':

Traceback (most recent call last): File "setup.py", line 23, in <module> raise OSError("currently only Windows and OSX are supported.") OSError: currently only Windows and OSX are supported.

I have tried to comment-out the exception handler (replaced with 'pass'), and then the installation runs to the point where it tries to copy the dll but cannot find the file:

byte-compiling C:\Users\u823003\Portable Python 2.7.6.1\App\Lib\site-packages\xlwings\_xlwindows.py to _xlwindows.pyc byte-compiling C:\Users\u823003\Portable Python 2.7.6.1\App\Lib\site-packages\xlwings\__init__.py to __init__.pyc
running install_data
error: can't copy 'xlwings32.dll': doesn't exist or not a regular file

I'd be grateful for your help with this. Many Thanks,
Louisa

@fzumstein
Copy link
Member

Oh dear, thanks for reporting - this is now corrected with v0.3.4. Let me know if you run into any other issues! Closed by 2770cfd

@fzumstein fzumstein added the bug label Mar 9, 2015
@fzumstein fzumstein added this to the v0.3.4 milestone Mar 9, 2015
@LouNo277
Copy link
Author

LouNo277 commented Mar 9, 2015

Thanks for looking into it so quickly, sadly I still get the "can't copy
xlwings32.dll' does not exist" error...

On 9 March 2015 at 14:36, Felix Zumstein notifications@github.com wrote:

Oh dear, thanks for reporting - this is now corrected with v0.3.4. Let me
know if you run into any other issues! Closed by 2770cfd
2770cfd


Reply to this email directly or view it on GitHub
#160 (comment)
.

@fzumstein
Copy link
Member

how are you installing it? do you use pip?

Am Montag, 9. März 2015 schrieb Winnie_bluesky :

Thanks for looking into it so quickly, sadly I still get the "can't copy
xlwings32.dll' does not exist" error...

On 9 March 2015 at 14:36, Felix Zumstein <notifications@github.com
javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Oh dear, thanks for reporting - this is now corrected with v0.3.4. Let me
know if you run into any other issues! Closed by 2770cfd
<
2770cfd


Reply to this email directly or view it on GitHub
<
#160 (comment)

.


Reply to this email directly or view it on GitHub
#160 (comment)
.

@LouNo277
Copy link
Author

LouNo277 commented Mar 9, 2015

No, I don't have pip on the windows PC ... I have copied the directory into
'site-packages' and then I run 'python setup.py install' from within.

Using pip on my mac worked fine, no issues there :)

On 9 March 2015 at 17:32, Felix Zumstein notifications@github.com wrote:

how are you installing it? do you use pip?

Am Montag, 9. März 2015 schrieb Winnie_bluesky :

Thanks for looking into it so quickly, sadly I still get the "can't copy
xlwings32.dll' does not exist" error...

On 9 March 2015 at 14:36, Felix Zumstein <notifications@github.com
javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Oh dear, thanks for reporting - this is now corrected with v0.3.4. Let
me
know if you run into any other issues! Closed by 2770cfd
<

2770cfd


Reply to this email directly or view it on GitHub
<

#160 (comment)

.


Reply to this email directly or view it on GitHub
<
#160 (comment)

.


Reply to this email directly or view it on GitHub
#160 (comment)
.

@fzumstein
Copy link
Member

You should not copy it into site-packages. Just unpack (anywhere, e.g. your desktop), cd into the unpacked directory and run python setup.py install - this will copy the files into the correct folders.

@LouNo277
Copy link
Author

Hm, does not seem to make any difference, but I assume it might come down
to the python distribution beiing a portable version (?) :

C:\Users\u823003\Downloads>cd xlwings-master

C:\Users\u823003\Downloads\xlwings-master>python setup.py install
C:\Users\u823003\Portable Python 2.7.6.1\App\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\xlwings
copying xlwings\constants.py -> build\lib\xlwings
copying xlwings\main.py -> build\lib\xlwings
copying xlwings\server.py -> build\lib\xlwings
copying xlwings\utils.py -> build\lib\xlwings
copying xlwings\_xlmac.py -> build\lib\xlwings
copying xlwings\_xlwindows.py -> build\lib\xlwings
copying xlwings\__init__.py -> build\lib\xlwings
creating build\lib\xlwings\tests
copying xlwings\tests\test_xlwings.py -> build\lib\xlwings\tests
copying xlwings\tests\__init__.py -> build\lib\xlwings\tests
copying xlwings\xlwings.bas -> build\lib\xlwings
copying xlwings\tests\test_chart_1.xlsx -> build\lib\xlwings\tests
copying xlwings\tests\test_range_1.xlsx -> build\lib\xlwings\tests
copying xlwings\tests\test_workbook_1.xlsx -> build\lib\xlwings\tests
copying xlwings\xlwings_template.xltm -> build\lib\xlwings
running install_lib
running install_data
error: can't copy 'xlwings32.dll': doesn't exist or not a regular file

On 9 March 2015 at 22:23, Felix Zumstein notifications@github.com wrote:

You should not copy it into site-packages. Just unpack (anywhere, e.g.
your desktop), cd into the unpacked directory and run python setup.py
install - this will copy the files into the correct folders.


Reply to this email directly or view it on GitHub
#160 (comment)
.

@fzumstein
Copy link
Member

ah - are you downloading the source from github? you need to download it from PyPI - github source doesn't include the dlls.

@LouNo277
Copy link
Author

ok, that worked, thanks for your help!

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

No branches or pull requests

2 participants