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

OMERO CLI fails if a file ~/omero exists #210

Open
manics opened this issue May 6, 2020 · 3 comments
Open

OMERO CLI fails if a file ~/omero exists #210

manics opened this issue May 6, 2020 · 3 comments

Comments

@manics
Copy link
Member

manics commented May 6, 2020

[test@1f99c18b86c3 ~]$ pwd
/home/test

[test@1f99c18b86c3 ~]$ ls

[test@1f99c18b86c3 ~]$ ln -s /opt/omero/server/venv3/bin/omero

[test@1f99c18b86c3 ~]$ ./omero login
WARNING:omero.util.TempFileManager:Invalid tmp dir: /home/test/omero/tmp
Traceback (most recent call last):
  File "/opt/omero/server/venv3/lib64/python3.6/site-packages/omero/util/temp_files.py", line 178, in tmpdir
    self.create(target)
  File "/opt/omero/server/venv3/lib64/python3.6/site-packages/omero/util/temp_files.py", line 246, in create
    dir.makedirs(0o700)
  File "/opt/omero/server/venv3/lib64/python3.6/site-packages/omero_ext/path.py", line 1254, in makedirs
    os.makedirs(self, mode)
  File "/usr/lib64/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
NotADirectoryError: [Errno 20] Not a directory: path('/home/test/omero/tmp')
Could not access session dir: /home/test/omero/sessions
@joshmoore
Copy link
Member

joshmoore commented May 6, 2020

The use of ~/omero has bothered me for some time. I wonder if it's worth using this as a chance to move to something more platform-appropriate: ~/.config/omero + $TMPDIR/$USER-omero + ..., etc.

manics added a commit to manics-archive/omero-py that referenced this issue Jul 2, 2020
Currently this is the same as get_omero_userdir but this will change soon as part of ome#210 (comment)
@manics
Copy link
Member Author

manics commented Jul 2, 2020

What do you think of using https://pypi.org/project/appdirs/ ?

@joshmoore
Copy link
Member

  • Project officially classified as Stable which is important for inclusion in other distros such as ActivePython.
  • First of several incremental releases to catch up on maintenance.

;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants