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

Working with Python 3.9? #10

Open
edcloudcycle opened this issue Feb 20, 2021 · 10 comments
Open

Working with Python 3.9? #10

edcloudcycle opened this issue Feb 20, 2021 · 10 comments

Comments

@edcloudcycle
Copy link

Hi,
I find versionner hangs on my Windows 10 system with python 3.9 installed. I noticed 3.9 is not in the list of supported versions,. is it known not to work?

Traceback (most recent call last):
  File "c:\users\ed\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\ed\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\ed\AppData\Local\Programs\Python\Python39\Scripts\ver.exe\__main__.py", line 7, in <module>
  File "c:\users\ed\appdata\local\programs\python\python39\lib\site-packages\versionner\cli.py", line 250, in main
    return execute(sys.argv[0], sys.argv[1:])
  File "c:\users\ed\appdata\local\programs\python\python39\lib\site-packages\versionner\cli.py", line 218, in execute
    proj_cfg_file = _find_project_config_file(cfg_files[0])
  File "c:\users\ed\appdata\local\programs\python\python39\lib\site-packages\versionner\cli.py", line 194, in _find_project_config_file
    proj_cfg_file = proj_cfg_dir / defaults.RC_FILENAME
  File "c:\users\ed\appdata\local\programs\python\python39\lib\pathlib.py", line 965, in __truediv__
    return self._make_child((key,))
  File "c:\users\ed\appdata\local\programs\python\python39\lib\pathlib.py", line 726, in _make_child
    drv, root, parts = self._parse_args(args)
  File "c:\users\ed\appdata\local\programs\python\python39\lib\pathlib.py", line 689, in _parse_args
    return cls._flavour.parse_parts(parts)
  File "c:\users\ed\appdata\local\programs\python\python39\lib\pathlib.py", line 74, in parse_parts
    drv, root, rel = self.splitroot(part)
KeyboardInterrupt

Thanks

Ed

@msztolcman
Copy link
Owner

Hello,

3.9 is not on the list only because of lack of other updates. I've tested it now in Python 3.9 and it works well. However, I am testing it on POSIX compatible OSes (linux, macos). It looks like your problem with hangs is related to windows rather then to Python version.

I'm not able to test it on Windows machine right now, will try in few days run something in virtualbox and then try to debug this issue.

Thank you for bug report!

@edcloudcycle
Copy link
Author

Thanks, just let me know if there is anything I can do to help. I am using a venv in this folder if that makes any difference.

@msztolcman
Copy link
Owner

I am using a venv in this folder if that makes any difference.

It shouldn't - I am using it in virtualenvs all the time :) However, it's windows ;) Everything may happen ;) I will verify this too, thanks for update :)

@edcloudcycle
Copy link
Author

Hi @msztolcman,
Did you have a chance to look a this? I will try again today.
Thanks
Ed

@edcloudcycle
Copy link
Author

I still see the same problem even when powershell is admin.

@msztolcman
Copy link
Owner

Hi @edcloudcycle,

I've been too busy for few days unfortunately, deadlines in my dayjob :(
I've installed versionner on my win VM, and once I've even found it on a win machine, but then VM hangs, and after this I can't find a place where it's installed anymore :D I'm not a Windows-compatible guy, it's hard to use this ;)

I will retry maybe today evening ;)

@espetro
Copy link

espetro commented May 6, 2021

@edcloudcycle did you try in WSL (1 or 2)?

@edcloudcycle
Copy link
Author

No but that's a good idea

@espetro
Copy link

espetro commented May 10, 2021

I'm using Python 3.9 in a MacOS setup and it works. If you can, use WSL as you're going to get the same behaviour we're getting.

@msztolcman
Copy link
Owner

Unfortunately it looks like I am not Windows compatible. Working on VM with Windows is hard and system still hangs. I have no standalone Windows computer available.
It's definitely Windows related. On POSIX or macOS everything works fine also on Python3.9. I have no way to debug the problem on Windows :( Maybe using this WSL will help, or maybe someone with Windows can debug this?

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

No branches or pull requests

3 participants