GithubHelp home page GithubHelp logo

Comments (6)

astrorigin avatar astrorigin commented on May 30, 2024

Apparently the linker is not configured properly. Try adding /MACHINEX64 to the ldflags in setup.py. (just a quick guess, I have no MSVC here)

from pyswisseph.

aum7 avatar aum7 commented on May 30, 2024

yea, i figured out after google search, most answers include /MACHINE, but they refer to visual studio, where you can set platform before building.
i only have vs code, and actually build from cmd. so i did not know how/where to setup this.
i did added into 'setup.py':
# Link flags ldflags = [/MACHINEX64]
got an error:
'
File "setup.py", line 75
ldflags = [/MACHINEX64]
^
SyntaxError: invalid syntax
'
tried also
'ldflags = [MACHINEX64]'
'ldflags = [MACHINEAMD64]' (ms web page)
'ldflags = [MACHINE:X64]'
'ldflags = [MACHINE:AMD64]'
and also tried in small letters (machineAMD64, machineamd64, machineX64, machinex64 ...)
got error:
'
File "setup.py", line 75, in
ldflags = [MACHINEX64]
NameError: name 'MACHINEX64' is not defined
'
or any other above try - all give 'not defined' error.

how do i configure linker?

thx for helping,

godspeed,

simon
s love nia

from pyswisseph.

astrorigin avatar astrorigin commented on May 30, 2024

A simple Python syntax error. Please learn Python. Strings are between quotes.

ldflags =['/MACHINEX64']

from pyswisseph.

aum7 avatar aum7 commented on May 30, 2024

yes, just checked python docs, and have put quotes. (extra_link_args - a list of strings)
ldflags = ['/MACHINEX64']
tried ['/MACHINE:AMD64'] and ['/MACHINEAMD64'] and ['/MACHINE:X64'] ... no success.
except, now i get:
build\temp.win32-3.8\Release\pyswisseph.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

i guess i will have to configure linker properly. in the morning.
i am learning python, i just didn't know argument type.

thx,

godspeed

from pyswisseph.

astrorigin avatar astrorigin commented on May 30, 2024

The error is self-explanatory. Thanks for trying anyways.

from pyswisseph.

aum7 avatar aum7 commented on May 30, 2024

hi,
i

  1. re-installed vs build tools 2019,
  2. set setup.py to 'ldflags = ['/MACHINE:X64']'
  3. used another cmd - x86_x64 Cross Tools Command Prompt for VS 2019 (from win10 'start/visual studio 2019 folder)
  4. run 'python setup.py install' from cmd

and all ended well - i have latest and greatest (ever, lol) pyswisseph installed.
issue solved.

godspeed,

simon
s love nia

from pyswisseph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.