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

extractcode error:File name address is longer than 255 bytes #36

Open
00032118 opened this issue Apr 2, 2020 · 3 comments
Open

extractcode error:File name address is longer than 255 bytes #36

00032118 opened this issue Apr 2, 2020 · 3 comments
Labels

Comments

@00032118
Copy link

00032118 commented Apr 2, 2020

D:/apptest/nqi/nia-npa-workflow-sl_master_20200218180521_5860907_B72.n0063.tar.gz-extract/nia-npa-workflow-sl/nia-npa-workflow.tar.gz-extract/nia-npa-workflow-1.0-SNAPSHOT.jar: [(u'd
\scancode-toolkit-3.0.0\tmp\scancode-tk-3.0.0-aerdzt\scancode-extract-c__kic\com\codahale\metrics\InstrumentedScheduledExecutorService$InstrumentedCallable.class', u'D:\apptest\nqi\
workflow-sl_master_20200218180521_5860907_B72.n0063.tar.gz-extract\nia-npa-workflow-sl\nia-npa-workflow.tar.gz-extract\nia-npa-workflow-1.0-SNAPSHOT.jar-extract\com\codahale\metrics\dScheduledExecutorService$InstrumentedCallable.class', u"[Errno 2] No such file or directory:

@00032118 00032118 added the bug Something isn't working label Apr 2, 2020
@pombredanne
Copy link
Member

Thank you for the report!

Are you on Windows 10 or 7?

On the surface of it it looks like a possible path length limitation on Windows. Your path is about ~243 char long.

  1. Can you try to rename "nia-npa-workflow-sl_master_20200218180521_5860907_B72.n0063.tar.gz" to "n.tgz" and move it to a new dir d:\a ? And then rerun the extract again with this?

  2. Do you mind to try if this still happens with ScanCode 3.1.1 and Python 3.6.x?

@pombredanne
Copy link
Member

These Windows long path issues should be all sorted out on the latest Python and Windows. Can you confirm?

@pombredanne
Copy link
Member

Moving to extractcode too

@pombredanne pombredanne transferred this issue from aboutcode-org/scancode-toolkit Feb 2, 2022
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