Can’t run arcade on machines that have anaconda installed

I’m TA in a Programming course. This week’s challenge was to build a basic chess game. Teacher made a library, that would help them. The problem is, when using the LostGame class, which is defined as follows (and uses Arcade library):

class LostGame(arcade.Window):      def __init__(self):         super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)         self.sprites_list = None         self.background = None         arcade.set_background_color(arcade.color.RED)         self.moves = []         self.doing = 0         self.started = 0         self.current_text = "Comienza el juego" 

We will have the following error:

Traceback (most recent call last):   File "", line 4, in <module>     juego = game.LostGame()   File "/Users/daniel/Documents/Doctorado/Ayudantías/IIC2115/L02/", line 39, in __init__     super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/arcade/", line 53, in __init__     resizable=resizable, config=config)   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyglet/window/", line 643, in __init__     self._create()   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/arcade/", line 81, in _create     self.context.attach(self.canvas)   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyglet/gl/", line 289, in attach     self._nscontext.setView_(canvas.nsview) AttributeError: 'NoneType' object has no attribute 'setView_' 

We noticed that this error would happen in all computers that have Anaconda installed. We thing it may be because it Anaconda’s python doesn’t recognise Arcade library. We have already ran the code on an independent version of Python 3.7, without success.

Thanks in advance for your help!

Why I can’t read file?

Please look at output:

deploy@li445-201:~$   sudo ls -al /var/log/nginx/ total 152 drw-rw-r--  2 root     adm      4096 Mar 26 16:08 . drwxrwxr-x 14 root     syslog   4096 Mar 26 06:25 .. -rw-r--r--  1 root     root        0 Mar 26 16:08 access.log -rwxrwxrwx  1 www-data adm    108849 Mar 26 06:10 access.log.1 -rw-rw-r--  1 www-data adm     14206 Mar 25 06:17 access.log.2.gz -rw-rw-r--  1 www-data adm     14067 Mar 24 05:31 access.log.3.gz -rw-r--r--  1 root     root        0 Mar 26 16:08 error.log -rw-rw-r--  1 www-data adm      2522 Mar 24 17:13 error.log.1 

I try to read log file by deploy user:

deploy@li445-201:~$   cat /var/log/nginx/access.log.1 cat: /var/log/nginx/access.log.1: Permission denied 

Why I can’t read log file? I’ve set even 777 permission on it

Magento 2.2.6: Scheduled catalog_product_alert cron jobs failing with NotLoadInfoImageException: Can’t get information about picture:

I’m currently experiencing an issue where my scheduled catalog_product_alert cron jobs in the cron_schedule table are all failing to send a back-in-stock product alert. Each time these are executed, the following exception is thrown and the product alert email is never sent out while also setting the alert as having been sent in the product_alert_stock table.

[2019-03-26 00:45:03] main.CRITICAL: Can’t get information about the picture: {“exception”:”[object] (Magento\Catalog\Model\Product\Image\NotLoadInfoImageException(code: 0): Can’t get information about the picture: at /home/xxx/public_html/yyy/vendor/magento/module-catalog/Model/Product/Image.php:834, TypeError(code: 0): Argument 1 passed to Magento\Catalog\Model\Product\Image::loadImageInfoFromCache() must be of the type string, null given, called in /home/xxx/public_html/yyy/vendor/magento/module-catalog/Model/Product/Image.php on line 880 at /home/xxx/public_html/yyy/vendor/magento/module-catalog/Model/Product/Image.php:913)”} []

Does anyone know any possible reasons that I might be running into this issue? All of the products that I have been testing the back-in-stock alert with have images (base, small, thumbnail) so I don’t know what could possibly be causing this issue.

I am currently using Magento ver 2.2.6

Any and all help would be really appreciated!

Gmail’s Priority Inbox: I changed settings, now I can’t get Priority Inbox back

I’d been using the “Priority Inbox” in Gmail where starred messages show first, then new messages, then all read messages. I changed some settings today, and now I can’t figure out how to get back to that view. Is there a way? In the settings, there is no longer an “Inbox Type” setting where I can select the priority.

Can’t send transaction with sendtoaddress

I’m trying to send some transaction with sendtoaddress method. That is not Bitcoin it self but it’s fork. You can see it here

my command looks like this

paccoin-cli sendtoaddress someaddress 25 

I get this response from cli

error code: -4 error message: Transaction amount too small 

Is there any method that I can call to see if the amount is too small or not? This looks something like this

paccoin-cli isamounttoosmalltosend someaddress 25 

and it should give me true/false value

Is there anything like that?

Can’t resize APFS container

On a 120GB SSD hard drive in a MacBook only 68.68GB are available. The missing 51.32GB are not even shown as a free space.

Here is what the output of Disk Utility looks like: disk0



terminal screen

As you can see on the first screenshot the disk has 120GB. However, the partition chart on the same screenshot only shows 68.7GB. Also the other two screenshots show that only 68.7GB out of 120GB seem to be available.

The command diskutil list shows that the physical disk0 is 120GB big, but the synthesized disk1 only 68.7GB:

disk info

Docker containers can’t start if no local interfaces up

If no local interfaces (ethernet or WLAN) in up state, then Docker bridge can’t move to the up state as well. So containers are created but can’t be started until interface went back to up state.

It’s a requirement that target system can boot and start services while offline, so I wonder if it’s an obvious behavior for Docker daemon?

Is there any workaround? All containers are running in the custom bridge.

I tried to add a virtual veth interface and it seems helped, will try to add one at bootup as a temporary solution.