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

Minor changes to support Windows install. #100

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

ztangent
Copy link
Contributor

After trying to install genparse locally on my Windows computer, I ran into a couple of issues following the installation instructions in the README. This PR fixes those issues by:

  • Specifying the encoding of the README file as utf-8 in the call to open in setup.py
  • Avoiding installation of vllm when running make env on a Windows computer (since vllm doesn't support Windows, and I was running into issues trying to install it).

Installation was successful after I made the fixes above. However, I still ran into issues when loading the arsenal package, because of the following error:
AttributeError: module 'signal' has no attribute 'SIGALRM'. Did you mean: 'SIGABRT'?
(Apparently Windows does not support signal.SIGALRM, which is required by arsenal.robust.)

I also haven't tested if this will cause issues for Linux and Mac builds, but I thought I'd just make this PR since it was a quick fix --- if it's a bother, feel free to ignore it!

@benlebrun benlebrun merged commit f9cbb78 into main Nov 20, 2024
4 checks passed
@benlebrun
Copy link
Collaborator

Thanks @ztangent!

@timvieira
Copy link
Collaborator

I have patched arsenal to disable the robust module on Windows machines.

timvieira/arsenal@b740f00

@ztangent, could you try it out and let me know if it works? I don't have access to a Windows machine to test it on.

@ztangent
Copy link
Contributor Author

Yup, it's working now! :) (genparse_tiny_example.py runs fine)

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

Successfully merging this pull request may close these issues.

3 participants