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

Fix data_ingestion.py #1608

Closed

Conversation

Slowly-Grokking
Copy link
Contributor

@Slowly-Grokking Slowly-Grokking commented Apr 15, 2023

fixes sys.path for:

from autogpt.config import Config
ModuleNotFoundError: No module named 'autogpt'

PR Quality Checklist

  • My pull request is atomic and focuses on a single change.
  • I have not snuck in any "extra" small tweaks changes

have only tested data_ingestion.py on windows 10.

@EdgarBarrantes
Copy link
Contributor

Amazing yeah, this works beautifully!

nponeccop
nponeccop previously approved these changes Apr 15, 2023
<path>git_operations.py", line 4, in <module>
    cfg = Config()
TypeError: Config.__init__() missing 1 required positional argument: 'stream_or_path'
@p-i-
Copy link
Contributor

p-i- commented Apr 15, 2023

This looks hacky. There surely must be a way of importing files without hacking the syspath.

@Slowly-Grokking
Copy link
Contributor Author

Slowly-Grokking commented Apr 15, 2023

This looks hacky. There surely must be a way of importing files without hacking the syspath.

here's one with no code changes and just relocated the script.
#1679

@nponeccop nponeccop mentioned this pull request Apr 15, 2023
1 task
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.

4 participants