Difficulties importing hddm Mac M1

269 views
Skip to first unread message

Jakub Nagrodzki

unread,
Dec 9, 2021, 6:59:06 AM12/9/21
to hddm-users
Hi everyone,

I am a new and fairly inexperienced user trying to get HDDM to work on a MBA M1 with Python 3.6 with PyCharm and Anaconda 3-5.2.0

I followed the instructions in other threads and the installation seems to have worked. Yet, when I try to write a script and start with 'import hddm' I get: 

Traceback (most recent call last):
  File "/Users/nagrodzkij/data/pythonProject/script1.py", line 4, in <module>
    import hddm
ModuleNotFoundError: No module named 'hddm'


I definitely managed to install hddm through the terminal using a conda environment, but when I look in the Python packages tab hddm is not there as 'Installed' but only as found in the PyPI repository. I can then click Install, but that returns the following: 

Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.


PackagesNotFoundError: The following packages are not available from current channels:

  - hddm

Current channels:

  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

Running pip install hddm just tells me all requirements are already satisfied... 


Can anybody help please? 

Many thanks,
Jakub

---- 
Jakub Nagrodzki 
Academic Foundation Year 2 Doctor 
Addenbrooke's Hospital
Cambridge University Hospitals NHS Foundation Trust 


Jakub Nagrodzki

unread,
Dec 9, 2021, 7:50:04 AM12/9/21
to hddm-users
Update: 


"Under Project Interpreter, there is an Anaconda button. This is a toggle. Turning it off, allows you to use repositories like https://pypi.python.org/simple."
Then HDDM can be installed from there. 

Thanks everyone!
Reply all
Reply to author
Forward
0 new messages