malnvenshorn / OctoPrint-FilamentManager

OctoPrint plugin to manage your filament inventory
GNU Affero General Public License v3.0
131 stars 59 forks source link

Unable to import #114

Closed Jonnie-Cache closed 6 years ago

Jonnie-Cache commented 6 years ago

What were you doing?

Performed an export. Unzipped. Modified CSV files. Zipped. Attempted upload.

What did you expect to happen?

Upload would be successful.

What happened instead?

Received an error message:

Data import failed Something went wrong, please consult the logs.

Link to octoprint.log

LOG

Link to gcode file

N/A

Link to contents of Javascript console in the browser

LOG

Further information

Nothing I can think of.

I have read the FAQ and provided all required information.

malnvenshorn commented 6 years ago

Data import failed: [Errno 2] No such file or directory: '/tmp/tmpu7AhCe/profiles.csv'

Looks like you didn't pack the profiles.csv into the archive.

Jonnie-Cache commented 6 years ago

Here is the ZIP file that I used.

import.zip

malnvenshorn commented 6 years ago

You packed the files inside a sub folder. Take a look at the exported file how it should look like.

Jonnie-Cache commented 6 years ago

Ah! I'll give that a try. From my recollection, when I exported and unzipped the files, they came in a subdirectory already. I believe that I just edited them in place and re-zipped them. I'll try again tonight.

Jonnie-Cache commented 6 years ago

That worked, but FYI, when I exported the files again, the unzipped in a sub directory again.

malnvenshorn commented 6 years ago

If there is a sub directory you should blame your extraction software. Closing.

Jonnie-Cache commented 6 years ago

My apologies. I had no idea that extraction software would make a difference. If I may make a suggestion for enhancement, it would be beneficial if the software could do one or more of the following:

  1. Provide more meaningful error messages when the .ZIP file contains a sub-directory.
  2. Provide on-screen information/instruction to let the user know that the uploaded .ZIP file must have the files in the root of the archive file.
  3. Update documentation to inform the user of the requirements for the .ZIP file.

Thanks for your help!

malnvenshorn commented 6 years ago

Thanks for your feedback. It would be great if you would open a separate ticket with your suggestions so it doesn't get lost :wink: