Comments (6)
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.
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.
A simple Python syntax error. Please learn Python. Strings are between quotes.
ldflags =['/MACHINEX64']
from pyswisseph.
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.
The error is self-explanatory. Thanks for trying anyways.
from pyswisseph.
hi,
i
- re-installed vs build tools 2019,
- set setup.py to 'ldflags = ['/MACHINE:X64']'
- used another cmd - x86_x64 Cross Tools Command Prompt for VS 2019 (from win10 'start/visual studio 2019 folder)
- 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)
- PySwisseph 2.8.0 swe constants HOT 1
- Strange error when calculating true node position HOT 4
- BIT_HINDU_RISING ignored? HOT 1
- Pyodide add package pyswisseph HOT 1
- Function not working swe.set_ephe_path HOT 1
- Problem with "calc_ut"
- How to change different position HOT 2
- How can I determine or estimate when Aspect starts and ends HOT 3
- New to programming -- Keep getting AttributeError HOT 2
- Thank you
- Wonβt build pyswisseph on MacOS 13.4 HOT 5
- tribute to authors? HOT 1
- transit planets issue HOT 2
- swisseph.Error: swisseph.houses_ex 2: within polar circle, switched to Porphyry HOT 1
- how to change observer position HOT 1
- Planetary moons position, the ephemeris file choose? HOT 2
- How do I get Sun position like in example from swisseph node module?
- pyswisseph version 2.0.0.post2 not available
- Error when installing pyswisseph using pip on python 3.12 HOT 6
- Are there plans to make a python port of swevents.c as well?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyswisseph.