Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

AttributeError: 'module' object has no attribute 'get_config_h_filename' #1

Open
while0pass opened this issue Nov 27, 2010 · 1 comment

Comments

@while0pass
Copy link

I didn't succeed to install psycopg2 for pypy on Windows. I have Python 2.7, mingw32 compiler. So I run:

$ PATH=$PATH:/c/Program\ Files\ \(x86\)/PostgreSQL/8.4/bin pypy ./setup.py install build --compiler=mingw32

and it says:

running install
running build
running build_py
running build_ext
Traceback (most recent call last):
  File "app_main.py", line 33, in run_toplevel
  File "./setup.py", line 446, in <module>
    ext_modules=ext)
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\core.py", line 151, in setup
    dist.run_commands()
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\dist.py", line 974, in     run_commands
    self.run_command(cmd)
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\command\install.py", line 516, in run
    self.run_command('build')
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\cmd.py", line 349, in run_command
    self.distribution.run_command(command)
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\command\build.py", line 112, in run
    self.run_command(cmd_name)
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\cmd.py", line 349, in run_command
    self.distribution.run_command(command)
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\command\build_ext.py", line 264, in run
    force=self.force)
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\ccompiler.py", line 1175, in new_compiler
    return klass (None, dry_run, force)
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\cygwinccompiler.py", line 292, in __init__
    CygwinCCompiler.__init__ (self, verbose, dry_run, force)
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\cygwinccompiler.py", line 73, in __init__
    (status, details) = check_config_h()
  File "c:\pypy-1.4-win32\lib-python\modified-2.5.2\distutils\cygwinccompiler.py", line 374, in check_config_h
    fn = sysconfig.get_config_h_filename()
AttributeError: 'module' object has no attribute 'get_config_h_filename'

Maybe you could see how to resolve my problem. Thank you in advance.

@Ademan
Copy link
Owner

Ademan commented Nov 27, 2010

Hey, thanks for the interest, right now I don't even have psycopg2 working with PyPy. I actually put this up on github to colaborate with another PyPy developer. PyPy will need some significant modification before psycopg2 works, so you'll need something quite new. I'll keep you posted if you'd like.

Cheers,
Dan

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

No branches or pull requests

2 participants