Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py not working on our end #10

Open
marcellastro opened this issue Oct 13, 2016 · 7 comments
Open

setup.py not working on our end #10

marcellastro opened this issue Oct 13, 2016 · 7 comments
Assignees

Comments

@marcellastro
Copy link

Hi,

after cloning the repository, we run the command
python setup.py install --prefix=pwd/install
but we get the following error:
running install
running build
running build_py
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
running build_ext
building '_cosmology' extension
swigging src/cosmology.i to src/cosmology_wrap.cpp
swig -python -c++ -o src/cosmology_wrap.cpp src/cosmology.i
src/cosmology.h:142: Error: Syntax error in input(3).
error: command 'swig' failed with exit status 1

Not sure whether you have seen this before, any suggestion?

@surhud
Copy link
Collaborator

surhud commented Oct 13, 2016

Dah, i had changed the code so that it compiled on linux recently. Can you
go back one commit to check if that code compiles on mac? So run

git checkout a30156b

And then install with the normal procedure.
On Thu, Oct 13, 2016 at 21:43 Marcello Cacciato [email protected]
wrote:

Hi,

after cloning the repository, we run the command
python setup.py install --prefix=pwd/install
but we get the following error:
running install
running build
running build_py
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
running build_ext
building '_cosmology' extension
swigging src/cosmology.i to src/cosmology_wrap.cpp
swig -python -c++ -o src/cosmology_wrap.cpp src/cosmology.i
src/cosmology.h:142: Error: Syntax error in input(3).
error: command 'swig' failed with exit status 1

Not sure whether you have seen this before, any suggestion?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAb4jTRRJNXrDjbnN0tL7-bm1PDsW_Spks5qzid4gaJpZM4KV14V
.

@marcellastro
Copy link
Author

Sorry, I should have specified. The problem occurs on Linux.

On 13 Oct 2016, at 17:45, Surhud [email protected] wrote:

Dah, i had changed the code so that it compiled on linux recently. Can you
go back one commit to check if that code compiles on mac? So run

git checkout a30156b

And then install with the normal procedure.
On Thu, Oct 13, 2016 at 21:43 Marcello Cacciato [email protected]
wrote:

Hi,

after cloning the repository, we run the command
python setup.py install --prefix=pwd/install
but we get the following error:
running install
running build
running build_py
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
running build_ext
building '_cosmology' extension
swigging src/cosmology.i to src/cosmology_wrap.cpp
swig -python -c++ -o src/cosmology_wrap.cpp src/cosmology.i
src/cosmology.h:142: Error: Syntax error in input(3).
error: command 'swig' failed with exit status 1

Not sure whether you have seen this before, any suggestion?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAb4jTRRJNXrDjbnN0tL7-bm1PDsW_Spks5qzid4gaJpZM4KV14V
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@surhudm
Copy link
Owner

surhudm commented Oct 14, 2016

I will need the version of swig you are using. Also g++.

swig -version
g++ --version

And try out the checkout command nevertheless, to see if that works...

Surhud

On Fri, Oct 14, 2016 at 3:37 AM Marcello Cacciato [email protected]
wrote:

Sorry, I should have specified. The problem occurs on Linux.

On 13 Oct 2016, at 17:45, Surhud [email protected] wrote:

Dah, i had changed the code so that it compiled on linux recently. Can
you
go back one commit to check if that code compiles on mac? So run

git checkout a30156b

And then install with the normal procedure.
On Thu, Oct 13, 2016 at 21:43 Marcello Cacciato <
[email protected]>
wrote:

Hi,

after cloning the repository, we run the command
python setup.py install --prefix=pwd/install
but we get the following error:
running install
running build
running build_py
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
running build_ext
building '_cosmology' extension
swigging src/cosmology.i to src/cosmology_wrap.cpp
swig -python -c++ -o src/cosmology_wrap.cpp src/cosmology.i
src/cosmology.h:142: Error: Syntax error in input(3).
error: command 'swig' failed with exit status 1

Not sure whether you have seen this before, any suggestion?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10, or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AAb4jTRRJNXrDjbnN0tL7-bm1PDsW_Spks5qzid4gaJpZM4KV14V>
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEMGuagq8280pNugDlDxs0VFhxqrSFwuks5qznpjgaJpZM4KV14V
.

