#50 rust2rpm traceback when ~/.cache does not exist
Closed: Fixed 5 years ago Opened 6 years ago by ngompa.

When trying rust2rpm in an openSUSE Tumbleweed container, it crashed trying to create the cache directory.

Traceback:

ngompa@opensuse-tumbleweed-x86_64:~/foo> rust2rpm -p pbr
Traceback (most recent call last):
  File "/usr/bin/rust2rpm", line 11, in <module>
    load_entry_point('rust2rpm==5', 'console_scripts', 'rust2rpm')()
  File "/usr/lib/python3.6/site-packages/rust2rpm/__main__.py", line 109, in main
    os.mkdir(CACHEDIR)
FileNotFoundError: [Errno 2] No such file or directory: '/home/ngompa/.cache/rust2rpm'

This happened because ~/.cache didn't exist yet. When I create ~/.cache, it works perfectly.


Metadata Update from @ignatenkobrain:
- Issue set to the milestone: 6

5 years ago

Metadata Update from @ignatenkobrain:
- Issue assigned to ngompa

5 years ago

Login to comment on this ticket.

Metadata