gpt-migrate: OSError: [Errno 63] File name too long
vue.js 1 to 3
$ python main.py --sourcelang "vue.js 1" --targetlang "vue.js 3" --sourcedir ../benchmarks/vue1-vue3 --sourceentry "index.html" --model "gpt-3.5-turbo-16k"
◐ Reading vue.js 1 project from directory '/Users/user/gpt-migrate/benchmarks/vue1-vue3', with entrypoint 'index.html'.
◑ Outputting vue.js 3 project to directory '/Users/user/gpt-migrate/benchmarks/flask-nodejs/target'.
Source directory structure:
├── favicon-16x16.png
├── safari-pinned-tab.svg
├── favicon.ico
├── index.html
├── android-chrome-192x192.png
├── apple-touch-icon.png
├── renovate.json
├── css/
│ └── all.css
├── js/
│ └── all.js
├── 404.html
├── README.md
├── img/
│ ├── walnut-logo.svg
│ ├── walnut-logo-white-background.png
│ ├── spin.svg
│ ├── share.svg
│ └── walnut-logo-white-background view.svg
├── channels.js
├── android-chrome-512x512.png
├── site.webmanifest
├── package-lock.json
├── package.json
├── scripts/
│ └── check-channels.js
├── mstile-150x150.png
├── browserconfig.xml
└── favicon-32x32.png
✅ Creating your environment...
Created Docker environment for vue.js 3 project in directory '/Users/user/gpt-migrate/benchmarks/flask-nodejs/target'.
✅ Identifying external dependencies for index.html...
✅ Identifying internal dependencies for index.html...
✅ Creating migration file for index.html...
Created file_name.ext at /Users/user/gpt-migrate/benchmarks/flask-nodejs/target
Copied renovate.json from /Users/user/gpt-migrate/benchmarks/vue1-vue3 to /Users/gianpaj/tmp/gpt-migrate/benchmarks/flask-nodejs/target
✅ Creating dependencies file required for the Docker environment...
Traceback (most recent call last):
File "/Users/user//gpt-migrate/gpt_migrate/main.py", line 100, in main
add_env_files(globals)
File "/Users/user/gpt-migrate/gpt_migrate/steps/migrate.py", line 91, in add_env_files
external_deps_name, _, external_deps_content = llm_write_file(prompt,
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/gpt-migrate/gpt_migrate/utils.py", line 61, in llm_write_file
with open(os.path.join(globals.targetdir, file_name), 'w') as file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 63] File name too long: "/Users/user/gpt-migrate/benchmarks/flask-nodejs/target/PREFERENCE LEVEL 1\n\nHere are the guidelines for this prompt:\n\n1. Follow the output instructions precisely and do not make any assumptions. Your output will not be read by a human; it will be directly input into a computer for literal processing. Adding anything else or deviating from the instructions w
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 4
- Comments: 15 (2 by maintainers)
same here, using a single minified js file as source and golang as target.