@surhudm
Copy link
Owner

surhudm commented Oct 14, 2016

Please ping me once you are online, we can try to figure this out together
for a speedy solution.

I think I may have a solution but we need to test that it is working
everywhere.

On Fri, Oct 14, 2016 at 1:19 PM, Surhud More [email protected] wrote:

I will need the version of swig you are using. Also g++.

swig -version
g++ --version

And try out the checkout command nevertheless, to see if that works...

Surhud

On Fri, Oct 14, 2016 at 3:37 AM Marcello Cacciato <
[email protected]> wrote:

Sorry, I should have specified. The problem occurs on Linux.

On 13 Oct 2016, at 17:45, Surhud [email protected] wrote:

Dah, i had changed the code so that it compiled on linux recently. Can
you
go back one commit to check if that code compiles on mac? So run

git checkout a30156b

And then install with the normal procedure.
On Thu, Oct 13, 2016 at 21:43 Marcello Cacciato <
[email protected]>
wrote:

Hi,

after cloning the repository, we run the command
python setup.py install --prefix=pwd/install
but we get the following error:
running install
running build
running build_py
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
running build_ext
building '_cosmology' extension
swigging src/cosmology.i to src/cosmology_wrap.cpp
swig -python -c++ -o src/cosmology_wrap.cpp src/cosmology.i
src/cosmology.h:142: Error: Syntax error in input(3).
error: command 'swig' failed with exit status 1

Not sure whether you have seen this before, any suggestion?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10, or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AAb4jTRRJNXrDjbnN0tL7-bm1PDsW_Spks5qzid4gaJpZM4KV14V>
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEMGuagq8280pNugDlDxs0VFhxqrSFwuks5qznpjgaJpZM4KV14V
.

@marcellastro
Copy link
Author

gooimeer [1149] $ git checkout a30156b
Note: checking out 'a30156b4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at a30156b... Convert concentration from one definition to
another
gooimeer [1150] $

and also

gooimeer [1150] $ swig -version

SWIG Version 2.0.10

Compiled with g++ [x86_64-redhat-linux-gnu]

Configured options: +pcre

Please see http://www.swig.org for reporting bugs and further information
gooimeer [1151] $

gooimeer [1151] $ g++ --version
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gooimeer [1152] $

sorry to bother you with all this

M

On 14 October 2016 at 06:26, Surhud More [email protected] wrote:

Please ping me once you are online, we can try to figure this out together
for a speedy solution.

I think I may have a solution but we need to test that it is working
everywhere.

On Fri, Oct 14, 2016 at 1:19 PM, Surhud More [email protected] wrote:

I will need the version of swig you are using. Also g++.

swig -version
g++ --version

And try out the checkout command nevertheless, to see if that works...

Surhud

On Fri, Oct 14, 2016 at 3:37 AM Marcello Cacciato <
[email protected]> wrote:

Sorry, I should have specified. The problem occurs on Linux.

On 13 Oct 2016, at 17:45, Surhud [email protected] wrote:

Dah, i had changed the code so that it compiled on linux recently. Can
you
go back one commit to check if that code compiles on mac? So run

git checkout a30156b

And then install with the normal procedure.
On Thu, Oct 13, 2016 at 21:43 Marcello Cacciato <
[email protected]>
wrote:

Hi,

after cloning the repository, we run the command
python setup.py install --prefix=pwd/install
but we get the following error:
running install
running build
running build_py
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
running build_ext
building '_cosmology' extension
swigging src/cosmology.i to src/cosmology_wrap.cpp
swig -python -c++ -o src/cosmology_wrap.cpp src/cosmology.i
src/cosmology.h:142: Error: Syntax error in input(3).
error: command 'swig' failed with exit status 1

Not sure whether you have seen this before, any suggestion?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10, or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AAb4jTRRJNXrDjbnN0tL7-bm1PDsW_Spks5qzid4gaJpZM4KV14V>
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10 (comment), or
mute
the thread
<https://github.com/notifications/unsubscribe-auth/
AEMGuagq8280pNugDlDxs0VFhxqrSFwuks5qznpjgaJpZM4KV14V>
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#10 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGehpw51DaO3IQFng_NYKuIxiTsMJ-Mjks5qzwR_gaJpZM4KV14V
.

