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

Update interpreter.py - windows file system adjustment #8

Merged
merged 1 commit into from
Aug 13, 2023

Conversation

nirvor
Copy link
Contributor

@nirvor nirvor commented Aug 12, 2023

Hi!

I replaced (if/else condition...) the use of the readline library with pyreadline3 bfor Windows compatibility. readline is Unix-specific and not working with windows file system, while pyreadline3 provides similar functionality on Windows.

( Maybe there are better solutions, like checking at building via poetry? Or maybe its fine for now)

Replaced (if/else...) the use of the readline library with pyreadline3 for Windows compatibility. readline is Unix-specific and not working with windows file system, while pyreadline3 provides similar functionality on Windows.
@nirvor
Copy link
Contributor Author

nirvor commented Aug 12, 2023

Oh, it seems to be fine if you just keep the interpreter.py like it is with "import readline". It seems to be fine if the pip install interpreter is installing pyreadline3 if the OS is any win version. ( So pyreadline3 "adjusts" to readline)

Maybe a change in poetry build / pyproject.toml would be better?

[tool.poetry.dependencies.pyreadline3]
version = "*"
markers = "sys_platform == 'win32'"

[tool.poetry.dependencies.readline]
version = "*"
markers = "sys_platform != 'win32'"

@KillianLucas
Copy link
Collaborator

Great catch @nirvor! Adding it to the .toml now and will keep interpreter.py as-is, importing readline. Will push to pip, let me know if it works 👍

@KillianLucas KillianLucas merged commit 47fc0a2 into OpenInterpreter:main Aug 13, 2023
1 check failed
joshuavial pushed a commit to joshuavial/open-interpreter that referenced this pull request Sep 7, 2023
Update interpreter.py - windows file system adjustment (will add .toml after this and reinstate readline import in interpreter.py)
joshuavial pushed a commit to joshuavial/open-interpreter that referenced this pull request Sep 15, 2023
Update interpreter.py - windows file system adjustment (will add .toml after this and reinstate readline import in interpreter.py)
joshuavial pushed a commit to joshuavial/open-interpreter that referenced this pull request Nov 16, 2023
Update interpreter.py - windows file system adjustment (will add .toml after this and reinstate readline import in interpreter.py)

Former-commit-id: 47fc0a2
Former-commit-id: cfbc32c455f8f58570e61fcd7000477cb1563baa
Former-commit-id: c812410334077ea5e126962392f212143a85c598 [formerly aca7a2b057bcbc303ce115af59d5c9e5d06ae63e]
Former-commit-id: cdfff3cbf2c5e6044375e0ba06118165c181a349
meslubi2021 added a commit to Banking-and-financial-institutions/open-interpreter that referenced this pull request Oct 27, 2024
Added a video example to the screenpipe tutorial in examples/screenpi…
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.

2 participants