Ask Your Question

Bug report:

asked 2023-02-08 06:27:45 -0500

ds1767's avatar

updated 2023-02-10 07:58:39 -0500

In, line 89, the signature for get_posix_dir():

  def get_posix_dir(major_version):

Observe it requires one argument.

Later on, uses of this function, at line 183:

if platform == 'cygwin':
    base_dir = get_posix_dir()

And line 204:

    base_dir = get_posix_dir(major_version)

The first instance will clearly error out. I am having this problem when trying to run from cygwin - is loaded through I have been following the instructions:

And it simply doesn't work. After a lot of digging through I was able to find this error:

  • call to NP_CreateMetaImporter() at line 282 of exceptions, because it is given user_settings as None
  • NP_SetupWingHomeModule(), called at line 281, returned user_settings as None
  • Within NP_SetupWingHomeModule(), call to _NPLoadModuleFromBootstrap('minimalconfig'...) failed
  • Within _NPLoadModuleFromBootstrap(), call to _NP_LoadModuleFromDir() fails
  • Within _NP_LoadModuleFromDir() the call to imp.load_module() fails as the load involves calling get_posix_dir(). If I try to replicate this and catch a generic error, I can get the message "get_posix_dir()" takes exactly1 argument (0 given)"
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2023-02-08 09:02:05 -0500

Yes, this is a bug and we should be able to fix it soon.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2023-02-08 06:27:45 -0500

Seen: 10 times

Last updated: Feb 11