Dr. Marcello Cacciato

Leiden Observatory Tel: +31 (0)71 527 8467
Universiteit Leiden Fax: +31 (0)71 527 5819
Niels Bohrweg 2 [email protected]
NL-2333 CA Leiden www.strw.leidenuniv.nl/~cacciato

The Netherlands

@surhud
Copy link
Collaborator

surhud commented Oct 14, 2016

So now you are in a detached head state. You should try installing aum from
that point wiht the

python setup.py install --prefix=pwd/install

If that does not work, then:

git checkout fbf0e66

And then install the latest swig: v3.0.10, That should have support for
C++11 standard. This is some stupid thing that I will soon try to get rid
off once and for all.

Cheers,
Surhud

On Fri, Oct 14, 2016 at 9:34 PM, Marcello Cacciato <[email protected]

wrote:

gooimeer [1149] $ git checkout a30156b
Note: checking out 'a30156b4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at a30156b... Convert concentration from one definition to
another
gooimeer [1150] $

and also

gooimeer [1150] $ swig -version

SWIG Version 2.0.10

Compiled with g++ [x86_64-redhat-linux-gnu]

Configured options: +pcre

Please see http://www.swig.org for reporting bugs and further information
gooimeer [1151] $

gooimeer [1151] $ g++ --version
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gooimeer [1152] $

sorry to bother you with all this

M

On 14 October 2016 at 06:26, Surhud More [email protected] wrote:

Please ping me once you are online, we can try to figure this out
together
for a speedy solution.

I think I may have a solution but we need to test that it is working
everywhere.

On Fri, Oct 14, 2016 at 1:19 PM, Surhud More [email protected]
wrote:

I will need the version of swig you are using. Also g++.

swig -version
g++ --version

And try out the checkout command nevertheless, to see if that works...

Surhud

On Fri, Oct 14, 2016 at 3:37 AM Marcello Cacciato <
[email protected]> wrote:

Sorry, I should have specified. The problem occurs on Linux.

On 13 Oct 2016, at 17:45, Surhud [email protected] wrote:

Dah, i had changed the code so that it compiled on linux recently.
Can
you
go back one commit to check if that code compiles on mac? So run

git checkout a30156b

And then install with the normal procedure.
On Thu, Oct 13, 2016 at 21:43 Marcello Cacciato <
[email protected]>
wrote:

Hi,

after cloning the repository, we run the command
python setup.py install --prefix=pwd/install
but we get the following error:
running install
running build
running build_py
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
file src/cosmology.py (for module cosmology) not found
file src/hod.py (for module hod) not found
running build_ext
building '_cosmology' extension
swigging src/cosmology.i to src/cosmology_wrap.cpp
swig -python -c++ -o src/cosmology_wrap.cpp src/cosmology.i
src/cosmology.h:142: Error: Syntax error in input(3).
error: command 'swig' failed with exit status 1

Not sure whether you have seen this before, any suggestion?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10, or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AAb4jTRRJNXrDjbnN0tL7-bm1PDsW_Spks5qzid4gaJpZM4KV14V>
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10 (comment), or
mute
the thread
<https://github.com/notifications/unsubscribe-auth/
AEMGuagq8280pNugDlDxs0VFhxqrSFwuks5qznpjgaJpZM4KV14V>
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#10 (comment), or
mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGehpw51DaO3IQFng_
NYKuIxiTsMJ-Mjks5qzwR_gaJpZM4KV14V>
.

Dr. Marcello Cacciato

Leiden Observatory Tel: +31 (0)71 527 8467
Universiteit Leiden Fax: +31 (0)71 527 5819
Niels Bohrweg 2 [email protected]
NL-2333 CA Leiden www.strw.leidenuniv.nl/~cacciato

The Netherlands


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#10 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAb4jQosOAQWAQKY2pYQpQCvP4zcym7kks5qz3bLgaJpZM4KV14V
.

@surhudm surhudm self-assigned this Oct 16, 2016
@surhudm
Copy link
Owner

surhudm commented Oct 16, 2016

Can you check if the latest fixes help you in the installation? I have now replaced the C++11 features for easier compilation.

You will have to:
git checkout master
to undo the changes I had suggested above earlier.

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

No branches or pull requests

3 participants