Skip to content

File not found: XlsxName twice in pdf name (Read proportions plot) #7

Description

@OndroV

Hi, I'm getting the following error and no pdf is created for Read proportions. Note that -for unknown reason- the name of taxon table XlsxName.xlsx appears twice in the pdf name.

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\User\\Documents\\apscale_projects\\TTT_projects\\test\\Read_proportions_plots\\XlsxName_XlsxName_Relative Reads_Samples_Species.pdf'
Traceback:
File "C:\Users\User\miniconda3\envs\TTT\Lib\site-packages\taxontabletools2\taxontabletools_2.0.py", line 2084, in <module>
    readdist_diagram()
    ~~~~~~~~~~~~~~~~^^
File "C:\Users\User\miniconda3\envs\TTT\Lib\site-packages\taxontabletools2\taxontabletools_2.0.py", line 1267, in readdist_diagram
    export_plot("Read_proportions_plots", f"{name}_{fig_mode}_{fig_level}_{fig_taxon}", fig, "plotly")
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\miniconda3\envs\TTT\Lib\site-packages\taxontabletools2\taxontabletools_2.0.py", line 201, in export_plot
    fig.write_image(file_pdf)
    ~~~~~~~~~~~~~~~^^^^^^^^^^
File "C:\Users\User\miniconda3\envs\TTT\Lib\site-packages\plotly\basedatatypes.py", line 3895, in write_image
    return pio.write_image(self, *args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\miniconda3\envs\TTT\Lib\site-packages\plotly\io\_kaleido.py", line 555, in write_image
    path.write_bytes(img_data)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^
File "C:\Users\User\miniconda3\envs\TTT\Lib\pathlib\_abc.py", line 641, in write_bytes
    with self.open(mode='wb') as f:
         ~~~~~~~~~^^^^^^^^^^^
File "C:\Users\User\miniconda3\envs\TTT\Lib\pathlib\_local.py", line 537, in open
    return io.open(self, mode, buffering, encoding, errors, newline)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions