# Cannot import libraries

**URL:** <https://discourse.processing.org/t/cannot-import-libraries/12716>\
**Category:** Processing\
**Created:** [July 14, 2019, 3:29pm UTC](https://discourse.processing.org/t/cannot-import-libraries/12716 "2019-07-14T15:29:08Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![gduteaud](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gduteaud](https://discourse.processing.org/u/gduteaud)\
**Post date:** [July 14, 2019, 3:29pm UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/1 "2019-07-14T15:29:08Z")

</div>

Hello all,

I’m a beginner to Processing, I’ve been using it for a few months now and everything is going great. Today I was hoping to start working with sound, and so I needed to import the sound library. I saw it could only be imported through the contribution manager. Here’s the issue: Iget this message every time I try to open the contribution manager.

`Could not connect to the Processing server. Contributions cannot be installed or updated without an Internet connection. Please verify your network connection again, then try connecting again.`

I tried, without resolving the issue:

- Restarting Processing
- Restarting my laptop
- Making sure the network properties are set to private (I’m using Windows 10)
- Turning off all proxy settings
- Checking that I’m not still somehow on a proxy - it really looks like I’m not
- Using a different wi-fi network where I’m staying
- Using the wi-fi hotspot on my phone
- Creating a firewall exception for Processing
- Turning off the firewall completely

I tried looking in the preferences file for Processing but I honestly don’t know what I’m looking at and I don’t want to further mess anything up.

Any ideas? I’ve read all the similar issues that have been posted either here, on github or on the old processing forum but I haven’t found a solution.

Here’s what prints to the console when I press “Try again” on the error message in the contribution manager.

`java.net.SocketException: Can't connect to SOCKS proxy:<my.proxy.ip> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:428) at java.net.Socket.connect(Socket.java:589) at sun.net.NetworkClient.doConnect(NetworkClient.java:175) at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1227) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1175) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1334) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1309) at processing.app.contrib.ContributionManager.download(ContributionManager.java:82) at processing.app.contrib.ContributionListing$1.run(ContributionListing.java:385) at java.lang.Thread.run(Thread.java:748)`

Thanks a lot and sorry if this is a dumb question but I really tried and I really can’t figure out what’s wrong on my own.

---

<div class="post-metadata">

**Author:** ![InferNova](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/infernova/32/6009_2.png) [@InferNova](https://discourse.processing.org/u/InferNova)\
**Post date:** [July 14, 2019, 6:54pm UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/2 "2019-07-14T18:54:32Z")

</div>

Hey There!

Can you give us some context on what the library and some code ?

---

<div class="post-metadata">

**Author:** ![gduteaud](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gduteaud](https://discourse.processing.org/u/gduteaud)\
**Post date:** [July 14, 2019, 8:22pm UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/3 "2019-07-14T20:22:31Z")

</div>

Hi!

The specific library I’m trying to import is just the Sound library by the Processing Foundation, this one: [https://processing.org/reference/libraries/sound/index.html](https://processing.org/reference/libraries/sound/index.html)

The issue is not with any code in particular, the exact same issue is still encountered with a new blank Processing file. I can’t access the contribution manager through the Processing IDE at all, so no access to Modes, Tools, Examples or Updates either.

---

<div class="post-metadata">

**Author:** ![InferNova](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/infernova/32/6009_2.png) [@InferNova](https://discourse.processing.org/u/InferNova)\
**Post date:** [July 14, 2019, 9:09pm UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/4 "2019-07-14T21:09:21Z")

</div>

When you try and run this.  
What occurs?

```auto
import processing.sound.*;
Sound s;

void setup() {
  size(200, 200);

  // Play two sine oscillators with slightly different frequencies for a nice "beat".
  SinOsc sin = new SinOsc(this);
  sin.play(200, 0.2);
  sin = new SinOsc(this);
  sin.play(205, 0.2);

  // Create a Sound object for globally controlling the output volume.
  s = new Sound(this);
}

void draw() {
  // Map vertical mouse position to volume.
  float amplitude = map(mouseY, 0, height, 0.4, 0.0);

  // Instead of setting the volume for every oscillator individually, we can just
  // control the overall output volume of the whole Sound library.
  s.volume(amplitude);
}

```

Can we get a screen shot ?

---

<div class="post-metadata">

**Author:** ![gduteaud](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gduteaud](https://discourse.processing.org/u/gduteaud)\
**Post date:** [July 14, 2019, 9:30pm UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/5 "2019-07-14T21:30:31Z")

</div>

Absolutely!

 ![14](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a953a7d7ecc8618fa36ffbede403f361dafd2b55.jpeg)

That’s the entirety of the error message that prints.

`No library found for processing.sound Libraries must be installed in a folder named 'libraries' inside the sketchbook folder (see the Preferences window). The package “processing.sound” does not exist. You might be missing a library.`

---

<div class="post-metadata">

**Author:** ![InferNova](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/infernova/32/6009_2.png) [@InferNova](https://discourse.processing.org/u/InferNova)\
**Post date:** [July 14, 2019, 9:35pm UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/6 "2019-07-14T21:35:47Z")

</div>

Hm interesting. I would say troubleshoot. But maybe just try install a new version of processing ?

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [July 14, 2019, 11:57pm UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/7 "2019-07-14T23:57:39Z")

</div>

It’s not ideal, but you may try out to grab libraries using PDE v3.4 instead of v3.5.3: 🥴  
[Download.Processing.org/processing-3.4-windows64.zip](http://Download.Processing.org/processing-3.4-windows64.zip)

- Remember to close v3.5.3 before running v3.4. ⚠
- Once you got everything you needed, close v3.4 and go back to v3.5.3. 😉

---

<div class="post-metadata">

**Author:** ![madscientist](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@madscientist](https://discourse.processing.org/u/madscientist)\
**Post date:** [July 15, 2019, 11:05pm UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/8 "2019-07-15T23:05:52Z")

</div>

Or just manually download and install the library.

[Download Here](https://github.com/processing/processing-sound)

[Install using Instructions found here.](https://github.com/processing/processing/wiki/How-to-Install-a-Contributed-Library#manual-install)

You’re getting this error

> [@gduteaud](#):
>
> `No library found for processing.sound Libraries must be installed in a folder named 'libraries' inside the sketchbook folder (see the Preferences window). The package “processing.sound” does not exist. You might be missing a library.`

because you don’t have the library installed.  
And you can’t install the library through the contributions manager because of what ever reason that is causing this error.

> [@gduteaud](#):
>
> `Could not connect to the Processing server. Contributions cannot be installed or updated without an Internet connection. Please verify your network connection again, then try connecting again.`

I would venture to say that this is a internet problem but you say that you tried practically everything to fix it, so I can’t help you there.

But if your web browser works, then you can install libraries manually, and you won’t get the import error.

You also won’t have to install multiple versions of the PDE. 😀

---

<div class="post-metadata">

**Author:** ![gduteaud](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gduteaud](https://discourse.processing.org/u/gduteaud)\
**Post date:** [July 16, 2019, 12:13am UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/9 "2019-07-16T00:13:53Z")

</div>

Hey! I tried deleting and reinstalling Processing, to no avail. Did you mean troubleshoot the Internet connection or follow the troubleshooting section in the [Processing.org](http://Processing.org) FAQ section? Thanks!

---

<div class="post-metadata">

**Author:** ![gduteaud](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gduteaud](https://discourse.processing.org/u/gduteaud)\
**Post date:** [July 16, 2019, 12:17am UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/10 "2019-07-16T00:17:06Z")

</div>

Hi, thanks for taking the time to help me out!

I agree 100% with your assessment. I also thought of just installing the library manually but it does say on the [Processing.org](http://Processing.org) website that "The Video and Sound libraries need to be downloaded through the Library Manager. "… I guess I’ll try to do it manually anyway and see what happens!

Otherwise I’ll try @GoToLoop 's suggestion. If it works that way, I guess that will mean there’s some strange issue with the specific Processing release I’m using and whatever is going on with my computer.

Thanks all, I really appreciate the help!

---

<div class="post-metadata">

**Author:** ![gduteaud](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gduteaud](https://discourse.processing.org/u/gduteaud)\
**Post date:** [July 16, 2019, 2:05am UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/11 "2019-07-16T02:05:47Z")

</div>

Okay, I’m really stumped now. Manually downloading and installing the library does not work, and the same problem shows up in Processing 3.4.

Everything else is working absolutely fine with my internet connection by the way.

---

<div class="post-metadata">

**Author:** ![gduteaud](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gduteaud](https://discourse.processing.org/u/gduteaud)\
**Post date:** [July 16, 2019, 2:19am UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/12 "2019-07-16T02:19:35Z")

</div>

FIXED!

Deleting the preferences file and restarting Processing to force it to create a new one fixed the issue.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [July 16, 2019, 2:27am UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/13 "2019-07-16T02:27:59Z")

</div>

sorry not see your last good news…  
anyhow:

* * *

can we go back to the beginning:  
you say:

> [@gduteaud](#):
>
> Today I was hoping to start working with sound, and so I needed to import the sound library.

this sounds wrong and might show that there is a very different processing install issue.

“sound” is a integrated library, so when you  
download and unzip any processing version  
it is there already, possibly with Processing 3.5.3  
can / need to do a update to sound rev 2.2.0

BUT if you want use “minim” sound library, then you need to install it.

so after a new “install” ( download unzip ) processing 3.5.3 you

- start processing
- open examples sound FFT
- run it
- open the contribution manager and find “sound” and its installed version.

all this you can show us in ONE picture, like

 ![SNAG-0137](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/04f31240d4287c6f6fe945e3638f04260de2315f.jpeg)

---

<div class="post-metadata">

**Author:** ![madscientist](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@madscientist](https://discourse.processing.org/u/madscientist)\
**Post date:** [July 16, 2019, 6:42pm UTC](https://discourse.processing.org/t/cannot-import-libraries/12716/14 "2019-07-16T18:42:49Z")

</div>

Glad you found the problem.
