First time here? Check out the FAQ!
1

Bug report: minimalconfig.py

In minimalconfig.py, 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:

else:
    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 - minimalconfig.py is loaded through wingdbstub.py. I have been following the instructions:

https://wingware.com/doc/howtos/cygwin

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

  • call to NP_CreateMetaImporter() at line 282 of wingdbstub.py 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)"
ds1767's avatar
11
ds1767
asked 2023-02-08 06:27:45 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2024-03-05 09:27:30 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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

Wingware Support's avatar
4.2k
Wingware Support
answered 2023-02-08 09:02:05 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer