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

starting off #55

Closed
mhsteppan opened this issue Jul 18, 2016 · 9 comments
Closed

starting off #55

mhsteppan opened this issue Jul 18, 2016 · 9 comments

Comments

@mhsteppan
Copy link

hi! I have troubles starting with the first command:
git clone https://github.com/bulik/ldsc.git
this produces "invalid syntax" in all the python version I could find on the web.
do you know what this could be?
cheers,
martin

@rkwalters
Copy link
Collaborator

Hi Martin,
This command (and the rest of the tutorial) is intended to be run from the command line, not from within python.

If you still get an error message from the command line you may not have git installed. If you don’t want to install git, you can alternatively download a zip file by using the “Clone or Download” button on the github page, selecting download zip, and unzipping that file.

Cheers,
Raymond

On Jul 18, 2016, at 8:41 AM, mhsteppan notifications@github.com wrote:

hi! I have troubles starting with the first command:
git clone https://github.com/bulik/ldsc.git
this produces "invalid syntax" in all the python version I could find on the web.
do you know what this could be?
cheers,
martin


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

@mhsteppan
Copy link
Author

Hi Raymond,
thank you very much. You can see I am a beginner with git. I also tried to install the requirements for LD SCore. However, when I run the second line in the tutorial:
"./ldsc.py -h" after changing into the directory "ldsc" I get the error message:
"ImportError: no module named numpy".
do you know what I could do?
cheers,
martin

@rkwalters
Copy link
Collaborator

Hi Martin,
Looks like you either don’t have the numpy python module installed, or python can’t find it from the search path.

If you’re new to python the easiest solution is probably to install Anaconda, which comes with most of the major modules preconfigured and makes managing those dependencies much easier. Otherwise you’ll probably need to investigate python’s sys.path, your PATH and PYTHONPATH environment, and the location you install numpy to determine why python isn’t finding the module.

Cheers,
Raymond

On Jul 21, 2016, at 5:34 AM, mhsteppan notifications@github.com wrote:

Hi Raymond,
thank you very much. You can see I am a beginner with git. I also tried to install the requirements for LD SCore. However, when I run the second line in the tutorial:
"./ldsc.py -h" after changing into the directory "ldsc" I get the error message:
"ImportError: no module named numpy".
do you know what I could do?
cheers,
martin


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

@mhsteppan
Copy link
Author

Hi! still having problems with the start.
I get the following error message when trying to run: ldsc.py -h

File "C:\Anaconda3\envs\py27\ldsc\ldsc.py", line 12, in
import ldscore.ldscore as ld
File "C:\Anaconda3\envs\py27\ldsc\ldscore\ldscore.py", line 3, in
import bitarray as ba
ImportError: No module named bitarray

I installed bitarray many times, using different methods, but it did not work. Can you help me with this problem.
cheers,
martin

@rkwalters
Copy link
Collaborator

rkwalters commented Nov 29, 2016 via email

@mhsteppan
Copy link
Author

Hi Raymond,
I am using:
Python 2.7.12 :: Anaconda custom (64-bit)
The thing is that if I use "conda list" bitarray appears as installed.
Best,
Martin

@rkwalters
Copy link
Collaborator

rkwalters commented Dec 1, 2016 via email

@mhsteppan
Copy link
Author

mhsteppan commented Dec 7, 2016 via email

@rkwalters
Copy link
Collaborator

Hi Martin,
Glad you were able to get this working!

You're correct that the tutorial assumes that you are running you analyses in the same directory as the ldsc scripts. I'm surprised that the line breaks with '' between arguments were causing issues, so that's good to be aware of.

I'll close this thread so we can focus on the other one.

Thanks,
Raymond

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

2 participants